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 |
#192
|
||||
|
||||
finally, i get the button the right, and the image in the background, but the bg image 'tiles' and i do not want it to, you can see the banner on the forums at http://www.airwavescomms.co.uk/forums
here is the code I am using, can someone please modify it to not get the image to tile, I think CSS is my answer, but, i am defo no good at that.. so i beg you please help me! PHP Code:
|
#193
|
|||
|
|||
Great hack!!
I have installed the hack now, but how do I then decided what banner to show in each catagories? What's the size of the banners? |
#194
|
||||
|
||||
All customisation and design of the banners is up to you, you set them up as you see fit, however I personally have gone for 210x37 images
|
#195
|
|||
|
|||
ok, but where do I set which banner for with catagory. I mean I what .php site or template and how? I want to use a difference banner for all catagories and how to I set the url too?? Please help, or paste some code that shows me what to do?
Thanks |
#196
|
||||
|
||||
the banners can be set up in the forum category properties in admin cp.
each category can have a differnet banner this way |
#197
|
|||
|
|||
What's wrong here:
Database error in vBulletin Control Panel 2.2.1: Invalid SQL: UPDATE forum SET styleid='1', title='General', description='', active='1', displayorder='1', parentid='-1', parentlist='10,-1', allowposting='1', cancontainthreads='0', sponsorname='2pass',sponsorimg='2pass.gif', sponsorurl='http://www.mysponsor.com/cgi-bin/tts-in.cgi?1020207-0',daysprune='30', newpostemail='', newthreademail='', moderatenew='0', allowhtml='0', allowbbcode='1', allowimages='0', allowsmilies='1', allowicons='1', styleoverride='0', allowratings='1', countposts='1', moderateattach='0' WHERE forumid='10' mysql error: Unknown column 'sponsorname' in 'field list' mysql error number: 1054 I have made all the changes that Firefly describes and. I'am running version 2.2.1 |
#198
|
||||
|
||||
will this work on version 2.2.3 also?
|
#199
|
||||
|
||||
Yup it should.
|
#200
|
|||
|
|||
and 2.2.4 ?
|
#201
|
|||
|
|||
could one of the pros help explain how to add-on the specific sponsor for each forum so it carries over to the threads in that forum.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|