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 |
#172
|
||||
|
||||
hypedave,
Please note that posting entire vBulletin scripts is not allowed. Thanks, Bira |
#173
|
||||
|
||||
yeah I forgot about that, oops sorry, well can someone still help me out, oh yeah, I hate it when people call me hyperdave
if I wanted an r in hype I would add one, thanks |
#174
|
||||
|
||||
First of all... great hack firefly... nice mods too amykhar!
Got it working great on forum home and forum display... now trying to get it to show-up on threads, ie; if a forum is sponsored, the threads within that forum inherit the sponsor and display it on each thread. tried building duplicate template called sponsoredby_thread, with the following: PHP Code:
Added "$sponsoredby" in the template showthread... Seems to be some kind of path issue? Picks up a holdedr for the image (including alt text), but no sponsor image and no link. Any ideas? Am I doing this all wrong? Thanks in advance for any assistance and thanks again for the hack. VERY useful. |
#175
|
||||
|
||||
Hello,
I have followed the steps and added some sponsors in my admin system. Unfortunately, they are not showing up on my Forums homepage where they should be. When I go to edit the admin, it does not pre-fill in the form fields for sponsor information. Can anybody shed any light on this? All the best, Kind Regards, Ross Williams |
#176
|
||||
|
||||
PLEASE - can anybody help? I know this hack has been around for a while, and I've been looking forward to installing it, but for some reason no sponsors are appearing on my forums homepage (http://www.servicepals.com/forums). I'm running vBulletin 2.2.1 and vbPortal.
I can add visitors in the backend, but when I go to edit that forum again, the input fields are not pre-filled with the info I just entered. Is this normal? The forums are not showing up on my front end, but I would like to clarify the backend first to diagnose what the problem is...sniff sniff... Cheers for now, Ross |
#177
|
||||
|
||||
Start with the original forum.php file, and re-install the hack on it.
|
#178
|
||||
|
||||
Hi Firefly,
Will do - how likely is this to solve the problem? Has my phenomena been seen before? Ross |
#179
|
||||
|
||||
SUCCESS.
I suspect that I'd missed one of the queries out on the forum.php part of the hack. All working now. Anybody know how I can incorporate a Commission Junction Smartzone into this code? Reason being that I'd like to rotate the sponsors of each forums without input on my part (I is a lazy bugger). Cheers for now, Ross |
#180
|
||||
|
||||
Hello,
I've been trying to incorporate Amy's addition, allowing us to display the sponsor at the top of the forum. Have modified forumdisplay.php, created the new template, but am having problems with this bit : Quote:
Hugely impressed with this hack guys, Cheers, Ross |
#181
|
||||
|
||||
add it to the section "$templatesused="
Now if I could get some help with my problem above I would be most thankful! Gotta have it! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|