vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Add a banner image to each forum (https://vborg.vbsupport.ru/showthread.php?t=61555)

Spinball 05-21-2004 09:33 PM

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>");

?>


Zachariah 05-21-2004 11:13 PM

Spinball,

Ill take a look at that :). This is just some small updates.

Spinball 05-22-2004 08:57 AM

Cool - thanks, Harry. :)

reteep 05-27-2004 07:57 AM

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?

Spinball 05-27-2004 08:10 AM

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.

run.exe 06-05-2004 07:20 AM

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,

Spinball 06-05-2004 09:50 AM

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?

FWF 06-12-2004 05:23 AM

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.

Zachariah 06-13-2004 02:30 PM

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 ?

SnowBot 06-14-2004 01:24 AM

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 ?


All times are GMT. The time now is 04:58 AM.

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.02144 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete