Revision history for WakkaBacklinksHandler


Revision [18430]

Last edited on 2008-01-28 00:11:28 by JavaWoman [Modified links pointing to docs server]

No Differences

Revision [8601]

Edited on 2005-05-28 16:00:58 by JavaWoman [move to subcategory]
Additions:
=====Link for backlinks on all pages=====
I prefer to have a simple link at the bottom of every page instead of inserting an action on every page.

It needs only two steps:

First, put the following code into the new file /handlers/page/backlink.php:

%%(php)
<div class="page">
<?php
$title = "Backlinks:";
print("<strong>$title</strong><br /><br />\n");

if ($pages = $this->LoadPagesLinkingTo($this->getPageTag())) {
foreach ($pages as $page) {
$links[] = $this->Link($page["tag"]);
}
print(implode("<br>\n", $links));
} else {
print("There are no backlinks to this page.");
}

?>
</div>
%%

Second, change the lines 29 - 32 of file /actions/footer.php in this way:

%%(php)
?>
<a href="<?php echo $this->href("referrers") ?>" title="Click to view a list of URLs referring to this page.">Referrers</a> ::
<a href="<?php echo $this->href("backlinks") ?>" title="Click to view a list of backlinks to this page.">Backlinks</a><br/>
<div style="text-align: right;">Search: <input name="phrase" size="15" style="border: none; border-bottom: 1px solid #CCCCAA; padding: 0px; margin: 0px;" /></div>
</div>
%%

That's all...
""MartinBurger""

----
CategoryDevelopmentHandlers
Deletions:
=====Link for backlinks on all pages=====
I prefer to have a simple link at the bottom of every page instead of inserting an action on every page.

It needs only two steps:

First, put the following code into the new file /handlers/page/backlink.php:

%%(php)
<div class="page">
<?php
$title = "Backlinks:";
print("<strong>$title</strong><br /><br />\n");

if ($pages = $this->LoadPagesLinkingTo($this->getPageTag())) {
foreach ($pages as $page) {
$links[] = $this->Link($page["tag"]);
}
print(implode("<br>\n", $links));
} else {
print("There are no backlinks to this page.");
}

?>
</div>
%%

Second, change the lines 29 - 32 of file /actions/footer.php in this way:

%%(php)
?>
<a href="<?php echo $this->href("referrers") ?>" title="Click to view a list of URLs referring to this page.">Referrers</a> ::
<a href="<?php echo $this->href("backlinks") ?>" title="Click to view a list of backlinks to this page.">Backlinks</a><br/>
<div style="text-align: right;">Search: <input name="phrase" size="15" style="border: none; border-bottom: 1px solid #CCCCAA; padding: 0px; margin: 0px;" /></div>
</div>
%%

That's all...
""MartinBurger""

----
CategoryDevelopment


Revision [2011]

Edited on 2004-10-25 21:13:28 by JavaWoman [ypot incategory]
Additions:
CategoryDevelopment
Deletions:
CategroyDevelopment


Revision [1993]

Edited on 2004-10-25 19:02:20 by NilsLindenberg [category + header]
Additions:
=====Link for backlinks on all pages=====
I prefer to have a simple link at the bottom of every page instead of inserting an action on every page.

It needs only two steps:

First, put the following code into the new file /handlers/page/backlink.php:

%%(php)
<div class="page">
<?php
$title = "Backlinks:";
print("<strong>$title</strong><br /><br />\n");

if ($pages = $this->LoadPagesLinkingTo($this->getPageTag())) {
foreach ($pages as $page) {
$links[] = $this->Link($page["tag"]);
}
print(implode("<br>\n", $links));
} else {
print("There are no backlinks to this page.");
}

?>
</div>
%%

Second, change the lines 29 - 32 of file /actions/footer.php in this way:

%%(php)
?>
<a href="<?php echo $this->href("referrers") ?>" title="Click to view a list of URLs referring to this page.">Referrers</a> ::
<a href="<?php echo $this->href("backlinks") ?>" title="Click to view a list of backlinks to this page.">Backlinks</a><br/>
<div style="text-align: right;">Search: <input name="phrase" size="15" style="border: none; border-bottom: 1px solid #CCCCAA; padding: 0px; margin: 0px;" /></div>
</div>
%%

That's all...
""MartinBurger""

----
CategroyDevelopment
Deletions:
I prefer to have a simple link at the bottom of every page instead of inserting an action on every page.

It needs only two steps:

First, put the following code into the new file /handlers/page/backlink.php:

%%(php)<div class="page">
<?php
$title = "Backlinks:";
print("<strong>$title</strong><br /><br />\n");

if ($pages = $this->LoadPagesLinkingTo($this->getPageTag())) {
foreach ($pages as $page) {
$links[] = $this->Link($page["tag"]);
}
print(implode("<br>\n", $links));
} else {
print("There are no backlinks to this page.");
}

?>
</div>%%

Second, change the lines 29 - 32 of file /actions/footer.php in this way:

%%(php) ?>
<a href="<?php echo $this->href("referrers") ?>" title="Click to view a list of URLs referring to this page.">Referrers</a> ::
<a href="<?php echo $this->href("backlinks") ?>" title="Click to view a list of backlinks to this page.">Backlinks</a><br/>
<div style="text-align: right;">Search: <input name="phrase" size="15" style="border: none; border-bottom: 1px solid #CCCCAA; padding: 0px; margin: 0px;" /></div>
</div>%%

That's all...
""MartinBurger""


Revision [92]

The oldest known version of this page was created on 2004-04-02 02:55:24 by JsnX [category + header]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki