![]() |
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! :D 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"> 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! |
Looks interesting. Perhaps I'll give it a try. :)
|
wow looks nice might try it on my private testing copy :)
then again with 2.0.4 soon might not :D |
Thanks. :)
What do you mean "with 2.0.4 soon might not"? This feature is gonna be on 2.0.4? Awesome! :D |
Quote:
|
Oh ok, gotcha. :)
|
2.0.4 should be released shortly after John and James return from their expedition
|
Expedition?
Are they gonna be on National Geographic, like all those people who're going to Alaska and places like that? |
Quote:
|
Don't dis Alaska. I LIVE IN ALASKA. Me = Alaskan Pimp.
Anyways Alaska is cool, and for your info, we don't live in friggin igloos. |
Ok...
|
Sure ya do. I saw it on TV! All people in Alaska wear big brown fluffy coats, live in igloos, have dark tan skin, and eat Eskimo Pie. :D TV told me so...
Where did James/John go? |
Quote:
|
Quote:
|
Quote:
Ohh... I guess we get the image.. of people living in igloo's... surfing the web and buying stuff off of yahoo.. :) |
Great hack...muchas gracias!
|
[QUOTE]Originally posted by FreshFroot
Great hack...muchas gracias! |
I extended this hack a bit to put a sponsor ad in a particular forum.
To do this, I added a new template called forumdisplay_sponsoredby and put this in it: PHP Code:
PHP Code:
PHP Code:
Finally, I added $sponsoredby to my forumdisplay template. Sorry for the clumsy explanation. It took a bit of putzing around for me to get this to work, but it does. :) demo: http://www.eaforums.com/forumdisplay.php?s=&forumid=27 Amy |
Good job! :)
|
nice extension.. waits for 2.0.4 first :D
|
Ok...so I've got the hack installed, now how do I add the sponsors?
|
If you want to add sponsors for existing forums, just edit that forum. (Admin CP => Forums and Moderators => Modify => Edit) :)
|
Damn your quick! I like your style...thanks :)
|
I went into the CP and in to Modify Forums and didn't see anything about sponsors. Did I miss a step somewhere?
|
This is where you should look.
If it doesn't show up there, make sure you edited forum.php correctly and uploaded it. :) |
Thanks...I got it corrected, but now my server is acting up!!!
Again...another great hack from FireFly :) |
Hi FireFly,
awesome, will use it as soon as I found some sponsors or found a way to use it an other way, thx and keep up your good work, -Tom |
Check out Comission Junction, you can use affiliate programs for your sponsors. Maybe make some $$$.
|
Thanks for the hint,
am on my way :D -Tom |
Thanks guys! :D
|
That's something I've been looking for! I am PHP-phobic though - never installed a hack in my life (I shiver at the thought of upgrading my forums... I always think I'll end up crashing them!).
Firefly, do you provide support by phone for people in your locality :D I might just need that.... |
Quote:
|
Everyone who posted in here, the only forum I saw this script on was sitepoint.com did anyone actually install this hack and leave it in?
|
I have it running, but I don't show the banners on my main page, just within specific forums. It is still working great though.
I even managed to use this hack to get a sponsor for one of my forums already. It's going to mean extra cash which we can really use right now. :D Amy |
This hack would be cool if it gets sponsors for you too! ;)
|
Hehe. :p
|
Well I would install it but I don;t want ot have to uninstall it if I don;t like it. How are th sponsor thingys made? Are they pictures because I read over the read me and it didn't say aything about pictures need to be uploaded.
|
You will need to upload pictures yes.
|
You can add sponsors selectively for each category.
If there is no sponsor, nothing different will be shown. |
Then I'll be installing this hack, thanks guys.
|
All times are GMT. The time now is 04:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|