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)

BradM 03-23-2004 04:25 AM

Quote:

Originally Posted by Eternal2u
is there any possiblity of changing this to make it where you can enable a random banner to appear..

so you cna put in say 10+ banners, and just have one randomly appear...would be kinda easy i think with a nice php sscript...hmm i think i might have a go at that now tha ti think of it...if you don't mind me editing your mod a bit eh?


Pretty sure he said a few posts back he was working on it.

Spinball 03-25-2004 06:16 PM

This hack is the basis of what I'm looking for and crucial to my upgrade from vB2 to vB3 since I have several sponsors with banners in specific forums.
I do need to be able to specify ALT text for the banners and also to have them rotate randomly.

Silviu 03-28-2004 08:05 AM

What about flash banner? Or html code, for getting the banner from some adserver?

xgaboard 03-30-2004 10:14 PM

Easy hack great job!

Flow Fusion 04-04-2004 10:07 PM

Ok I have two questions...one in the databas quiery it says ...// Adds fields to forum table called banner and bannerlink.

Run Query:

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

So these are to be one field line correct?

And my other question is it says Add these phrases:

are these to be global? or what? Thanks.

Flow Fusion 04-05-2004 12:19 PM

Hello? Can I get some help on this? An update..something?

Zachariah 04-05-2004 01:52 PM

Quote:

Originally Posted by Flow Fusion
Ok I have two questions...one in the databas quiery it says ...// Adds fields to forum table called banner and bannerlink.

Run Query:
ALTER TABLE `forum` ADD `banner` VARCHAR( 50 ) NOT NULL AFTER `description` ;
ALTER TABLE `forum` ADD `bannerlink` VARCHAR( 250 ) NOT NULL AFTER `banner`

So these are to be one field line correct?

And my other question is it says Add these phrases:

are these to be global? or what? Thanks.



Yep I used phpmyadmin.

Code:

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

all phrases are global

Flow Fusion 04-06-2004 11:49 PM

I don't understand "description?"
Database error in vBulletin 3.0.0:

Invalid SQL: UPDATE forum SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'The Arts',
description = '',
banner = '',
bannerlink = '',
link = '',
displayorder = '3',
daysprune = '30',
parentid = '-1',
newpostemail = '',
newthreademail = '',
styleid = '0',
password = '',
options = '86017',
parentlist = '5,-1'
WHERE forumid=5
mysql error: Unknown column 'banner' in 'field list'

mysql error number: 1054

can I get some help? This happens when I try to show the forum in the drop down menu.

Zachariah 04-07-2004 04:13 AM

[QUOTE=Flow Fusion]I don't understand "description?"
[QUOTE]

Forum table
description is a row already there.
The comands place banner and bannerlink under the description row.

see attached.

Note: I changed description type to "blob" for something else. It has nothing to do with this hack.

Flow Fusion 04-07-2004 10:47 PM

Thanks I'll try this from scrach and see what happens.


All times are GMT. The time now is 01:44 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.01986 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)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