Revision [20365]

This is an old revision of ActionsInFooter made by WillyPs on 2008-12-06 20:04:24.

 


Actions can be used in the footer of your wiki to add the functionality of an action to every page. Obviously some actions will be inappropriate in the footer, and may give unexpected results*. To add a function to a footer, open footer.php in your php editor. (You can find it in the templates folder of version 1.1.6.4.)

Add this code where you want the action to show:
<?php
       
        include_once('actions/changesclipft.php');
?>     

Of course, you will want to change 'changesclipft' to the name of the action you want to show.
Style
You will want to add some style to integrate this mod with your wiki, see ExtendedFooter.

Here's an example of an extended footer with recent changes, recent comments and some other stats showing.
DescentiaPedia
I rewrote the actions used to make them display the way I wanted them to. Formating the data output strings consistently, removed tables, etc... Here are links to the documentation of what I did.
*unexpected results
I just love that phrase, it means anything but what's intended. This could include garbage output, a broken page, or even a security vulnerability.

ChangesClipFooter changesclipft.php
CommentsClipFooter commentsclipft.php
StatsFooter statsft.php


Categories: CategoryStyle
There is one comment on this page. [Display comment]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki