2.0 Page Links Mod
From Efiction
To add extra links to eFiction you will need to open func.pagemenu.php and go to line 55 which should be:
$pagelinks["tos"] = "<a href=\\""._BASEDIR."tos.php\\"".($current == "tos" ? " id=\\"current\\"" : "").">"._TOS."</a>";
Below that line add your link in the following format for INTERNAL links:
$pagelinks["LINKNAME"] = "<a href=\\""._BASEDIR."LINKURL\\"".($current == "PAGEID" ? " id=\\"current\\"" : "").">LINTEXT</a>";
- LINKNAME will be the variable added to your skins. For example, including {tos} in your skin will produce the Terms of Service link.
- LINKURL will be the URL of the link.
- PAGEID will be the page id you assigned to $current for that page if this is a custom page inside eFiction. If you didn't assign one, just leave it empty.
- LINKTEXT is the text that will appear in the link. For example _TOS will be replaced with "Terms of Service". The constant _TOS is defined in the language files for the site.
For EXTERNAL links use this format:
$pagelinks["LINKNAME"] = "<a href=\\"LINKURL\\">LINTEXT</a>";
There are two ways these links may be included in your skin. The first is through the menu block.
The other option is to include the link's variable itself in your .tpl file. For instance, if you wanted to add the Contact Us link to your footer, you might include it like this:
<!-- START BLOCK : footer -->
</div>
<div id="footer">{footer}</div></div>
{contactus}
</body></html>
<!-- END BLOCK : footer -->
If you're using a skin someone else created, be sure to check BOTH options (the menu block and the individual link variable). If the skin uses the menu block, be sure that the variables.php isn't defining what is included in the block.