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 |
#92
|
|||
|
|||
thankx m8
|
#93
|
|||
|
|||
Strange!!! I finally got it to work, but that's after I figured out that the culprit is in the copy and paste!!!!
When I copy and paste the code, it gives error when the script is run. But when I manually type the code in, no errors!!! Does anyone know why it won't work when I copy the code from this thread and paste it into my text editor?? btw, Thx Firefly for helping! |
#94
|
|||
|
|||
Quote:
|
#95
|
|||
|
|||
Thanks Firefly for this wonderful hack.
|
#96
|
||||
|
||||
Thanks for that extra snippet of code for showthread.php, Firefly As the kids like to say, you rock!
|
#97
|
|||
|
|||
Heya, I just registered so I can post a question.
How exactly do you have different sponsor ads for each Forum? I did everything that amykhar listed, including adding $sponsoredby to my forumdisplay template. Nothing shows up at all in the Forum that I added the banner to through the Admin system! It would be really great if someone could write more detailed instructions on having unique banners in each forum. |
#98
|
||||
|
||||
Firefly,
I saw this hack a while ago and wanted to install it - however i've only just got round to doing it - and I just wanted to say THANKS! for a great hack... |
#99
|
|||
|
|||
Great hack! One Question. . .
i want to link to pictures on another server. I figure i would have to edit this part of the template Code:
<img src="{imagesfolder}/$forum[sponsorimg]" border="0" alt="Proudly sponsored by $forum[sponsorname]"> Thank for any help and thanks for a GREAT hack! Ryan C. |
#100
|
|||
|
|||
I would just replace ( src="images/$forum[sponsorimg]" )
With (src="http://www.blahblah.com/blah/images/$forum[sponsorimg]" ) then you store the images in that folder on that site.. and when you ad the sponsor just write the picture name.. Seems like the best way to me.. |
#101
|
|||
|
|||
YourHostSucks,
only problem is i want to use comission junction to sponsor the forums. This is the code they give you. . . <a href="http://www.qksrv.net/click-904372-1614906" target="_top" > <img src="http://www.qksrv.net/image-904372-1614906" width="120" height="60" alt="" border="0"></a> Any ideas? BTY Damn your quick! |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|