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 |
#102
|
|||
|
|||
So they are going to be your only sponsor?
PHP Code:
and http://www.qksrv.net/click-904372-1614906 as the sponsor url.... and Their name.. |
#103
|
|||
|
|||
No not my only one just one to fill in till i get some others. ..
|
#104
|
|||
|
|||
I edit my other post.. but 120x60 is pretty large to have..
maybe you should use a different image.. Keep the default code for the hack and make your own image.. just link to what they tell you.. EX: Do not change any code.. Just make a new image and upload it to the correct folder.. then link to http://www.qksrv.net/click-904372-1614906 |
#105
|
||||
|
||||
great hack man, I wanted to know this from the get go
only issue the images were left align, no biggie, ez fix. |
#106
|
|||
|
|||
[QUOTE]Originally posted by snyx
great hack man, I wanted to know this from the get go only issue the images were left align, no biggie, ez fix. |
#107
|
||||
|
||||
rcooper, use this as your template:
Code:
<img src="$forum[sponsorimg]" border="0" alt="Proudly sponsored by $forum[sponsorname]"> |
#108
|
|||
|
|||
Doh! Man I was so sleepy (went to bed after was done with this thread)
I was not thinking clear.. But FireFly is wise and has told you the smart thing to do. Althou I would still suggest you make your own image and do not change the code... You will see what I mean if you put that 120x60 image in the sponsor by section.. (hehe) |
#109
|
|||
|
|||
FireFly yo Rock! Thanks for the great hack and help!
rcooper |
#110
|
|||
|
|||
Just wan't to make sure you know how much I love this feature!
THANK YOU! It is working very well! |
#111
|
||||
|
||||
The hack is wonderful. Just what I wanted. But soon after I installed this my search quit working. I'm not sure if it is the hack or not. Most likely not. However, what could cause my search to stop functioning? When you try a search it comes back to no matches found. If you type less than the required letters for search it does the same thing. It will not redirect or anything. Just no matches found.
Any suggestions? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|