Quote:
Originally Posted by grahamsmythe
I have installed vb.sponsors - at first glance, all looks pretty good (see attachment 1).
The problem I have, is if you look at attachment 2, you'll see that when you actually go into the sponsored forum, at the top, just below the forum title, it just says "his Forum Has Kindly Been Sponsored By:" and doesn't give the name of the sponsor.
I've double and triple checked the changes I made to the style templates and all seems to be OK.
Any help would be much appreciated.
|
That was a bug on my part. The template code I gave for FORUMDISPLAY was incorrect. I've updated the zip file with the latest code. Also the placement of the code has changed. I realized it wasn't proper HTML in the position it was located in (see the documentation for details).
Here's the new code for the FORUMDISPLAY template:
HTML Code:
<!-- vBSponsors -->
<if condition="$foruminfo[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
$vboptions[sponsor_global_default_text] <a href="vB.Sponsors/link.php?f=$foruminfo[forumid]" title="$foruminfo[sponsor_name]" target="_blank">
<if condition="$foruminfo[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
<if condition="!empty($foruminfo[sponsor_banner_big])">
<if condition="$vboptions[sponsor_global_enable_big_banners] == 1">
<img src="$foruminfo[sponsor_banner_big]" alt="$foruminfo[sponsor_name]" border="0" />
<else />
<img src="$foruminfo[sponsor_banner]" alt="$foruminfo[sponsor_name]" border="0" />
</if>
<else />
$foruminfo[sponsor_name]
</if>
<else />
$foruminfo[sponsor_name]
</if></a>
</if>
<!-- / vBSponsors -->
The documentation has been updated as well.