I simply used what was linked to by Rowan. I added this function to the bottom of Setup.php. It works just as I needed.
function ParsePHPTag($Content) { global $wgOut; $wgOut->enableClientCache(false); ob_start(); eval($Content); $Result = ob_get_contents(); ob_end_clean(); return($Result); } $wgParser->setHook('php','ParsePHPTag');
I then just use the newly created <php></php> tags to include my php script. This does pose a security risk so I wouldn't use it on an open wiki, however my site isn't a wiki per say I just like the flexibility of MediaWiki.
Shane
On Tue, 26 Oct 2004 15:33:48 -0400, Jamie Bliss astronouth7303@gmail.com wrote:
One thing I might try is to insert it into the skins, as opposed to the wikitax itself, if possible. or try the above ideas to get it in the code. (Locking a template containing a link to some script and using that with some php outputting javascript would probably be the easiest).
On Sun, 24 Oct 2004 21:09:29 -0700, shane freese shane.freese@gmail.com wrote:
Hello all,
I am trying to figure out a way to include a PHP script within either my template (under navigation) or in a wiki page.
2 thing I am trying to accomplish.
Parse a RSS feed from another site to display it on mine.
Put the latest Forum posts from my boards on the wiki main page.
Can these be accomplished? I've been pulling my hair out for 3 hours now and haven't come up with a solution.
Thanks,
Shane _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
--
http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail!