![]() |
Quote:
Pretty sure he said a few posts back he was working on it. |
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. |
What about flash banner? Or html code, for getting the banner from some adserver?
|
Easy hack great job!
|
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. |
Hello? Can I get some help on this? An update..something?
|
Quote:
Yep I used phpmyadmin. Code:
ALTER TABLE `forum` ADD `banner` VARCHAR( 50 ) NOT NULL AFTER `description` ; |
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. |
[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. |
Thanks I'll try this from scrach and see what happens.
|
Hello.
The banner image doesn't appear in my forum, although I have followed all the steps you indicate. The new banner image is in the folder: ... mywebsite.de/images/banner/ ... Bernd Z. |
Just a question.. so dont shoot :)
I like the assigned Banner... great hack Would it be possible so that we you can add a html code also? Its nice to have a banner then also add some information about the company.. like what they sell and so forth. Just a idea |
Look folks, we seem to have lots of people wanting this and that included above specific forums.
I personally want one banner displayed at random from several and in addition some static HTML pages containing news read in and displayed. Let's do something which caters for everyone. Is this technically possible? How about we have one new field in the forum table called, say, 'topinclude'. This field is the url of a file. When the forum is displayed, the contents of this file are evaluated and displayed at the top. Could this file be a .php file? If so then we could all put whatever we want into this file and hey presto it gets displayed at the top. Can we do this? |
I just couldn't figure out how to add more than one banners yet. Could someone break this down again, please?
So in fact 3 different banners at 3 different spots. Thanks! |
You know to catter to them why not just add 2 fields? 1 for just the banner image name which is in $home/images/banner, then and advanced option to allow for HTML to be placed there instead. Then you guys can install some free banner rotating script (www.hotscripts.com).
If the basic field is empty ignre, if advnaced field is empty ignore. Just some suggestions, I will try and edit this for you guys! |
I know this may be a stupid question but where do I add the banners? lol
|
Quote:
|
The correct Query is
Code:
ALTER TABLE `testing`.`forum` ADD `banner` VARCHAR(50) NOT NULL AFTER `description`, ADD `bannerlink` VARCHAR(250) NOT NULL AFTER `banner`; |
This should not be limited to images only. Having "HTML" per forum would be a lot more functionable. Just my .02 rubbles.
Great hack. I will try it out. |
I am working on some updates. Should have something by monday 05.24.04
|
Quote:
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:
|
Spinball,
Ill take a look at that :). This is just some small updates. |
Cool - thanks, Harry. :)
|
Quote:
|
Quote:
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. |
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, |
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?
|
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.
|
Quote:
But to kill the sql install : Code:
ALTER TABLE `forum` DROP `banner`, DROP `bannerlink`, DROP `banneralt`; |
hhmm cant install this :(
Quote:
|
Here is your answer and you said this yourself:
Duplicate column name 'banner' Means that when you tried to run the SQL commands it tried to installed a column called banner but it could not because there is one already there. |
I have a problem. Baner prevents to use search.
Essence of a problem: having pressed a button SEARCH leaves panel search in which we hammer themes for search. Panel leaves here only for banerom. :( Any ideas? |
It would be nice if there was something in the instructions that said that you had to go to into forum manager and then the options would be there for each forum. I couldn't find them, and then after a little bit of looking found them, but I shouldn't have had too.
|
Quote:
It's up on my site for last 7 months. http://www.gzhq.net/forums/ |
This hack has worked well for some time now at ENWorld, though we use it in the $header file to construct a forum specific logo. Our header looks like this...
Code:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"> |
One small problem with the above comes with the popular VBAdvance CMPS hack. This hack doesn't set a forum, so the header falls to the default. In order that we "not" need to use a seperate header for the CMPS pages, the following code was put into our phpinclude_end file.
PHP Code:
|
thank you :)
[high]* turbidblue clicks install :)[/high] |
May I direct people to
https://vborg.vbsupport.ru/showthread.php?t=67942 where there is a fairly simple alternative allowing multiple rotating banners in specific forums? |
i using vb 3.0.2 and nowt happened!
|
Anyway to add a line break after this, cause it touches the top of subforums within the forums
Watson /me clicks install, thanks for this |
All times are GMT. The time now is 06:18 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|