vB.Sponsors 4
Hi all i have editied the vb.sponsors so that i can use it with VB4 this is the vb.sponsors Mod and i can not take the credit for the actual mod only the edit
hope it helps
for demo of this please goto my site
Dont forget to mark as installed
Product Installation
1.Extract the contents of vB.Sponsors.vb4.zip to your computer
2.Open upload/vB.Sponsors/link.php in notepad, wordpad or similar editor.
3.On line 32, enter the path to your forum. This is the physical path not the URL. If your forum is located in /usr/com/userid/forums/, the path would be /usr/com/userid/forums/. You can find the physical path to your forum directory by uploading the settings-check.php file that is located in the do not upload/vB.Sponsors directory. Upload this to the vB.Sponsors directory on your web site. To run it, simply browse to
http://www.EXAMPLE.com/vB.Sponsors/settings-check.php in your browser. Please delete this file when you are done.
4.Upload the files in the upload directory to the corresponding directory on the web server under the forum directory.
5.Open the Admin CP of your board. On the left hand side scroll down to Plugins & Products.
6.Click on Manage Products.
7.Click on Add/Import Product.
8.Click on Browse... and choose the product-vB.Sponsors.xml file.
9.Click Import.
10.template mod
GOTO
_________________________________________________________________
forumhome_forumbit_level2_post
FIND:
PHP Code:
class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
</div>
ADD, AFTER:
PHP Code:
<!-- barne77 -->
<!-- vBSponsors -->
<vb:if condition="$forum['sponsor_enabled'] == 1 AND $vboptions ['sponsor_global_enable_sponsorship'] == 1">
<div style="float:$stylevar[right]">
{vb:raw vboptions.sponsor_global_default_text}
<a href="vB.Sponsors/link.php?f={vb:raw forum.forumid}" title="{vb:raw forum.sponsor_name}" target="_blank">
<vb:if condition="$forum['sponsor_banner_enabled'] == 1 AND $vboptions['sponsor_global_enable_banners'] == 1">
<img src="{vb:raw forum.sponsor_banner}" border="0" />
<vb:else />
{vb:raw forum.sponsor_name}
</vb:if>
</div>
</a>
</vb:if>
<!-- / vBSponsors -->
<!-- barne77 -->
goto FORUMDISPLAY
FIND:
PHP Code:
<div class="threadpagenav">
{vb:raw pagenav}
<div id="threadpagestats" class="threadpagestats">{vb:rawphrase showing_threads_x_to_y_of_z, {vb:raw limitlower}, {vb:raw limitupper}, {vb:raw totalthreads}}</div>
</div>
</vb:if>
</div>
ADD, AFETR:
PHP Code:
<!-- barne77 -->
<!-- vBSponsors -->
<vb:if condition="$foruminfo['sponsor_enabled'] == 1 AND $vboptions['sponsor_global_enable_sponsorship'] == 1">
{vb:raw vboptions.sponsor_global_default_text}
<a href="vB.Sponsors/link.php?f={vb:raw foruminfo.forumid}" title="{vb:raw foruminfo.sponsor_name}" target="_blank">
<vb:if condition="$foruminfo['sponsor_banner_enabled'] == 1 AND $vboptions['sponsor_global_enable_banners'] == 1">
<vb:if condition="!empty($foruminfo['sponsor_banner_big'])">
<vb:if condition="$vboptions['sponsor_global_enable_big_banners'] == 1">
<img src="{vb:raw foruminfo.sponsor_banner_big}" border="0" />
<vb:else />
<img src="{vb:raw foruminfo.sponsor_banner}" border="0" />
</vb:if>
<vb:else />
{vb:raw foruminfo.sponsor_name}
</vb:if> </vb:if> </a> </vb:if>
<!-- / vBSponsors -->
<!-- barne77 -->
GOTO
forumhome_forumbit_level1_post
FIND:
PHP Code:
<ol class="subforumlist commalist">
{vb:raw forum.subforums}
</ol>
</div>
</vb:if>
AFTER, ADD:
PHP Code:
<!-- barne77 -->
<!-- vBSponsors -->
<vb:if condition="$forum['sponsor_enabled'] == 1 AND $vboptions ['sponsor_global_enable_sponsorship'] == 1">
<div style="float:$stylevar[right]">
{vb:raw vboptions.sponsor_global_default_text}
<a href="vB.Sponsors/link.php?f={vb:raw forum.forumid}" title="{vb:raw forum.sponsor_name}" target="_blank">
<vb:if condition="$forum['sponsor_banner_enabled'] == 1 AND $vboptions['sponsor_global_enable_banners'] == 1">
<img src="{vb:raw forum.sponsor_banner}" border="0" />
<vb:else />
{vb:raw forum.sponsor_name}
</vb:if>
</div>
</a>
</vb:if>
<!-- / vBSponsors -->
<!-- barne77 -->
GOTO
forumhome_forumbit_level1_nopost
FIND:
PHP Code:
<ol class="subforumlist commalist">
{vb:raw forum.subforums}
</ol>
</div>
</vb:if>
</div>
</vb:if>
</div>
AFTER, ADD:
<!-- barne77 -->
<!-- vBSponsors -->
<vb:if condition="$forum['sponsor_enabled'] == 1 AND $vboptions ['sponsor_global_enable_sponsorship'] == 1">
<div style="float:$stylevar[right]">
{vb:raw vboptions.sponsor_global_default_text}
<a href="vB.Sponsors/link.php?f={vb:raw forum.forumid}" title="{vb:raw forum.sponsor_name}" target="_blank">
<vb:if condition="$forum['sponsor_banner_enabled'] == 1 AND $vboptions['sponsor_global_enable_banners'] == 1">
<img src="{vb:raw forum.sponsor_banner}" border="0" />
<vb:else />
{vb:raw forum.sponsor_name}
</vb:if>
</div>
</a>
</vb:if>
<!-- / vBSponsors -->
<!-- barne77 -->