An update from myself.
Further to posting the above
here, I was provided with some information which, after some experimentation produced the desired results.
It is indeed possible to have a single plugin to handle the forumhome_forumbit_level2_post implementation.
The plugin code was as follows:
product: vBulletin
Hook Location: forumbit_display
Title: mrwb_forum_small
Execution Order: 5
Plugin PHP Code:
PHP Code:
if (file_exists('mrwrb/forum'.$forumid.'/small.html'))
{
$mrwrb_forum_small = implode('', file('mrwrb/forum'.$forumid.'/small.html'));
I also changed my template edit to the following:
Code:
<!-- START - mrwrb -->
<if condition="$forum[mrwrb_forumhome_banners_enabled] == 1 AND $vboptions[mrwrb_global_enable_banners] == 1">
<div id="mynicebanner$forum[forumid]" style="float:$stylevar[right]; padding-left:10px; height: 70px;">
</div>
$mrwrb_forum_small
<SCRIPT LANGUAGE="JavaScript">
mycurrentlocation = 'mynicebanner' + $forum[forumid];
myfuncname = 'rotateImage_forum' + $forum[forumid];
window[myfuncname](mycurrentlocation);
</SCRIPT>
</if>
<!-- END - mrwrb -->
The changes to the template enable me to do away with the conditional checking based on forumid, and the dynamic creation of the javascript function name also helps in this respect.
I've tested this on a few forums and it does appear to work. I've also modifed the SHOWTHREAD and FORUMDISPLAY templates to allow rotating banners to be displayed there as well. My final edit was to have an "All Forums" banner, which is displayed on every section, and I have done this by creating a new template and inserting the banner code into it.
Thanks to Lawrence at vbcodex for his help on this. I thought I'd post my findings here as it may help others