The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Banner ad on forum Home Details »» | ||||||||||||||||||||
Adapted from "Add a banner image to each forum" script by Harrybutt
https://vborg.vbsupport.ru/showthread.php?t=61555 This modification will add an image banner with link and text to each forum you choose, and display it in on your forumhome, you can have a different banner for each forum with additional text above the banner like Sponsored by or affiliated with, or you can choose to have no text. I have used 100x25px images for the example screen shot, but you can use what ever size you like, but remember it will effect the way your forum looks. Hope people find this usful, this is my first hack as I'm still a big noob when it come's to hacking Opps sorry made a slight error in the dir name, it's fixed now For 3.5.x look here Show Your Support
|
Comments |
#72
|
|||
|
|||
Quote:
Quote:
|
#73
|
||||
|
||||
Hi Beermonster,
there is a Firefox and Opera incompatibility in your code. As it stands, in those browsers, the banners are displayed in the middle of the column rather than right justified. This is because your table HTML is wrong. Instead of HTML Code:
<if condition="$forum['fhbanner']"> <table align="right" border="0"><div align="center" valign="top">... ...</div></table> </if> HTML Code:
<if condition="$forum['fhbanner']"> <table align="right" border="0"><tr><td align="center" valign="top">... ...</td></tr></table> </if> |
#74
|
|||
|
|||
Quote:
|
#75
|
|||
|
|||
Quote:
Now can you help me with this other set of code? I would appreciate it beyond words. You guys that do this stuff are unreal and deserve lots of credit ! You say I need another set of boxes to put details in, but the boxes are already there in my control panel under the sub forum. It's just when I plug in info, it isn't displayed. What do you say? Help out a friend. |
#76
|
|||
|
|||
Quote:
Code:
// Adds fields to forum table. Run Query: ALTER TABLE `forum` ADD `fhbanner2` VARCHAR( 50 ) NOT NULL AFTER `description` ; ALTER TABLE `forum` ADD `fhbannerlink2` VARCHAR( 250 ) NOT NULL AFTER `fhbanner2` ; ALTER TABLE `forum` ADD `fhmessage2` VARCHAR( 50 ) NOT NULL AFTER `fhbannerlink2` ; ------------------------------ Find in: admincp/forum.php print_textarea_row($vbphrase['description'], 'forum[description]', $forum['description']); below add: print_input_row($vbphrase['fhbanner2'], 'forum[fhbanner2]', $forum['fhbanner2']); print_input_row($vbphrase['fhbannerlink2'], 'forum[fhbannerlink2]', $forum['fhbannerlink2']); print_input_row($vbphrase['fhmessage2'], 'forum[fhmessage2]', $forum['fhmessage2']); Find: $forum['description'] = convert_to_valid_html($forum['description']); below add: $forum['fhbanner2'] = convert_to_valid_html($forum['fhbanner2']); $forum['fhbannerlink2'] = convert_to_valid_html($forum['fhbannerlink2']); $forum['fhmessage2'] = convert_to_valid_html($forum['fhmessage2']); --------------------------------- Edit Template : forumhome_forumbit_level1_post Find: <tbody> <tr align="center"> <td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]"> below add: <!-- Ad Banner Start --> <table align="right" width="15%" border="0"> <div align="center" valign="top" valign="top"> <if condition="$forum['fhbanner2']"><font size="1">$forum[fhmessage2]</font><br><a href="http://$forum[fhbannerlink2]" target="_blank"><img src="images/fhbanner/$forum[fhbanner2]" alt="$forum[fhbannerlink2]" border="0" /></a></div></if></table> <!-- Ad Banner end --> -------------------------------------------- Add these phrases: Varname: fhbanner2 text: Banner 2 Varname: fhbannerlink2 text: Banner 2 Link Varname: fhmessage2 text: Postbits 2 Banner text i.e. Sponsored By or Affiliate with -------------------------------------------- Then, Create a "fhbanner2" folder EX: $vbhome/images/fhbanner |
#77
|
|||
|
|||
I'm not sure you understand what I'm trying to do.
Go to www.sportbikes.ws and look at the "Pocketbike" forum. I have a sponsor already there. Done deal...happy. Now go into that forum http://www.sportbikes.ws/forumdisplay.php?f=103 and you'll see a sub forum "FAQ". That's were I want to put the second sponsor. I put the one you see there now just using some html to get by. In the admincp, if I go into that FAQ sub forum, I see all the fields that I do on the main forumhome page. Is this your understanding? Maybe I'm the one needing to have a few beers. Thanks for the help !! |
#78
|
|||
|
|||
Been messing with this for awhile now and cant get it to run......can someone help installl or install it for me.....followed all the steps and banners not showing up.
|
#79
|
|||
|
|||
How do i run query? I dont know how to do the first step
do i need to do anything diff for 3.0.3? |
#80
|
|||
|
|||
Quote:
|
#81
|
|||
|
|||
Can the banners be set so they expire after a period of time or even better...
Can the advertiser sign up, upload their banner, pay for the time requested, and it simply sits in admincp waiting a simple accept link (banner approval) The admin clicks the link and the banner is added for the time paid for... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|