The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vb.sponsors edit for vb4 Details »» | |||||||||||||||||||||||||||||||||||||
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:
ADD, AFTER: PHP Code:
goto FORUMDISPLAY FIND: PHP Code:
PHP Code:
GOTO forumhome_forumbit_level1_post FIND: PHP Code:
PHP Code:
GOTO forumhome_forumbit_level1_nopost FIND: PHP Code:
PHP Code:
Download Now
Screenshots
Show Your Support
|
Comments |
#62
|
|||
|
|||
Same problem here. Doesn't matter where the code is put either.
I will get my web guy to look at it & let you know the fix. |
#63
|
|||
|
|||
Brilliant, thank you!
Jonathan |
#64
|
|||
|
|||
In short this mod doesn't work in showthread, ie. on this page you are reading this from!
You can get it to work though using IF commands. This was created by my great style guy at http://that1design.com . I recommend him big time. You just need to edit this to suit your forum & manually update it if you gain or lose a sponsor. Forum numbers are particular to our site so you need to change them. Forumid == put the forum number here f=put the same forum number here I run google ads in every other forum that does not have a local sponsor & is dependent on the usergroup. Where it says userinfo, 1, 2, 3, 6, 4, 8, 16 : your own user group numbers that you want to have see the advert. In showthread template Find: Code:
{vb:raw header} {vb:raw navbar} {vb:raw template_hook.showthread_above_posts} {vb:raw poll} Below add: Code:
<div align="center"> <vb:if condition="$threadinfo[forumid] == 14"> <a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=14"> <img border="0" src="http:// link to large banner.jpg"> </a> <vb:else /> <vb:if condition="$threadinfo[forumid] == 12"> <a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=12"> <img border="0" src="http:// link to large banner.jpg"> </a> <vb:else /> <vb:if condition="$threadinfo[forumid] == 33"> <a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=33"> <img border="0" src="http:// link to large banner.jpg"> </a> <vb:else /> <vb:if condition="$threadinfo[forumid] == 17"> <a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=17"> <img border="0" src="http:// link to large banner.jpg"> </a> <vb:else /> <vb:if condition="$threadinfo[forumid] == 15"> <a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=15"> <img border="0" src="http:// link to large banner.jpg"> </a> <vb:else /> <vb:if condition="$threadinfo[forumid] == 18"> <a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=18"> <img border="0" src="http:// link to large banner.jpg"> </a> <vb:else /> <vb:if condition="$threadinfo[forumid] == 26"> <a target="_blank" title="Link's Title" href="vB.Sponsors/link.php?f=26"> <img border="0" src="http:// link to large banner.jpg"> </a> <vb:else /> <vb:if condition="is_member_of($vbulletin->userinfo, 1, 2, 3, 6, 4, 8, 16)"> <!-- GOOGLE ADS 728x90 --> <div align="center"> <script type='text/javascript'> GA_googleFillSlot("XX_XX_XX_728x90"); </script> </script> </div> </vb:if> </vb:if></vb:if></vb:if></vb:if></vb:if></vb:if></vb:if> </div> |
#65
|
|||
|
|||
gibgib and Ral.ly, thank you for keeping up on this issue of placing the ads on the showthread page! :up:
When I get a chance I will give it a try. My current site also has that ads at the bottom of the showthread page and under the "Submit Post/Reply" button on the post or reply page. You can see an example here Can I put that same code in those other locations? Thank you! Brihan |
#66
|
|||
|
|||
Sponsors get a white background in forumhome, so any hint how to get the sponsors banner of same background as forumhome categories?
|
#67
|
|||
|
|||
After upgrading to 4.2.0 the links to the sponsors no longer work (I also run VbSEO if this makes a difference).
When a sponsors banner is clicked is goes to a page that says... "Invalid Redirect URL (http://www.eiipro.com/quotes/home-in...s-application/) However the URL is correct. Gibgib, I see you have it working on your site with 4.2.0. Will you share how you got that to work? Thank you! Brian |
#68
|
|||
|
|||
Hi Brian,
You need to add the full URL of the address (advertising link you are pointing to) into the "Redirect Domain Whitelist" in the "Site Name / URL / Contact Details" in the General Settings of your board. |
#69
|
|||
|
|||
Quote:
With your help I have been able to add all my sponsors in all the sections I want on my site. You're awesome! Thank you, Brian |
#70
|
|||
|
|||
ok, Ive installed but keep getting a error:
Database error in vBulletin 4.0.2: Invalid SQL: INSERT INTO `vbsponsors` ( `id` , `sponsor_name` , `forum_id`, `forum`, `date` ) VALUES ( '', '', '34', 'EMS', '1364183973'); MySQL Error : Table 'ducati85_vbtest.vbsponsors' doesn't exist Error Number : 1146 Request Date : Sunday, March 24th 2013 @ 10:59:33 PM Error Date : Sunday, March 24th 2013 @ 10:59:33 PM Script : http://www.ducati851and888.com/vB.Sp.../link.php?f=34 Referrer : http://www.ducati851and888.com/index.php IP Address : 70.145.142.230 Username : Jimmy Classname : vB_Database MySQL Version : 5.5.28-29.3-log Thanks for the help, Jimmy |
#71
|
|||
|
|||
atabase error in vBulletin 4.2.5:
; MySQL Error : Table 'ducati85_vbtest.vbsponsors' doesn't exist |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|