Revision history for AnchorAction


Revision [21687]

Last edited on 2012-02-22 12:03:22 by BrianKoontz [Reverted to previous revision]
Additions:
~& I changed above code to use %%".$this->Href('', $this->tag)."%% instead of %%{$this->Href('', $this->tag)}%% MyTreo
CategoryUserContributions
Deletions:
~& I changed above code [[http://www.terrabeads.com/t-skirts.aspx long skirts]] to use %%".$this->Href('', $this->tag)."%% instead of %%{$this->Href('', $this->tag)}%% MyTreo [[http://www.hamlinedc.org/t-PartyDress.aspx party dresses]]
CategoryUserContributions [[http://adipexweightlossdiet.com/fastweightloss.html rapid weight loss]]


Revision [21686]

Edited on 2012-02-21 04:50:47 by DannyBarnes [Reverted to previous revision]
Additions:
~& I changed above code [[http://www.terrabeads.com/t-skirts.aspx long skirts]] to use %%".$this->Href('', $this->tag)."%% instead of %%{$this->Href('', $this->tag)}%% MyTreo [[http://www.hamlinedc.org/t-PartyDress.aspx party dresses]]
CategoryUserContributions [[http://adipexweightlossdiet.com/fastweightloss.html rapid weight loss]]
Deletions:
~& I changed above code to use %%".$this->Href('', $this->tag)."%% instead of %%{$this->Href('', $this->tag)}%% MyTreo
CategoryUserContributions


Revision [21353]

Edited on 2011-03-05 17:05:10 by MasinAlDujaili [spam-away]
Deletions:
[[http://custom-essay-writing-service.org/index.php essay service]] [[http://www.shoppharmacycounter.com/c-401-nitric-oxide.aspx nitric oxide]] [[http://www.m99p.com/ designer clothing]]


Revision [21352]

Edited on 2011-03-05 16:55:35 by GarryJening [spam-away]
Additions:
[[http://custom-essay-writing-service.org/index.php essay service]] [[http://www.shoppharmacycounter.com/c-401-nitric-oxide.aspx nitric oxide]] [[http://www.m99p.com/ designer clothing]]
Deletions:
[[http://custom-essay-writing-service.org/index.php essay service]]


Revision [21338]

Edited on 2011-02-15 09:34:47 by BrianKoontz [spam-away]

No Differences

Revision [21332]

Edited on 2011-02-15 04:07:45 by GarethBerns [spam-away]
Additions:
[[http://custom-essay-writing-service.org/index.php essay service]]


Revision [19124]

Edited on 2008-01-28 00:14:03 by MyTreo [Modified links pointing to docs server]

No Differences

Revision [16858]

Edited on 2007-05-31 23:26:37 by MyTreo [Reverted]
Additions:
~& I changed the last line in the above code to use ""$this->Href('', $this->tag)"" instead of $this->tag. NickDamoulakis
~& I changed the other line in the above code to use ""$this->Href('', $this->tag)"" instead of $this->tag and also fixed the {} as per comments below. MyTreo
Following lines shoud be added at end of ./formatters/wakka.php :
if (isset($this->anchor_list))
$text = preg_replace("/<<anchor (.*?)>>/e", "\$this->anchor_list['\\1'] ? \$this->anchor_list['\\1'] : '\\1';", $text);
echo ($text);
wakka2callback('closetags');
?>%%
----
Pierre79 -07/3/05
I propose to write ...
in the head of header.php
<a name="top"></a>
<a href="#bottom" title="Click to go to bottom of this page"> v </a>;
in the foot of footer.php.php
<a name="bottom"></a>
<a href="#top" title="Click to go to the top of this page"> ^ </a>';
~&The name attribute for identifying page fragments is deprecated though; better to use id instead (still valid in XHTML 1.0 strict and 1.1, probably also will be in 2.0). See also TableOfContentsAction for related ideas about generating anchors. --JavaWoman
~~&ph Thank you. Do not hesitate to correct my text directly and... to remove this message --Pierre79
----
In Header.php, add (only!) the lines that begin with ""----->""
<head>
// Create anchor
-----> <a name="top" id="top"></a>
<title><?php echo $this->GetWakkaName().": ".$this->PageTitle(); ?></title>
<base href="<?php echo $site_base ?>" />
<?php if ($this->GetMethod() != 'show' || $this->page["latest"] == 'N' || $this->page["tag"] == 'SandBox') echo "<meta name=\"robots\" content=\"noindex, nofollow, noarchive\" />\n"; ?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="<?php echo $this->GetConfigValue("meta_keywords") ?>" />
<meta name="description" content="<?php echo $this->GetConfigValue("meta_description") ?>" />
<link rel="stylesheet" type="text/css" href="css/<?php echo $this->GetSkin() ?>" media="screen" />
<link rel="stylesheet" type="text/css" href="css/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="css/sidenote.css" />
</head>
<body <?php echo $message ? "onLoad=\"alert('".$message."');\" " : "" ?> >
<div class="header">
<h2><?php echo $this->config["wakka_name"] ?> : <a href="<?php echo $this->href("", "TextSearch", "phrase=").urlencode($this->GetPageTag()); ?>"><?php echo $this->GetPageTag(); ?></a></h2>
<?php
echo $this->Link($this->config["root_page"]);
// Create link to bottom anchor
-----> echo " :: <a href=\"".$this->Href('', $this->tag)."#bottom\">Go bottom</a>";
?>%% NickDamoulakis
----
In Footer.php, add (only!) the lines that begin with ""----->""
echo $this->FormOpen("", "TextSearch", "get");
// Create anchor
-----> echo('<a name="bottom" id="bottom"></a>');
// Create link to top anchor
-----> echo "<a href=\"".$this->Href('', $this->tag)."#top\">Go top</a> :: ";
echo $this->HasAccess("write") ? "<a href=\"".$this->href("edit")."\" title=\"Click to edit this page\">Edit page</a> ::\n" : "";
echo "<a href=\"".$this->href("history")."\" title=\"Click to view recent edits to this page\">Page History</a> ::\n";
echo $this->GetPageTime() ? "<a href=\"".$this->href("revisions")."\" title=\"Click to view recent revisions list for this page\">".$this->GetPageTime()."</a> <a href=\"".$this->href("revisions.xml")."\" title=\"Click to view recent page revisions in XML format.\"><img src=\"images/xml.png\" width=\"36\" height=\"14\" align=\"middle\" style=\"border : 0px;\" alt=\"XML\" /></a> ::\n" : "";
// if this page exists
%% NickDamoulakis
~& I changed above code to use %%".$this->Href('', $this->tag)."%% instead of %%{$this->Href('', $this->tag)}%% MyTreo
==Category==
CategoryUserContributions
Deletions:
~


Revision [16656]

Edited on 2007-05-31 10:30:13 by BzdGr2 [Reverted]
Additions:
~
Deletions:
~& I changed the last line in the above code to use ""$this->Href('', $this->tag)"" instead of $this->tag. NickDamoulakis
~& I changed the other line in the above code to use ""$this->Href('', $this->tag)"" instead of $this->tag and also fixed the {} as per comments below. MyTreo
Following lines shoud be added at end of ./formatters/wakka.php :
if (isset($this->anchor_list))
$text = preg_replace("/<<anchor (.*?)>>/e", "\$this->anchor_list['\\1'] ? \$this->anchor_list['\\1'] : '\\1';", $text);
echo ($text);
wakka2callback('closetags');
?>%%
----
Pierre79 -07/3/05
I propose to write ...
in the head of header.php
<a name="top"></a>
<a href="#bottom" title="Click to go to bottom of this page"> v </a>;
in the foot of footer.php.php
<a name="bottom"></a>
<a href="#top" title="Click to go to the top of this page"> ^ </a>';
~&The name attribute for identifying page fragments is deprecated though; better to use id instead (still valid in XHTML 1.0 strict and 1.1, probably also will be in 2.0). See also TableOfContentsAction for related ideas about generating anchors. --JavaWoman
~~&ph Thank you. Do not hesitate to correct my text directly and... to remove this message --Pierre79
----
In Header.php, add (only!) the lines that begin with ""----->""
<head>
// Create anchor
-----> <a name="top" id="top"></a>
<title><?php echo $this->GetWakkaName().": ".$this->PageTitle(); ?></title>
<base href="<?php echo $site_base ?>" />
<?php if ($this->GetMethod() != 'show' || $this->page["latest"] == 'N' || $this->page["tag"] == 'SandBox') echo "<meta name=\"robots\" content=\"noindex, nofollow, noarchive\" />\n"; ?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="<?php echo $this->GetConfigValue("meta_keywords") ?>" />
<meta name="description" content="<?php echo $this->GetConfigValue("meta_description") ?>" />
<link rel="stylesheet" type="text/css" href="css/<?php echo $this->GetSkin() ?>" media="screen" />
<link rel="stylesheet" type="text/css" href="css/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="css/sidenote.css" />
</head>
<body <?php echo $message ? "onLoad=\"alert('".$message."');\" " : "" ?> >
<div class="header">
<h2><?php echo $this->config["wakka_name"] ?> : <a href="<?php echo $this->href("", "TextSearch", "phrase=").urlencode($this->GetPageTag()); ?>"><?php echo $this->GetPageTag(); ?></a></h2>
<?php
echo $this->Link($this->config["root_page"]);
// Create link to bottom anchor
-----> echo " :: <a href=\"".$this->Href('', $this->tag)."#bottom\">Go bottom</a>";
?>%% NickDamoulakis
----
In Footer.php, add (only!) the lines that begin with ""----->""
echo $this->FormOpen("", "TextSearch", "get");
// Create anchor
-----> echo('<a name="bottom" id="bottom"></a>');
// Create link to top anchor
-----> echo "<a href=\"".$this->Href('', $this->tag)."#top\">Go top</a> :: ";
echo $this->HasAccess("write") ? "<a href=\"".$this->href("edit")."\" title=\"Click to edit this page\">Edit page</a> ::\n" : "";
echo "<a href=\"".$this->href("history")."\" title=\"Click to view recent edits to this page\">Page History</a> ::\n";
echo $this->GetPageTime() ? "<a href=\"".$this->href("revisions")."\" title=\"Click to view recent revisions list for this page\">".$this->GetPageTime()."</a> <a href=\"".$this->href("revisions.xml")."\" title=\"Click to view recent page revisions in XML format.\"><img src=\"images/xml.png\" width=\"36\" height=\"14\" align=\"middle\" style=\"border : 0px;\" alt=\"XML\" /></a> ::\n" : "";
// if this page exists
%% NickDamoulakis
~& I changed above code to use %%".$this->Href('', $this->tag)."%% instead of %%{$this->Href('', $this->tag)}%% MyTreo
==Category==
CategoryUserContributions


Revision [14186]

Edited on 2006-05-09 14:14:47 by MyTreo [Reverted]
Additions:
~& I changed above code to use %%".$this->Href('', $this->tag)."%% instead of %%{$this->Href('', $this->tag)}%% MyTreo
Deletions:
~& I changed above code to use ##".$this->Href('', $this->tag)."## instead of ##{$this->Href('', $this->tag)}## MyTreo


Revision [14185]

Edited on 2006-05-09 14:14:06 by MyTreo [Reverted]
Additions:
~& I changed above code to use ##".$this->Href('', $this->tag)."## instead of ##{$this->Href('', $this->tag)}## MyTreo
Deletions:
~& I changed above code to use ".$this->Href('', $this->tag)." instead of {$this->Href('', $this->tag)} MyTreo


Revision [14184]

Edited on 2006-05-09 14:13:12 by MyTreo [Reverted]
Additions:
~& I changed the other line in the above code to use ""$this->Href('', $this->tag)"" instead of $this->tag and also fixed the {} as per comments below. MyTreo
Deletions:
~& I changed the other line in the above code to use ""$this->Href('', $this->tag)"" instead of $this->tag. MyTreo


Revision [14183]

Edited on 2006-05-09 14:12:16 by MyTreo [Reverted]
Additions:
$this->anchor_list['table_of_contents'] .= "<a href=\"". $this->Href('', $this->tag) ."#$name\">$h3</a><br />\n";
echo "<a href=\"".$this->Href('', $this->tag)."#$target\">$text</a>";
~& I changed the other line in the above code to use ""$this->Href('', $this->tag)"" instead of $this->tag. MyTreo
-----> echo " :: <a href=\"".$this->Href('', $this->tag)."#bottom\">Go bottom</a>";
-----> echo "<a href=\"".$this->Href('', $this->tag)."#top\">Go top</a> :: ";
~& I changed above code to use ".$this->Href('', $this->tag)." instead of {$this->Href('', $this->tag)} MyTreo
Deletions:
$this->anchor_list['table_of_contents'] .= "<a href=\"". $this->tag ."#$name\">$h3</a><br />\n";
echo "<a href=\"{$this->Href('', $this->tag)}#$target\">$text</a>";
-----> echo " :: <a href=\"{$this->Href('', $this->tag)}#bottom\">Go bottom</a>";
-----> echo "<a href=\"{$this->Href('', $this->tag)}#top\">Go top</a> :: ";


Revision [14182]

Edited on 2006-05-09 13:16:16 by MyTreo [corrected path to wakka.php]
Additions:
Following lines shoud be added at end of ./formatters/wakka.php :
Deletions:
Following lines shoud be added at end of ./wakka.php :


Revision [11894]

Edited on 2005-11-18 02:11:35 by NickDamoulakis [corrected path to wakka.php]
Additions:
echo "<a href=\"{$this->Href('', $this->tag)}#$target\">$text</a>";
~& I changed the last line in the above code to use ""$this->Href('', $this->tag)"" instead of $this->tag. NickDamoulakis
Deletions:
echo "<a href=\"{$this->tag}#$target\">$text</a>";


Revision [11875]

Edited on 2005-11-16 02:07:23 by NickDamoulakis [corrected path to wakka.php]
Additions:
In Header.php, add (only!) the lines that begin with ""----->""
?>%% NickDamoulakis
In Footer.php, add (only!) the lines that begin with ""----->""
%% NickDamoulakis
Deletions:
In Header.php, add (only!) the lines that begin with ----->
?>
In Footer.php, add (only!) the lines that begin with ----->


Revision [11874]

Edited on 2005-11-16 02:05:02 by NickDamoulakis [corrected path to wakka.php]
Additions:
In Header.php, add (only!) the lines that begin with ----->
<head>
// Create anchor
-----> <a name="top" id="top"></a>
<title><?php echo $this->GetWakkaName().": ".$this->PageTitle(); ?></title>
<base href="<?php echo $site_base ?>" />
<?php if ($this->GetMethod() != 'show' || $this->page["latest"] == 'N' || $this->page["tag"] == 'SandBox') echo "<meta name=\"robots\" content=\"noindex, nofollow, noarchive\" />\n"; ?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="<?php echo $this->GetConfigValue("meta_keywords") ?>" />
<meta name="description" content="<?php echo $this->GetConfigValue("meta_description") ?>" />
<link rel="stylesheet" type="text/css" href="css/<?php echo $this->GetSkin() ?>" media="screen" />
<link rel="stylesheet" type="text/css" href="css/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="css/sidenote.css" />
</head>
<body <?php echo $message ? "onLoad=\"alert('".$message."');\" " : "" ?> >
<div class="header">
<h2><?php echo $this->config["wakka_name"] ?> : <a href="<?php echo $this->href("", "TextSearch", "phrase=").urlencode($this->GetPageTag()); ?>"><?php echo $this->GetPageTag(); ?></a></h2>
<?php
echo $this->Link($this->config["root_page"]);
// Create link to bottom anchor
-----> echo " :: <a href=\"{$this->Href('', $this->tag)}#bottom\">Go bottom</a>";
?>
In Footer.php, add (only!) the lines that begin with ----->
echo $this->FormOpen("", "TextSearch", "get");
// Create anchor
-----> echo('<a name="bottom" id="bottom"></a>');
// Create link to top anchor
-----> echo "<a href=\"{$this->Href('', $this->tag)}#top\">Go top</a> :: ";
echo $this->HasAccess("write") ? "<a href=\"".$this->href("edit")."\" title=\"Click to edit this page\">Edit page</a> ::\n" : "";
echo "<a href=\"".$this->href("history")."\" title=\"Click to view recent edits to this page\">Page History</a> ::\n";
echo $this->GetPageTime() ? "<a href=\"".$this->href("revisions")."\" title=\"Click to view recent revisions list for this page\">".$this->GetPageTime()."</a> <a href=\"".$this->href("revisions.xml")."\" title=\"Click to view recent page revisions in XML format.\"><img src=\"images/xml.png\" width=\"36\" height=\"14\" align=\"middle\" style=\"border : 0px;\" alt=\"XML\" /></a> ::\n" : "";
// if this page exists


Revision [6557]

Edited on 2005-03-07 17:26:43 by Pierre79 [corrected path to wakka.php]
Additions:
~~&ph Thank you. Do not hesitate to correct my text directly and... to remove this message --Pierre79
Deletions:
~~&ph Thank you. Do not hesitate to correct me directly and... to remove this message --Pierre79


Revision [6555]

Edited on 2005-03-07 17:13:53 by Pierre79 [corrected path to wakka.php]
Additions:
~~&ph Thank you. Do not hesitate to correct me directly and... to remove this message --Pierre79


Revision [6548]

Edited on 2005-03-07 15:56:11 by JavaWoman [reply re "top" and "bottom" anchors]
Additions:
~&The name attribute for identifying page fragments is deprecated though; better to use id instead (still valid in XHTML 1.0 strict and 1.1, probably also will be in 2.0). See also TableOfContentsAction for related ideas about generating anchors. --JavaWoman


Revision [6546]

Edited on 2005-03-07 14:10:36 by Pierre79 [suggestion]
Additions:
<a href="#bottom" title="Click to go to bottom of this page"> v </a>;
<a href="#top" title="Click to go to the top of this page"> ^ </a>';
Deletions:
echo '<a href="#top" title="Click to go to bottom of this page"> v </a>';
echo '<a href="#top" title="Click to go to the top of this page"> ^ </a>';


Revision [6545]

Edited on 2005-03-07 14:09:17 by Pierre79 [simple suggestion for Wikka version]
Additions:
----
Pierre79 -07/3/05
I propose to write ...
in the head of header.php
<a name="top"></a>
echo '<a href="#top" title="Click to go to bottom of this page"> v </a>';
in the foot of footer.php.php
<a name="bottom"></a>
echo '<a href="#top" title="Click to go to the top of this page"> ^ </a>';
----


Revision [5959]

Edited on 2005-02-14 10:30:40 by GregorLindner [-Code contribution, repaired a misconfigration and is thus not necessary]
Deletions:
The code above did not work on my or a friends system. I had to change the echo part:
~~GregorLindner
echo "<a href=\"wikka.php?wakka={$this->tag}#$target\">$text</a>";


Revision [5751]

Edited on 2005-02-07 15:02:24 by GregorLindner [Fixed code output]
Additions:
====Anchor in a Wiki page====
Make a file named anchor.php to put at ./actions directory. The content is
%%(php)
<?php
/**
"anchor action"
author: DotMG <m.randimbisoa@dotmg.net>
Parameters :
§ name : name of anchor to set
§ target : name of an anchor to go to
§ text : Text to be displayed on link to anchor, optional
§ title : optional, a code {{anchor target="Sometarget"}} without the parameter text will
display between tags <a> and </a> the value of parameter title, if set, when defining
{{anchor name="Sometarget"}}. (see usage).
§ h3 : Dispaly a <h3></h3> tag after the anchor newly set, all link to that anchor without
the parameter text will have h3 as caption.
§ special : if this parameter is set, its value should be one of "table_of_contents" or "usage"

> parameter name goes with title or h3, should not be used with parameter target.
> parameter target goes with text.

Special use :
. {{anchor special="table_of_contents"}} : Display a list of anchors having the parameter h3 set.
. {{anchor special="usage"}} : Show this help.

Usage :
{{anchor name="top" title="Top of page"}} => <a name="top"></a>
{{anchor target="top"}} => <a href="#top">Top of page</a>
{{anchor target="top" text="Back to top"}} => <a href="#top">Back to top</a>
{{anchor name="paragraph1" h3="Introduction"}} => <a name="paragraph1"></a><h3>Introduction</h3>
{{anchor target="paragraph1"}} => <a href="#paragraph1">Introduction</a>
**/
$_SESSION['anchor_list'];

$name = $vars['name'];
$text = $vars['text'];
$target = $vars['target'];
$special = $vars['special'];

if ($special)
{
if ($special == 'table_of_contents')
{
echo "<<anchor table_of_contents>>";
}
if ($special == 'usage')
{
$fp = fopen('actions/anchor.php', 'r');
$data = fread($fp, 1000000);
$data = preg_replace("#(^.*/\*\*|\*\*/.*$)#ms", '', $data);
echo nl2br(htmlspecialchars($data));
fclose($fp);
}
}
else
{
if ($name)
{
echo "<a name=\"$name\"></a>";
if ($vars['h3'])
{
echo "<h3>$h3</h3>";
$this->anchor_list[$name] = $h3;
$this->anchor_list['table_of_contents'] .= "<a href=\"". $this->tag ."#$name\">$h3</a><br />\n";
}
if ($vars['title'])
{
$this->anchor_list[$name] = $title;
}
}
if ($target)
{
if (!$text)
{
if ($this->anchor_list[$target])
{
$text = $this->anchor_list[$target];
}
else
{
$text="<<anchor $target>>";
}
}
echo "<a href=\"{$this->tag}#$target\">$text</a>";
}
}
?>
%%

The code above did not work on my or a friends system. I had to change the echo part:
~~GregorLindner

%%
echo "<a href=\"wikka.php?wakka={$this->tag}#$target\">$text</a>";
%%



Following lines shoud be added at end of ./wakka.php :
%%(php)
if (isset($this->anchor_list))
{
$text = preg_replace("/<<anchor (.*?)>>/e", "\$this->anchor_list['\\1'] ? \$this->anchor_list['\\1'] : '\\1';", $text);
}

echo ($text);
wakka2callback('closetags');

?>%%
==Category==
Deletions:
====Anchor in a Wiki page====
Make a file named anchor.php to put at ./actions directory. The content is
%%(php)
<?php
/**
"anchor action"
author: DotMG <m.randimbisoa@dotmg.net>
Parameters :
§ name : name of anchor to set
§ target : name of an anchor to go to
§ text : Text to be displayed on link to anchor, optional
§ title : optional, a code {{anchor target="Sometarget"}} without the parameter text will
display between tags <a> and </a> the value of parameter title, if set, when defining
{{anchor name="Sometarget"}}. (see usage).
§ h3 : Dispaly a <h3></h3> tag after the anchor newly set, all link to that anchor without
the parameter text will have h3 as caption.
§ special : if this parameter is set, its value should be one of "table_of_contents" or "usage"

> parameter name goes with title or h3, should not be used with parameter target.
> parameter target goes with text.

Special use :
. {{anchor special="table_of_contents"}} : Display a list of anchors having the parameter h3 set.
. {{anchor special="usage"}} : Show this help.

Usage :
{{anchor name="top" title="Top of page"}} => <a name="top"></a>
{{anchor target="top"}} => <a href="#top">Top of page</a>
{{anchor target="top" text="Back to top"}} => <a href="#top">Back to top</a>
{{anchor name="paragraph1" h3="Introduction"}} => <a name="paragraph1"></a><h3>Introduction</h3>
{{anchor target="paragraph1"}} => <a href="#paragraph1">Introduction</a>
**/
$_SESSION['anchor_list'];

$name = $vars['name'];
$text = $vars['text'];
$target = $vars['target'];
$special = $vars['special'];

if ($special)
{
if ($special == 'table_of_contents')
{
echo "<<anchor table_of_contents>>";
}
if ($special == 'usage')
{
$fp = fopen('actions/anchor.php', 'r');
$data = fread($fp, 1000000);
$data = preg_replace("#(^.*/\*\*|\*\*/.*$)#ms", '', $data);
echo nl2br(htmlspecialchars($data));
fclose($fp);
}
}
else
{
if ($name)
{
echo "<a name=\"$name\"></a>";
if ($vars['h3'])
{
echo "<h3>$h3</h3>";
$this->anchor_list[$name] = $h3;
$this->anchor_list['table_of_contents'] .= "<a href=\"". $this->tag ."#$name\">$h3</a><br />\n";
}
if ($vars['title'])
{
$this->anchor_list[$name] = $title;
}
}
if ($target)
{
if (!$text)
{
if ($this->anchor_list[$target])
{
$text = $this->anchor_list[$target];
}
else
{
$text="<<anchor $target>>";
}
}
echo "<a href=\"{$this->tag}#$target\">$text</a>";
}
}
?>
%%

Following lines shoud be added at end of ./wakka.php :
%%(php)
if (isset($this->anchor_list))
{
$text = preg_replace("/<<anchor (.*?)>>/e", "\$this->anchor_list['\\1'] ? \$this->anchor_list['\\1'] : '\\1';", $text);
}

echo ($text);
wakka2callback('closetags');

?>%%
==Category==


Revision [4770]

Edited on 2005-01-17 15:03:10 by NilsLindenberg [cat. changed]
Additions:
CategoryUserContributions
Deletions:
CategoryDevelopment


Revision [4374]

Edited on 2005-01-10 08:59:14 by DotMG [cat. changed]
Additions:
?>%%
==Category==
CategoryDevelopment
Deletions:
?>%%


Revision [4372]

The oldest known version of this page was created on 2005-01-10 08:49:55 by DotMG [cat. changed]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki