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 |
#282
|
|||
|
|||
Amy,
Thanks for posting.. Well I am under the assumption that the "categories" are the five "all white" (not gray on the left) forums and then the others are the the level 2 forums.. ? There is also another "test" category at the bottom that I just added. James |
#283
|
||||
|
||||
No. Categories won't have the Posts, Threads, Last Posts information. They are a single row all the way across. Look at my board. An example of a category is "Epinions"
You need to set your categories to not act as forums. Amy |
#284
|
|||
|
|||
Amy,
YOU ARE A LIFESAVER!!! I spent 3 hours trying different things this morning......... and just from your post I was able to figure it out in 2 minutes! I had no idea that "act as a forum" was even an option in the control panel.. I set it to "no" and the banner shows up! Great! Thanks a LOT! James |
#285
|
||||
|
||||
No problem
|
#286
|
|||
|
|||
Does this hack work with vBulletin version 2.3.0; can someone confirm, please?
|
#287
|
||||
|
||||
Quote:
I just got around to making this change. The only problem I'm having is that the text field isn't long enough for the entire URL. |
#288
|
|||
|
|||
Yes, I just installed it on vbulletin version 2.3.0 and it works fine! Feel free to give it a try. It works fine.
The hack refers users to specific lines in forum.php to replace information, but the lines do not match the number indicated. Just use your "find" and search for the wording instead of looking for the exact line in the file. Other then that, works like a charm!! Regards, Gabriel |
#289
|
|||
|
|||
Error:
Parse error: parse error, unexpected ')' in {edited}admin/forum.php on line 143 Line 143: (NULL,'$styleset','".$title)."','".$description)." ','$isactive','$displayorder', '$parentid', I would guess it doesnt like .$title).'" and $description).'" Is there a work around for this??? Thx Eric |
#290
|
|||
|
|||
OK, I understand this and I have installed it and works. Now then how do you get this installed on the forumdisplay.php to work correctly.
I tried replacing the same info like on the index.php page. Well I got a surprise when I refreshed my forums, BIG BLUE SCREEN with little folders, lol Can someone make this happen not on the index page but on the forums CATAGORY areas??? This would be nice if I could get some help on this ... thank you |
#291
|
|||
|
|||
Hi I Love this hack, but I am looking for a heads up on how they do the sponsered by at graphic-forums.com. Its a simple
sponsered by: blah - blah- blah (link) i wanted to maybe place a graphical badge there 88*100. I tried doing it in HTML but I ran out of room in the forum descriptions section. I have seen this once before and I would like to use it isolated not with fireflys hack... any leads or help... Thanks, midz |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|