Back to vBulletin 4.x Add-ons

vb.sponsors edit for vb4
Mod Version: 1.01, by barne77

vB Version: 4.0.x Rating: (5 votes - 4.40 average) Installs: 44
Released: 20 Aug 2010 Last Update: 20 Aug 2010 Downloads: 225
Not Supported  

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 http://www.middlads.com/Portal/forum.php

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:

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 --> 
_________________________________________________________________

Download

File Type: %1$s vb.sponsors.vb4.zip (198.6 KB, 271 downloads)

Screenshots

Click image for larger version
Name:	forum-category-sponsors VB4 2 .jpg
Views:	1508
Size:	12.9 KB
ID:	121069   Click image for larger version
Name:	admincp-global-settings.jpg
Views:	765
Size:	65.7 KB
ID:	121074   Click image for larger version
Name:	forumscfg.jpg
Views:	726
Size:	91.9 KB
ID:	121076   Click image for larger version
Name:	forum.jpg
Views:	1568
Size:	35.6 KB
ID:	121086  

Click image for larger version
Name:	cats.jpg
Views:	1009
Size:	37.4 KB
ID:	121087  

Similar Mods

Forum Display Enhancements vB Sponsors - Add a sponsors location to your site vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024