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 |
#242
|
||||
|
||||
Quote:
|
#243
|
||||
|
||||
Nice hack Firefly!
Note to anyone who doesn't know... this hack DOES work on 2.2.6 |
#244
|
|||
|
|||
is there any way i can add sponsors to the forums, not just the categories?
|
#245
|
||||
|
||||
FireFly ... Thank You Again !
Wonderful Hack ... (clicking on installed now). Destee |
#246
|
|||
|
|||
Here is my error
Parse error: parse error, unexpected ':' in /home/dannyitr/public_html/forums/admin/forum.php on line 156 adn this is the line they are talking about: VALUES (NULL,'$styleset','".addslashes <http://www.php.net/addslashes>($title)."','".addslashes <http://www.php.net/addslashes>($description)."','$isactive','$displayorder','$p arentid', |
#247
|
|||
|
|||
Fixed it. for some reason, when I copied and pasted the code it added a website after each "addslashes". I took out all the websites since they are not in the code provided on the first page and it worked!
|
#248
|
|||
|
|||
I can't get the banner in the thread like it says on page 5. Can someone help me?
"and forumdisplay_sponsoredby was included in the list of required templates. I don't know how to do this so I left it out. Can someone help me? Quote:
Why would I modify the new template I just created? I tried re-naming it but all my banners disapeared. I still can't get the banners in the threads. Help. |
#249
|
|||
|
|||
man this is exatcly what i have been looking for, but i cant get this to work after i edit the forum.php and upload, i go to the modify forums in the cp i see the the sponsor stuff on top of everything?? looks real funky and i saw a gif posted here that shows the feature in the options of each forum, and thats not what i get at all...what could i be doing wrong? am i adding the code to the wrong place? i'm a little lost with the instalation instructions...sorry to bug but if anyone has time to help i would really apreciate...
|
#250
|
|||
|
|||
When I wan to add a new forum, I get this problem:
Database error in vBulletin Control Panel 2.2.6: Invalid SQL: INSERT INTO forum (forumid,styleid,title,description,active,displayo rder,parentid, parentlist,allowposting,cancontainthreads,daysprun e,newpostemail,newthreademail, moderatenew,allowhtml,allowbbcode,allowimages,allo wsmilies,allowicons, styleoverride,allowratings,countposts,moderateatta ch) VALUES (NULL,'1','Vole / Stolen','Post items that have been stolen so people can keep an eye out. ','1','3','13', '','1','1','','', '','30','','', '0','0','1','1','1','1', '0','1','1','0') mysql error: Column count doesn't match value count at row 1 mysql error number: 1136 Date: Tuesday 27th of August 2002 01:20:26 AM Script: http://www.montrealracing.com/forums...dmin/forum.php Referer: http://www.montrealracing.com/forums...dd&parentid=13 |
#251
|
|||
|
|||
They refuse to help me on vb.com so can anyone here please respond?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|