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
Add a banner image to each forum Details »»
Add a banner image to each forum
Version: 1.6, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Version: 3.0.11 Rating:
Released: 02-13-2004 Last Update: 12-17-2005 Installs: 98
DB Changes Template Edits
Code Changes  
No support by the author.

Works on: VB3 RC3 - 3.1+

This modification will Add an image banner w/ link option per forum.

This hack modifies/adds :

1 php file
2 templates
4 query / table field
4 added phrase

*1.6 Update 12.18.05

Useage:
This modification will Add an image banner w/ link Or paste in your own HTML code option per forum. These files can be any image. (png, jpg, gif, ect). This will be located after the $navbar on FORMDISPLAY. This images can be located on the localhost or on a remote server.

Admincp -> Forums & Moderators -> Forum Manager -> Edit Forum -> Fill out the banner info.

Banner Image - (location of image)
Banner URL - (Link that you go to when u click the banner)
Alt Tag (if you mouse over the banner; pop-up text)
HTML Paste (added)

You can also fill out the info when you make a new forum.

NOTES:


Changes:
--------
1.6
Banner shows up on each thread
adds: 1 more template edit to the install

*1.5
+Added HTML option

*1.2
+ Added Alt text for each banner(admincp)
+ Images no longer must be on the server
You can use a local image off your webserver or use a image at another location.
EX: /images/banner/someimage.jpg or http://www.yoursite.com/someimage.jpg

*1.1
+ Added option for image to have a link

*1.0
+ Image banner for every forum under the $navbar

*//


JAVA BANNER ROTATION

FYI-

I did some playing around took the <if></if> statement added to the ForumsDisplay template. You can insted place it in the header / footer template and it will show up also.

VB3.5X ver
https://vborg.vbsupport.ru/showthread.php?t=94119

Show Your Support

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

Comments
  #62  
Old 05-21-2004, 09:33 PM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HarryButt
I am working on some updates. Should have something by monday 05.24.04
Excellent. Hope you took onboard the HTML suggestion. I used a modified version of this hack when I upgraded to vB3 last weekend. I added some ALT text as a third additional field in the forum table.
I would, however like to replace it all with the HTML or preferably processed contents of a PHP file.
Example of a banner rotation script if anyone finds this useful:
PHP Code:
<?php
$banners 
= array (
    
"avforums_avsales.gif|avforums_avsales.pl|Providing Audio and Visual equipment for over 15 years. Home cinema centre and on-line store.|0|468|60",
    
"avforums_digitaldirect.gif|avforums_digitaldirect.pl|Save ?'s Off High St Prices|0|468|60",
    
"avforums_discounttv.gif|avforums_discounttv.pl|Discount electrical uk - exclusive deals for av forums. Click here|0|468|60",
    
"avforums_richer.gif|avforums_richer.pl|Richer Sounds, The UK's Biggest Hi-Fi Retailer|0|468|60"

);
$banner $banners[mt_rand(0,sizeof($banners) - 1)];
list(
$imgsrc,$myurl,$alttext,$border,$width,$height) = explode ('|',$banner);
echo(
"<A HREF=\"http://www.avforums.com/cgi-bin/$myurl\" TARGET = \"_blank\"><IMG src=\"http://www.avforums.com/adverts/banners/$imgsrc?" mt_rand(1,999) . "\" border=\"$border\" width=\"$width\" height = \"$height\" alt=\"$alttext\"></A>");

?>
Reply With Quote
  #63  
Old 05-21-2004, 11:13 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Spinball,

Ill take a look at that . This is just some small updates.
Reply With Quote
  #64  
Old 05-22-2004, 08:57 AM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool - thanks, Harry.
Reply With Quote
  #65  
Old 05-27-2004, 07:57 AM
reteep reteep is offline
 
Join Date: Mar 2004
Location: Germany
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spinball
Excellent. Hope you took onboard the HTML suggestion. I used a modified version of this hack when I upgraded to vB3 last weekend. I added some ALT text as a third additional field in the forum table.
I would, however like to replace it all with the HTML or preferably processed contents of a PHP file.
Example of a banner rotation script if anyone finds this useful:
Can you explain how to use that rotation script with the banner hack?
Reply With Quote
  #66  
Old 05-27-2004, 08:10 AM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stormblast
Can you explain how to use that rotation script with the banner hack?
Unfortunately you can't. I posted the rotation script as an example so Harry would consider altering this hack so it could be used.
Basically if the idea of having an image, URL and ALT text for each forum should be dropped completely and instead a single field which links to a php script.
The php script is evaluated and the results put at the top of the forum.
This script could contain my rotation script.
Reply With Quote
  #67  
Old 06-05-2004, 07:20 AM
run.exe's Avatar
run.exe run.exe is offline
 
Join Date: Mar 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1) I frequently peruse this outstanding resource, and I was intrigued by this hack.

2) I followed every step, to the letter; however, no banners are being displayed.

3) I am running vBulletin (release code) v3.0.1

Any clarification/assistance would be most appreciated; my board is here:

http://www.500Ecstasy.com/forums


Thank you very much, in advance.

Kind regards,
Reply With Quote
  #68  
Old 06-05-2004, 09:50 AM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Run - it's impossible to tell what you've done wrong just by looking at your board. Most likely you have misnamed the banner images or put the wrong link to them in your forum table. What URL have you used for your banners?
Reply With Quote
  #69  
Old 06-12-2004, 05:23 AM
FWF FWF is offline
 
Join Date: Feb 2003
Location: Indianapolis, IN
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i UNdo the SQL edits, i tryed to install this hack however it wont work. So id like to undo the SQL edits. thanks in advance.
Reply With Quote
  #70  
Old 06-13-2004, 02:30 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FWF
how do i UNdo the SQL edits, i tryed to install this hack however it wont work. So id like to undo the SQL edits. thanks in advance.
If ya need help yell :nervous:

But to kill the sql install :

Code:
ALTER TABLE `forum` DROP `banner`, DROP `bannerlink`, DROP `banneralt`;
works for me :ermm: whats up ?
Reply With Quote
  #71  
Old 06-14-2004, 01:24 AM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hhmm cant install this

Quote:
Error

SQL-query :

ALTER TABLE `forum` ADD `banner` VARCHAR( 50 ) NOT NULL AFTER `description`

MySQL said:


Duplicate column name 'banner'
any help ?
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 11:42 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
  • Page Generation 0.04731 seconds
  • Memory Usage 2,321KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (5)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
  • (4)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
  • (11)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