The system I used in the previous post was for my 3.0.3 version forum. I've since upgraded my forum to 3.6.7 and I no longer use the phpinclude_start template.
Instead, I create a plugin that references the PHP files. I create a Plug-in for global_start with these contents:
ob_start();
require("rssaus.php");
$rssaus = ob_get_contents();
ob_end_clean();
The plugin also contains the above code repeated for each different feed I fetch via a different PHP file, eg rsseng.php, rsspak.php etc.
The code in rssaus.php will execute and any output generated by this script will be stored in $rssaus. Then I place $rssaus in the FORUMDISPLAY template where I want the contents of the PHP file (RSS feed) to appear. For multiple feeds on different forums I use something like:
eg:
$header
$navbar
<if condition="$foruminfo['forumid'] == 3">$rsseng</if>
<if condition="$foruminfo['forumid'] == 4">$rssaus</if>
<if condition="$foruminfo['forumid'] == 5">$rsssaf</if>
<if condition="$foruminfo['forumid'] == 6">$rsspak</if>
<if condition="$foruminfo['forumid'] == 7">$rssind</if>
|