I extended this hack a bit to put a sponsor ad in a particular forum.
To do this, I added a new template called forumdisplay_sponsoredby and put this in it:
PHP Code:
<br><br><a href="$foruminfo[sponsorurl]" target="_blank"><img src="{imagesfolder}/$foruminfo[sponsorimg]" border="0" alt="Proudly sponsored by $foruminfo[sponsorname]"></a>
<br>
I then edited forumdisplay.php so that
PHP Code:
if ($foruminfo['sponsorimg']) {
eval("\$sponsoredby = \"".gettemplate('forumdisplay_sponsoredby')."\";");
}
else {
$sponsoredby = '';
}
was immediately AFTER
PHP Code:
if ($foruminfo['allowposting']==1) {
eval("\$newthreadlink = \"".gettemplate('forumdisplay_newthreadlink')."\";");
}
and forumdisplay_sponsoredby was included in the list of required templates.
Finally, I added $sponsoredby to my forumdisplay template.
Sorry for the clumsy explanation. It took a bit of putzing around for me to get this to work, but it does.
demo:
http://www.eaforums.com/forumdisplay.php?s=&forumid=27
Amy