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 |
#132
|
||||
|
||||
The problem seems to be in displaying the template. I will play with it a bit when I get a chance.
Amy |
#133
|
||||
|
||||
I don't know why this worked, but it did. I simply copied the eval template line
PHP Code:
http://www.eaforums.com/forumdisplay.php?s=&forumid=49 Amy |
#134
|
||||
|
||||
OK, after installing it by hand typing (copy and past didn't work), everything works great, except that on the forums that I have sponsored, only the images shows up, and not the Proudly sponsored by $$$$$. Any ideas of what could be wrong or were to look. I have gone over everything with a fine tooth comb, and can't seem to find anything that looks out of the ordinary.
Thanks! |
#135
|
||||
|
||||
I couldn't find a forum that you have sponsored. It also seems that you require registration to view posts, and that might be why I am not seeing the sponsor images. Do you have a test account so I can peek at your html source?
Amy |
#136
|
||||
|
||||
Amy, thanks for the effort. I changed the code in the template from an alt= text referrence to just text, and it showed up great. For some reason, the image was appearing, but the alt text was missing. Thanks again.
|
#137
|
|||
|
|||
Okay...
call me nutty ... but where do I upload sponosor details like image and such like?? I've got the hack installed....thanks for this .... |
#138
|
|||
|
|||
don't worry ... I found it on page 2 .. didn't realise this was A HUGE thread...
thanks guys ... really like this |
#139
|
|||
|
|||
check out http://www.studiowhiz.com/_boards we have this running both on the forum front and in the thread display sections...
now what I'm looking at extending is having the ability to put a FLASH file or GIF/JPG in the FORUM display area ... so sponsors get some space ... not too much (Sitepoint have a bit much) ... any ideas?? |
#140
|
||||
|
||||
Great hack works great on 2.2.0
|
#141
|
|||
|
|||
Hi Firefly
The demo looks great so your hack must be great too I haven't installed this (yet) because i'm more looking into something that can rotate banners of original banner size 468x60 pixels so with every view another banner will get in place. I have something within vbportal on my main page and would like to see this on my forum, is this possible ? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|