The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
Works with vBulletin v2.2.0!
This hack will allow you to add banners to your categories row (like done on SitePointForum.com - use that as a demo ). You can add / remove sponsors for any category that exists and also on creation (of category) time. You can specify the name, banner url and the sponsor's site. Currently it only supports categories from level 1, and only on forum index. -if you want more please tell and I'll see what I can do. Umm, that's it I think. Installation is fairly easy (and the hack itself didn't take too much time ), so you shouldn't have any problems. Feedback from any kind is very appreciated! First of all, run the following query Code:
ALTER TABLE forum ADD sponsorname VARCHAR(100) not null AFTER cancontainthreads, ADD sponsorimg VARCHAR(100) not null AFTER sponsorname, ADD sponsorurl VARCHAR(255) not null AFTER sponsorimg Add a custom template, name it forumhome_forumbit_level1_nopost_sponsor and put the following in it: Code:
<tr id="cat"> <td bgcolor="{categorybackcolor}" colspan="2"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="{categoryfontcolor}"><b>$forum[title]</b></normalfont></a> <br><smallfont color="{categoryfontcolor}">$forum[description]</smallfont></td> <td bgcolor="{categorybackcolor}" colspan="4"><a href="$forum[sponsorurl]" target="_blank"><img src="{imagesfolder}/$forum[sponsorimg]" border="0" alt="Proudly sponsored by $forum[sponsorname]"></a></td> </tr> In forum.php (under your admin folder) add PHP Code:
PHP Code:
Still in forum.php, replace PHP Code:
PHP Code:
Still in forum.php, add PHP Code:
PHP Code:
Still in forum.php, replace PHP Code:
PHP Code:
Save and upload forum.php. In index.php (the main folder) replace this line PHP Code:
PHP Code:
Save and upload index.php. That's it. If you did everything correctly (it wasn't very hard, was it? ) and I didn't do any mistakes (it's tested alright!, but I might have forgot something to post), you can start adding sponsors to your forum! Show Your Support
|
Comments |
#292
|
||||
|
||||
|
#293
|
|||
|
|||
I've already got my main page tables altered. Does anyone know if this hack/template change will work out of the box for me with the way I have the forum at about 80% and on the left side?
www.sportscardforum.com Thanks, BGray |
#294
|
||||
|
||||
i have moded forum 2.3 with the store hack in it
so i moded it a little and now i get a database error PHP Code:
|
#295
|
||||
|
||||
you are missing a single quote mark off the end of this line
Code:
moderateattach='0', storereply='0', storethread='0 Code:
moderateattach='0', storereply='0', storethread='0' |
#296
|
||||
|
||||
Quote:
cause that was it thanx |
#297
|
|||
|
|||
i got it to work finally. vb 2.2.8
2 things-the proudly sponsered by text doesnt show up. if the page hesitates to load, you can see the text does show up, but when the image loads it gets placed on top of the text, making it not visable. i dont really care too much about the text though. this is my problem: when i click the banner images, it doesnt take me to the sponser url. it tries to goto http://my board url/sponser url and then redirects to the file not found error page. for example my board is http://www.anabolic-alchemy.com it tries to goto http://www.anabolic-alchemy.com/www.gearboxinc.com gearboxinc is my sponser url how do i make it so that it doesnt add my boards url first? |
#298
|
|||
|
|||
Please, somebody make this hack work on VB3... I love it...
|
#299
|
|||
|
|||
Has anyone tried this on vb3 Gamma? Sitepoint seems to have licked it. Anyone else?
|
#300
|
|||
|
|||
I love the way it looks on sitepoint, and I'm waiting also for a vb3 release of the hack that is stable...
I'm still working on getting my VB set up for the first time, so I have a while to wait until I get my site customized the way I want anyway. |
#301
|
|||
|
|||
Hi -
Is there away to have two banners from different sponsers side by side. I have tried and gotten really close but no cigar. Thanks, Midz |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|