Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Banner ad on forum Home Details »»
Banner ad on forum Home
Version: 1.00, by Beermonster Beermonster is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 04-16-2004 Last Update: Never Installs: 71
Supported
 

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 06-10-2005, 01:49 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jimnyc
I checked there at least a dozen times and the banner options just don't appear when I choose edit forum. What could I have done wrong that it doesn't even show in the CP?
honestly not much, admincp/forum.php is the only file to edit.. So you've got 3 queries to run, 1 file to add to twice, 1 template to add to, and 3 phrases to add. Then all you do is make a dir "fhbanner" in your forums /images folder..
Reply With Quote
  #103  
Old 06-27-2005, 05:31 PM
enginethatcan't enginethatcan't is offline
 
Join Date: Jul 2003
Location: MA
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

getting this error when I hit save in the admin cp

Invalid SQL: UPDATE forum SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Anabolics 101 - Sponsored by AG-Guys.com',
description = 'The only place for the most up to date, hardcore enhancement information.
<br><font color=\"9D0000\">Sponsored by</font><a href=\"http://www.AG-Guys.com
\"><b>
</b> AG-Guys.com --- Cialis, Viagra, Liquidex, Clen, T3 and more!
</a>',
fhbanner = 'ag.gif',
fhbannerlink = 'www.ag-guys.com',
fhmessage = 'Sponsored by',
link = '',
displayorder = '1',
daysprune = '-1',
parentid = '3',
newpostemail = '',
newthreademail = '',
styleid = '0',
password = '',
options = '89799',
parentlist = '4,3,-1'
WHERE forumid=4
mysql error: Unknown column 'fhbanner' in 'field list'

mysql error number: 1054

Date: Monday 27th of June 2005 02:29:48 PM
Script: http://www.anabolicevolution.com/admincp/forum.php
Referer: http://www.anabolicevolution.com/adm...t&forumid=4&s=
Username: ********
IP Address: **.***.***.***.*
Reply With Quote
  #104  
Old 06-27-2005, 05:54 PM
Beermonster Beermonster is offline
 
Join Date: Dec 2003
Location: England
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by enginethatcan't
getting this error when I hit save in the admin cp

Invalid SQL: UPDATE forum SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Anabolics 101 - Sponsored by AG-Guys.com',
description = 'The only place for the most up to date, hardcore enhancement information.
<br><font color=\"9D0000\">Sponsored by</font><a href=\"http://www.AG-Guys.com
\"><b>
</b> AG-Guys.com --- Cialis, Viagra, Liquidex, Clen, T3 and more!
</a>',
fhbanner = 'ag.gif',
fhbannerlink = 'www.ag-guys.com',
fhmessage = 'Sponsored by',
link = '',
displayorder = '1',
daysprune = '-1',
parentid = '3',
newpostemail = '',
newthreademail = '',
styleid = '0',
password = '',
options = '89799',
parentlist = '4,3,-1'
WHERE forumid=4
mysql error: Unknown column 'fhbanner' in 'field list'

mysql error number: 1054

Date: Monday 27th of June 2005 02:29:48 PM
Script: http://www.anabolicevolution.com/admincp/forum.php
Referer: http://www.anabolicevolution.com/adm...t&forumid=4&s=
Username: ********
IP Address: **.***.***.***.*
Are you sure you have ran the sql query correct? it's saying that one of the fields isn't there
Reply With Quote
  #105  
Old 07-20-2005, 06:26 AM
csidlernet csidlernet is offline
 
Join Date: Apr 2003
Location: sydney
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

coolies thanks
/me hits install
Reply With Quote
  #106  
Old 01-19-2006, 07:06 AM
veedee veedee is offline
 
Join Date: Oct 2001
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone know if this will work for 3.5.1 ?
Reply With Quote
  #107  
Old 01-19-2006, 07:09 AM
Beermonster Beermonster is offline
 
Join Date: Dec 2003
Location: England
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by veedee
Does anyone know if this will work for 3.5.1 ?
Check my sig for details
Reply With Quote
  #108  
Old 03-16-2006, 01:43 AM
Howdy Howdy is offline
 
Join Date: Feb 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have it working on 3.53. Just had to change the admincp slightly from this in the directions:

Find:
$forum['description'] = convert_to_valid_html($forum['description']);

below add:
$forum['fhbanner'] = convert_to_valid_html($forum['fhbanner']);
$forum['fhbannerlink'] = convert_to_valid_html($forum['fhbannerlink']);
$forum['fhmessage'] = convert_to_valid_html($forum['fhmessage']);

to this -->
below add (instead of above):
$forum['fhbanner'] = str_replace('&amp;', '&', $forum['fhbanner']);
$forum['fhbannerlink'] = str_replace('&amp;', '&', $forum['fhbannerlink']);
$forum['fhmessage'] = str_replace('&amp;', '&', $forum['fhmessage']);
Reply With Quote
  #109  
Old 03-16-2006, 05:46 AM
Beermonster Beermonster is offline
 
Join Date: Dec 2003
Location: England
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Howdy
I have it working on 3.53. Just had to change the admincp slightly from this in the directions:

Find:
$forum['description'] = convert_to_valid_html($forum['description']);

below add:
$forum['fhbanner'] = convert_to_valid_html($forum['fhbanner']);
$forum['fhbannerlink'] = convert_to_valid_html($forum['fhbannerlink']);
$forum['fhmessage'] = convert_to_valid_html($forum['fhmessage']);

to this -->
below add (instead of above):
$forum['fhbanner'] = str_replace('&amp;', '&', $forum['fhbanner']);
$forum['fhbannerlink'] = str_replace('&amp;', '&', $forum['fhbannerlink']);
$forum['fhmessage'] = str_replace('&amp;', '&', $forum['fhmessage']);

Or you could have just installed the 3.5.x plugin found here
Reply With Quote
  #110  
Old 03-16-2006, 06:27 PM
Howdy Howdy is offline
 
Join Date: Feb 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yea I just saw that...
Reply With Quote
  #111  
Old 12-24-2006, 11:00 AM
[email protected] vbmenu_register("postmenu_1144399", true);
Guest
 
Posts: n/a
Default

Anyone know if this would work on 3.6.3 or better ? Maybe a similar hack somewhere else ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06203 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete