Wiki source for ActionsInFooter


Show raw source

>>Tested with: WikkaWiki version **1.1.6.4**
Example: [[www.prepare4descent.net/DescentiaPedia | DescentiaPedia]]>>====Actions in the Footer====

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)<?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:DescentiaPedia | 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
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki