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 |
#62
|
||||
|
||||
SystemLogic:
That really looks good. Thanks. ForzaGrifo: Can you please paste the complete error message here? This function is used on almost all files, you really shouldn't have a problem with it. Is this the only place you get this error? |
#63
|
||||
|
||||
Thanks alot for this, I've been using it for a little while without a glitch!
|
#64
|
|||
|
|||
Works Great!
Thanks! |
#65
|
||||
|
||||
I've just started using this hack on my forum (finally!), and it was easy as I could have hoped to get it working
I was wondering if it would be possible to, perhaps in a future version, have a counter that would count click-thrus...? Thanks for another great piece of code!! |
#66
|
|||
|
|||
Yep, I was thinking the same thing..
I am going to set mine up to keep a record of hits for each sponsor.... easy enough to do.. |
#67
|
||||
|
||||
Quote:
|
#68
|
|||
|
|||
Sure man.. Just upload a script to count clicks to a url...
I have attached a basic one, that should work just fine for you... Read the read me file and you will be all set.... You will just be linking to: http://yourdomain.com/cgi-bin/blah blah/clickcount.cgi?action=jump&URL=http://yoursponsor.com Really easy and fast to setup... ---------------------------------------------------------------------------- I would like to see this added to the Hack itself... Like next to the picture (image) for the sponsor | a cell on top "Hits" and then under that the count on bottom? (as a option that can be turned on or off) Ofcourse you could just remove the code (hehe) I will be trying to set mine up in this way later... <edit> well maybe this information is not needed to be public.. *thinks* |
#69
|
||||
|
||||
You kick much bottom. Thanks!
|
#70
|
|||
|
|||
Blah, I do not think I am going to add the count view to public,
But others may like this feature? Maybe it could be added to this hack... I just added the click count to the admin CP, thats good enuff for me! |
#71
|
||||
|
||||
I've added the banner to my forumdisplay using the code on page 2 - how would I go about adding this to my threads as well? I tried using similar code, but I don't know if showthread.php parses $foruminfo properly(??).
Any idea? Ta Mark |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|