View Full Version : Add a banner image to each forum (vb3.5)
Zachariah
08-11-2005, 10:00 PM
/* -----------------8/11/2005-----------------
[HowTo] Add a banner option image w/ Link or HTML paste to each forum V.1.6
Tested on vBulletin: 3.5.0 RC2
Zachariah - http://www.gzhq.net
This is a VB3.5 Ver of my previous hack:
*** Add a banner image to each forum (VB 3.0x)
https://vborg.vbsupport.ru/showthread.php?t=61555
*** Info:
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.
--------------------------------------------------*/
Upload the "plug-in" and edit 2 template, It's a snap.
:cool:
Changelog:
------------
1.6
Banner shows up on each thread
adds: 1 more template edit to the install
Requested by: - Ryan McBain
** Note: 1.5 - 1.6 needs only to edit SHOWTHREAD not Reinstall the XML files
1.5
Added HTML option (tested w/ Java and Iframe from phpadsnew output)
Added 3.x to VB 3.5 upgrade XML file.
** Random Banner Code Java (https://vborg.vbsupport.ru/showpost.php?p=804471&postcount=80)
**Please click " Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=94119) " to track updates.
TCattitude
08-12-2005, 12:38 AM
Nice!
Can we mod this to do something more "flexible" and "per forum"?, like this:
https://vborg.vbsupport.ru/showthread.php?t=65890
To put our own html code, instead a direct link/image for a banner.
To use another ads script with vbulletin, like phpadsnew.
Can you do that?
Thanks for all in advance ;)
Zachariah
08-12-2005, 12:47 AM
Nice!
Can we mod this to do something more "flexible" and "per forum"?, like this:
https://vborg.vbsupport.ru/showthread.php?t=65890
To put our own html code, instead a direct link/image for a banner.
To use another ads script with vbulletin, like phpadsnew.
Can you do that?
Thanks for all in advance ;)
To put your own html code is not to hard( ill see what I can cook up). This does allow a direct Image / link / alt Tag per forum.
I know the Java / HTML that phpadsnew spits out is easy. I'll have to test the php code it spits out.
TCattitude
08-12-2005, 01:36 AM
To put your own html code is not to hard( ill see what I can cook up). This does allow a direct Image / link / alt Tag per forum.
I know the Java / HTML that phpadsnew spits out is easy. I'll have to test the php code it spits out.
Thanks again in advance for look that ;)
MentaL
08-12-2005, 12:29 PM
Just what i wanted , i asume each section supports different banners and multiple banners?
Zachariah
08-12-2005, 12:43 PM
Just what i wanted , i asume each section supports different banners and multiple banners?
This add-on is very simple.
1 image with or without a link , and alt tag per forum. No rotation , click or impression count.
The code can be moved around on the Forumdisplay template (ie: header, footer, it currently sits under the $navbar).
MentaL
08-12-2005, 12:49 PM
added and using on ragezone.com -- would be nice if i could add multiple stuff side by side or a random option ! none the less its very useful and appreciated.
utw-Mephisto
08-17-2005, 02:25 AM
Works like a charm :) *installed*
wolfyman
08-17-2005, 02:42 AM
easy and nice - thanks :)
clicks install
BuRNZau
08-17-2005, 11:33 AM
Cheers!
rjerina
08-17-2005, 02:27 PM
nice mod. it would be nice too to be able to add in your own html code like someone else said as well, as a lot of people use Google Adsense on their forums :)
wolfyman
08-17-2005, 03:08 PM
agreed - phpadsnew is what i use, but it amounts to the same thing. I'm not live with 3.5 yet, but once I do go live with it - that will be a necessity, not a wish.
utw-Mephisto
09-02-2005, 02:38 AM
Is there a way to show it on forumhome too ?
Really nice.. *Installed*
Would it be possible to make something so we can add the code for a Google adsense banner instead of a regular banner link?
Zachariah
09-02-2005, 04:48 PM
Really nice.. *Installed*
Would it be possible to make something so we can add the code for a Google adsense banner instead of a regular banner link?
I am working on that and an option: "Mod" of the forum can change the banner or not. The adding your own code option will be 1st on the list.
Zachariah
09-04-2005, 01:03 AM
I have the "add" own HTML ready not worked on adding PHP. ( works: w/ Java and Iframe from phpadsnew)
TCattitude
09-04-2005, 03:05 AM
Great! :*
:P
ckmarkhsu
09-05-2005, 02:29 PM
got error =.=
below:
Field ircchan is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 483
Zachariah
09-06-2005, 12:51 PM
Field ircchan is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 483
Has nothing to do with this hack directly, unless there is another hack and is conflicting. Looking @ your error there was a hack dealing with IRC/MIRC you installed that missed a step in the creation of the hack or you missed a step installing it. ( I think ..... I am not a VB guru :cry: )
If this is true try adding a Plugin.
Although you can edit class_dm_form.php, in VB3.5 we have plugins !!! :bunny:
hookname = forumdata_start
$this->validfields['ircchan'] = array(TYPE_STR, REQ_NO);
Let me know how it works out. :nervous:
Great! :*
:P
:rambo: , have you tryed out the html / code part of the update ? I only tested w/ java and Iframe from phpadsnew output.
Feedback :nervous:
Brinnie
09-21-2005, 06:55 PM
This is nice.
So if I have a music banner, I'll put it on the music forum. :)
Ramsesx
09-22-2005, 07:31 PM
I get this error what can be wrong?
MySQL Error : Unknown column 'banner' in 'field list'
Error Number : 1054
Zachariah
09-22-2005, 10:52 PM
Did you skip the XML file import?
This is a Product to be imported via. plug-in system.
1) Choose the right XML file.
*** How to Install:
In your Admin Control Panel
Admincp => Plugin System => Manage Products
Click [Add/Import Product]
Browse for the file "banner_image.xml"
Allow Overwrite should be off
Import
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--
*** How to Upgrade:
There are 2 old ver. of this hack. What do I use?
What do you have installed?
1. banner, alt, link (use: 3.x to 3.5no-code.xml) v1.2
2. banner, alt, link, HTML (use: 3.x to 3.5code.xml) v1.5
In your Admin Control Panel After you upgrade to VB3.5.
Admincp => Plugin System => Manage Products
Click [Add/Import Product]
Browse for the file "xxxxxxxxxxx.xml"
Allow Overwrite should be off
Import
I get this error what can be wrong?
MySQL Error : Unknown column 'banner' in 'field list'
Error Number : 1054
Ramsesx
09-23-2005, 09:37 AM
First I imported the banner_image.xml, than in ForumDisplay I put after $navbar:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
</if>
</if>
</if>
Because it was not working I imported the 3.x to 3.5no-code.xml.
Now I had 2 entries in the plugin folder, I unsinstalled the old one and now having only the Add Banner Upgrade 1.5 in the pluginfolder but this mysql error is coming if I want to save a Forum.
Thank you
Zachariah
09-23-2005, 11:42 AM
vb3.5x new install - banner_image.xml
vb3.0x upgrade - 3.x to 3.5code.xml - If you have already upgraded to ver. 1.5 in VB3.x hack.
vb3.0x upgrade - 3.x to 3.5no-code.xml - If you have ver. 1.2 in VB3.x hack.
After the install you should have:
2 plugins
add Banner - AdminCP
add Banner - ForumDisplay
Your manual template edit is fine, and will stay there even if you install / uninstall the plugins / products.
All XML files will make the same plugins. They have different DB edits.
Ramsesx
09-23-2005, 12:26 PM
Cool, now it is working, thank you for this great plugin Zachariah :) :banana:
Ryan McBain
09-28-2005, 07:14 AM
I must be doing something wrong cause I can't get the banners to show up in the showthread forums (where you see the posts of other people) just the main forums.
Zachariah
09-28-2005, 03:53 PM
Changelog:
------------
1.6
Banner shows up on each thread
adds: 1 more template edit to the install
Requested by: - Ryan McBain
** Note: 1.5 - 1.6 needs only to edit SHOWTHREAD not Reinstall the XML files
TomAlien
10-03-2005, 09:11 AM
How can I use this plugin for a Main Page banner?
How can I use this plugin for a Main Page banner?this would be great :banana:
and then.... hack of the month? :rolleyes:
*click install*
Zachariah
10-03-2005, 12:05 PM
This hack can work where ForumID can be used. The FORUMHOME does not have in "ID". There is a way that you can set a default banner that does not change via AdminCP. I have worked the banner in the $header to construct a default banner if there is not one filled in. This wil also show the default image in the FORUMHOME (in red, below).
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
<else />
<a href="http://www.yoursite.com"><img src="images/banner/default.gif" border="0" alt="banner image" /></a>
</if>
</if>
</if>
You could also just edit the FORUMHOME:
after $navbar
<a href="http://www.yoursite.com"><img src="images/banner/default.gif" border="0" alt="banner image" /></a>
Fill in your info. (this will be static, but will work)
is there no way to make it not static?
a coder might explain it better, but how about this way?
in vbulletin options you can give a default banner.
if you leave this blank, the forum displays the specific thread banner
like:
<if condition="$foruminfo['bannerdefault'] ... //vbulletin options for default
<else />
<if condition="$foruminfo['banner']... // forum options
</if
</if
don't laugh - i'm a noob in php :rolleyes:
Zachariah
10-03-2005, 01:34 PM
is there no way to make it not static?
a coder might explain it better, but how about this way?
in vbulletin options you can give a default banner.
if you leave this blank, the forum displays the specific thread banner
like:
<if condition="$foruminfo['bannerdefault'] ... //vbulletin options for default
<else />
<if condition="$foruminfo['banner']... // forum options
</if
</if
don't laugh - i'm a noob in php :rolleyes:
I understand. Yes this could be done.
I might move the template edit to the end of the $navbar, so that it would be on every page. The drawback of this is that programs that use the $navbar (gallery, non-VB pages, CMS front ends, etc .) would also have the banner under the navbar.
Ill look in on it.
thanks a lot for your help :up:
commonsense
10-04-2005, 06:59 PM
Everyone else seems to have no issue, so I feel a little dumb asking this.
I got this installed fine through the plugin manager, but once I added the code to the two templates I get "Parse error: parse error, unexpected '<' in /www/b/batavia/htdocs/forums/forumdisplay.php on line 336" when I try to access a forum and a simpilar error when I try to go direct to a thread.
I am a php newbie, so not sure what i am doing wrong...
Zachariah
10-04-2005, 08:30 PM
Everyone else seems to have no issue, so I feel a little dumb asking this.
I got this installed fine through the plugin manager, but once I added the code to the two templates I get "Parse error: parse error, unexpected '<' in /www/b/batavia/htdocs/forums/forumdisplay.php on line 336" when I try to access a forum and a simpilar error when I try to go direct to a thread.
I am a php newbie, so not sure what i am doing wrong...
What other showtread type plugins are you running ? VB ver ?
commonsense
10-05-2005, 12:27 AM
What other showtread type plugins are you running ? VB ver ?
None that I know of.. this is a fresh 3.5 install.
csidlernet
10-05-2005, 02:54 AM
thanks!
/me installs
dreck
10-05-2005, 03:35 AM
Very nice...
Thanks, dreck
*install*
None that I know of.. this is a fresh 3.5 install.
are you sure , that you installed the right version of the xml?
in your case it is the banner_image.xml to import.
commonsense
10-05-2005, 12:21 PM
are you sure , that you installed the right version of the xml?
in your case it is the banner_image.xml to import.
Yep. That's what I installed. I am going to try removing it today and doing it again and see what happens.
I have the interface in the admincp for all the forums, but I get the error when I try to add the code to the two template files.
Zachariah
10-05-2005, 12:55 PM
Yep. That's what I installed. I am going to try removing it today and doing it again and see what happens.
I have the interface in the admincp for all the forums, but I get the error when I try to add the code to the two template files.
Just looking @ your choice of words "two template files" - You are editing in the template system, not forumdisplay.php and showtread.php right ? :confused:
AdminCP => Styles & Templates => Style Manager => choose the style
*** Edit 2 Template(s) : FORUMDISPLAY, SHOWTHREAD
commonsense
10-05-2005, 01:38 PM
Just looking @ your choice of words "two template files" - You are editing in the template system, not forumdisplay.php and showtread.php right ? :confused:
AdminCP => Styles & Templates => Style Manager => choose the style
*** Edit 2 Template(s) : FORUMDISPLAY, SHOWTHREAD
Aw Jeez. I didn't realize that. I am so use to stuff like PostNuke where I am use to having to drop stuff into the file itself...
Lemme give that a shot. :o
Zachariah
10-06-2005, 01:11 AM
Aw Jeez. I didn't realize that. I am so use to stuff like PostNuke where I am use to having to drop stuff into the file itself...
Lemme give that a shot. :o
ya, I did postnuke for a few years .... :glasses:
murrtex
10-10-2005, 05:17 PM
when i want to add banner in each forum,
i get error like that;
Database error in vBulletin 3.5.0:
Invalid SQL:
REPLACE INTO datastore
(title, data)
VALUES
('forumcache', 'a:1373:{i:1;a:23:{s:7:\"forumid\";i:1;s:7:\"styleid\";i:0;s:5:\"title\";s:29:\" Administrator (YÖNETİME ÖZEL)\";s:11:\"description\";s:0:\"\";s:7:\"optio.....
.blap blap blap
what should i do???
Zachariah
10-10-2005, 08:13 PM
when i want to add banner in each forum,
i get error like that;
Database error in vBulletin 3.5.0:
Invalid SQL:
REPLACE INTO datastore
(title, data)
VALUES
('forumcache', 'a:1373:{i:1;a:23:{s:7:\"forumid\";i:1;s:7:\"styleid\";i:0;s:5:\"title\";s:29:\"Administrator (Y?NETİME ?ZEL)\";s:11:\"description\";s:0:\"\";s:7:\"optio.....
.blap blap blap
what should i do???
Have you uninstalled and reinstalled ? - perhaps the install had a problem ?
murrtex
10-10-2005, 08:38 PM
yes i did ..but result is same :(
if i understand why being like this , i'll fix it but i dit not understand why..
Zachariah
10-10-2005, 08:40 PM
yes i did ..but resut is same :(
if i understand why being like this , i'll fix it but i dit not understand why..
If you uninstall/deactivate do you still have the same error ? (trying to root out if the DB needs fixed or the hack is the cause of the problem.)
murrtex
10-10-2005, 08:47 PM
no after unistall everything is okey. i can add new forum etc. ..
Zachariah
10-10-2005, 09:05 PM
If this is a new install import "banner_image.xml" the other two are updates.
murrtex
10-10-2005, 09:46 PM
no this is new installation.. for 3.5.0 ...but 3 day ago i used there were no problem it was okey...and i uninstalled..than today i wanna install again bu it does not :(
Zachariah
10-11-2005, 12:18 AM
no this is new installation.. for 3.5.0 ...but 3 day ago i used there were no problem it was okey...and i uninstalled..than today i wanna install again bu it does not :(
What other plugins do you have @ Hook Location : forumdata_start ? (or better than that other hacks installed ?)
smoknz28
10-11-2005, 01:05 AM
Question with this one here....
I'm running v3.50 and would like to know if this install will work with my adding php code from phpAdsNew.
The code looks like this:
<?php
if (@include(getenv('DOCUMENT_ROOT').'/phpadsnew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:9', 0, '_blank', 'http://www.g-forcesuspension.com', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
Zachariah
10-11-2005, 01:13 AM
Not yet no. You can spit out the java vs. PHP and it will work @ the moment.
Question with this one here....
I'm running v3.50 and would like to know if this install will work with my adding php code from phpAdsNew.
The code looks like this:
<?php
if (@include(getenv('DOCUMENT_ROOT').'/phpadsnew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:9', 0, '_blank', 'http://www.g-forcesuspension.com', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
Bounce
10-11-2005, 07:30 PM
Works a treat , thank you
This is one fantastic mod.... you can do about anything you want with this baby, thanks alot
murrtex
10-11-2005, 09:48 PM
2 days ago it was workin. and now failed..i found something,for example 2 days ago i have 100 forum,and now i have 10 more..i mean 110 forums..
is does not with 110 forums..(that errors)(forumcashe) i think sql can not read that table because it is big file more or less 1 MB
when i delete 5,10,15 forums it work :) (there is no error)
we should do something for more forums ..i am not coder :( i dont know what will do at php files or sql files ??
have any idea?
Zachariah
10-11-2005, 09:52 PM
2 days ago it was workin. and now failed..i found something,for example 2 days ago i have 100 forum,and now i have 10 more..i mean 110 forums..
is does not with 110 forums..(that errors)(forumcashe) i think sql can not read that table because it is big file more or less 1 MB
when i delete 5,10,15 forums it work :) (there is no error)
we should do something for more forums ..i am not coder :( i dont know what will do at php files or sql files ??
have any idea?
that sounds like a error with your Database.
repair / reoptimize - I have 190 forums on my site (http://www.gzhq.net/forums/). w/o problems. I had 270 w/ VB 3.0 many moons ago w/o problems.
AdminCP => Maintenance => Repair / Optimize Tables => Check All
murrtex
10-11-2005, 10:22 PM
thanks,100 is the only example number..i have 1400 forum
murrtex
10-11-2005, 10:33 PM
i click install thank u
Zachariah
10-12-2005, 02:18 AM
thanks,100 is the only example number..i have 1400 forum
What do you have your forums @ now 1350 ? When did it start working ?
murrtex
10-12-2005, 02:53 AM
yes,around 1300
john1744
10-13-2005, 05:38 AM
Is there any way to set this to disable it on a per user basis?
Zachariah
10-13-2005, 12:34 PM
Is there any way to set this to disable it on a per user basis?
Per user. I don't see a problem. You may want to do "usergroup". That way all in the group vs. editing 1 @ a time. Its easy to move a ton of people or setup a Promotions when a user does this or that upgrade to the new user level. The new group level is in a <if> statment to not show the banner.
Ill kick around the idea and see what I can come up with.
john1744
10-13-2005, 03:31 PM
Cool man, we were using some rather large gaming banners, and theres a couple 56Kers that didn't like them.
MissKalunji
10-14-2005, 12:02 AM
nice mod. it would be nice too to be able to add in your own html code like someone else said as well, as a lot of people use Google Adsense on their forums :)
n e news?
Zachariah
10-14-2005, 01:24 AM
n e news?
You can post any HTML / JAVA . No PHP at this time.
https://vborg.vbsupport.ru/attachment.php?attachmentid=34099
Changelog:
------------
1.6
Banner shows up on each thread
adds: 1 more template edit to the install
Requested by: - Ryan McBain
** Note: 1.5 - 1.6 needs only to edit SHOWTHREAD not Reinstall the XML files
1.5
Added HTML option (tested w/ Java and Iframe from phpadsnew output)
Added 3.x to VB 3.5 upgrade XML file.
funinthesun
10-15-2005, 06:40 PM
Works fine. Thanks *installed*
one9er
10-18-2005, 01:09 PM
Thanks Zachariah this is just what I wanted. INSTALLED!
makaveli420
10-19-2005, 02:48 AM
works awesome!! exellent idea..
RaceJunkie
10-19-2005, 07:22 PM
Thanks I love it
Clicks Install
Allan
10-21-2005, 07:54 AM
hey :)
this hack work with tle .swf (flash) extensions ?
Zachariah
10-21-2005, 11:36 AM
hey :)
this hack work with tle .swf (flash) extensions ?
It will if you paste your code in the HTML/Paste Area.
Allan
10-21-2005, 11:53 AM
yes, work perfectly , thanks :)
"Click Install" ;)
athoob
10-24-2005, 03:42 PM
Thanx :)
piXelatedEmpire
10-25-2005, 08:16 AM
Per user. I don't see a problem. You may want to do "usergroup". That way all in the group vs. editing 1 @ a time. Its easy to move a ton of people or setup a Promotions when a user does this or that upgrade to the new user level. The new group level is in a <if> statment to not show the banner.
Ill kick around the idea and see what I can come up with.
Just curious if this is still being worked on.. would be a fantastic feature
HormZ
10-25-2005, 11:11 AM
Am I the only dunce or what!! :ermm:
I did what I thought was a perfect install but......................I do not see the banner.
It is there wanting to be seen but will not show. The outline is there with the alt phrase but no flash banner showing.
See here: http://www.bokbok.co.uk/forumdb/forumdisplay.php?f=20
What can I do to fix this? :tired:
Zachariah
10-25-2005, 11:27 AM
Am I the only dunce or what!! :ermm:
I did what I thought was a perfect install but......................I do not see the banner.
It is there wanting to be seen but will not show. The outline is there with the alt phrase but no flash banner showing.
See here: http://www.bokbok.co.uk/forumdb/forumdisplay.php?f=20
What can I do to fix this? :tired:
Sorry, BOKBOK is resting! The board is unavailable at the moment while we install updates and test functionality & correct upgrade errors.
We will be back soon...better, stronger, flashier and cooler!
Q: You are posting the HTML for the flash code into the HTML textarea ? The image area blanks will do only images.
Zachariah
10-25-2005, 01:26 PM
Here is a simple JAVA random banner code you can paste in the HTML area of any forum.
EX:
This will show @ random.
image1.jpg @ http://www.yoursite1.com
image2.jpg @ http://www.yoursite2.com
image3.jpg @ http://www.yoursite3.com
<script language="javascript" type="text/javascript">
<!--
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite2.com' target='_blank'><img src='/banners/image2.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite3.com' target='_blank'><img src='/banners/image3.jpg' alt='' border='0' /></a>"
// keep adding items above here...
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//-->
</script>
Useage: If you need more banners edit / add another row.
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
Link of Destination
Image location
HormZ
10-25-2005, 02:34 PM
Here is a simple JAVA random banner code you can paste in the HTML area of any forum.
Dunce Question:
Where exactly must the html be copied to? Which template?
Sorry - I am thikko when it comes to this type of stuff.
Zachariah
10-25-2005, 02:51 PM
Dunce Question:
Where exactly must the html be copied to? Which template?
Sorry - I am thikko when it comes to this type of stuff.
Edit each "forum" that needs rotation
Admincp =>Forums & Moderators => Forum Manager => Edit forum => scroll do to the bottom => HTML Code "box" :)
https://vborg.vbsupport.ru/attachment.php?attachmentid=34099
I use a rotating banner script which I put the code in the header_include template and then a piece of Java code to call it from there in the header and footer where the rotating banners are now, will that work in this hack, if I put the Java in the HTML area called from the header include? If so you are the man!!
HormZ
10-26-2005, 06:59 AM
Zach,
Thanks but I can't get it to work. I have the .swf file stored in my images directory.
I copied the script (with url changed to bokbok.co.uk) but nothing happens. Same as before.
Any ideas where I have gone wrong?
Zachariah
10-26-2005, 10:22 AM
Just curious if this is still being worked on.. would be a fantastic feature
yes sir.
I use a rotating banner script which I put the code in the header_include template and then a piece of Java code to call it from there in the header and footer where the rotating banners are now, will that work in this hack, if I put the Java in the HTML area called from the header include? If so you are the man!!
I did some playing around took the <if></if> (template edit) statement added to the ForumsDisplay template. You can instead place it in the header / footer template and it will show up also. When that forum is displayed
IE: banner for f=642 will show up anywhere on the page in any template when the forumdisplay.php?f=642, but it will show up in the same place on every forum.
I made a area in the header for an image that changed by subject. It was a business logo with many "backgrounds" by subject. This way when they went into the sports area (forum) that the logo showed kids playing, sports balls around their business logo.
I added an <else /> in the <if> statement to show a default logo if the forum did not have a related banner.
Zach,
Thanks but I can't get it to work. I have the .swf file stored in my images directory.
I copied the script (with url changed to bokbok.co.uk) but nothing happens. Same as before.
Any ideas where I have gone wrong?
hit the Chat link @ the top of the site /join #help after you connect. I'll be there off and on today.
cbr929rrerion
10-26-2005, 03:21 PM
Ok.. Just a question.. Does this allow you to choose which forum/catagory gets which banner? Or do you have 1 set of banners that rotate on all pages its entered on?
I want specific banners in specific catagories..
example, if its a tire ad I want it in the tire section, if its a Glove ad have it in clothing, etc..
Thanks
Zachariah
10-26-2005, 04:46 PM
Ok.. Just a question.. Does this allow you to choose which forum/catagory gets which banner? Or do you have 1 set of banners that rotate on all pages its entered on?
I want specific banners in specific catagories..
example, if its a tire ad I want it in the tire section, if its a Glove ad have it in clothing, etc..
Thanks
Add a banner option per forum:
https://vborg.vbsupport.ru/attachment.php?attachmentid=34099
- The images can be on the local server or on a remote system.
- image with or without link
(png,jpg,bmp,tif,gif)
- There is also a small HTML "paste" area.
(java scripts, dhtml, html, not php "yet" )
I have pasted JAVA output from google, phpadnews, Iframes. I have also used the HTML area to paste RSS feeds per forum linking to different places. (limit 5).
SupermanInNY
10-31-2005, 02:05 PM
One thing "missing", or at least I wasn't able to find it.
How to add a banner in the Top most page, the one that lists out all the forums.
Any pointers?
-Alon.
Zachariah
10-31-2005, 02:39 PM
One thing "missing", or at least I wasn't able to find it.
How to add a banner in the Top most page, the one that lists out all the forums.
Any pointers?
-Alon.
Yes this will not work on the ForumHome.
Add Extra Header / Footer to FORUMHOME
https://vborg.vbsupport.ru/showthread.php?s=&threadid=97901
This will create an area in your ForumHome to allow your to paste HTML/google/whatever
EX: Halloween 2005 - image
<a href="http://www.google.com/search?q=halloween">
<img title="Halloween 2005" height="125" alt="Halloween 2005" src="http://www.google.com/logos/halloween05.gif" width="276" border="0"></a>
SupermanInNY
10-31-2005, 03:05 PM
Yes this will not work on the ForumHome.
Add Extra Header / Footer to FORUMHOME
https://vborg.vbsupport.ru/showthread.php?s=&threadid=97901
This will create an area in your ForumHome to allow your to paste HTML/google/whatever
EX: Halloween 2005 - image
<a href="http://www.google.com/search?q=halloween">
<img title="Halloween 2005" height="125" alt="Halloween 2005" src="http://www.google.com/logos/halloween05.gif" width="276" border="0"></a>
Great!
That worked!
I'm curious though,. wouldn't it make more sense to put the Header/Footer heck run from the Forum Manager page? with similar interface as the Per-Forum mod? This is just an observation,. I like the heck (both of them) :).
-Alon.
2fast4ya
11-10-2005, 06:27 PM
hi, i added everything that was supposed to be added, and followed your instructions word for word... but for some reason my custom style went away... its at the original style... what happened?
Zachariah
11-10-2005, 07:09 PM
hi, i added everything that was supposed to be added, and followed your instructions word for word... but for some reason my custom style went away... its at the original style... what happened?
Little lost.
is your skins set:
- Default (edited style)
-- Custom
-- Custom
Many times the custom skins need to be edited to show the edits.
cuphongle
11-13-2005, 06:21 PM
i installed the products....but dont see the option anywhere
Zachariah
11-13-2005, 06:46 PM
i installed the products....but dont see the option anywhere
When making or editing a "forum" look @ the bottem of the page.
https://vborg.vbsupport.ru/attachment.php?attachmentid=34099
AdminCP => Forums & Moderators => Forum Manager => Edit a Forum / Add New Forum
agiacosa
11-14-2005, 05:43 PM
Great!
That worked!
I'm curious though,. wouldn't it make more sense to put the Header/Footer heck run from the Forum Manager page? with similar interface as the Per-Forum mod? This is just an observation,. I like the heck (both of them) :).
-Alon.
Hi
Upgraded to 3.5.1 from 3.5 where the mod was working. I had to revert Forumhome and Showthread. I reuploaded the product and did the addition to those two templates.
It isn't working. What do I need to do to get this working in 3.5.1? Thanks.
sim tech
11-14-2005, 07:25 PM
Here is a simple JAVA random banner code you can paste in the HTML area of any forum.
EX:
This will show @ random.
image1.jpg @ http://www.yoursite1.com
image2.jpg @ http://www.yoursite2.com
image3.jpg @ http://www.yoursite3.com
<script language="javascript" type="text/javascript">
<!--
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite2.com' target='_blank'><img src='/banners/image2.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite3.com' target='_blank'><img src='/banners/image3.jpg' alt='' border='0' /></a>"
// keep adding items above here...
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//-->
</script>
Useage: If you need more banners edit / add another row.
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
Link of Destination
Image location
I installed the mod on my version 3.51 and it works fine.
But I also was looking for something like this that would display banner ads on the actual forum header & rotate through several different spnsor ads, and your java script worked like a champ! THANK YOU! THANK YOU! THANK YOU!
I just placed it in the header script of the default template.
Zachariah
11-14-2005, 07:50 PM
I installed the mod on my version 3.51 and it works fine.
But I also was looking for something like this that would display banner ads on the actual forum header & rotate through several different spnsor ads, and your java script worked like a champ! THANK YOU! THANK YOU! THANK YOU!
I just placed it in the header script of the default template.
Great news. Glad it helped out.
:banana:
craiovaforum
11-17-2005, 09:54 AM
I was wondering, is there any way to add banners for different forums, like this plugin does but in the header of the forum?
Like in the attachement
RGSMDNR
11-17-2005, 11:42 AM
can these banners be hidden to a user group?
Zachariah
11-17-2005, 11:55 AM
I was wondering, is there any way to add banners for different forums, like this plugin does but in the header of the forum?
Like in the attachement
You can add the template edit made to the forumhome to the header, but on forums w/o an image or anywere else will be a blank space where the image should be.
Try this:
header template:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
<else /><img src="images/banner/default.gif" border="0">
</if>
</if>
</if>
</if>
This will place a default image in place when not in a forum w/ an image.
Now I have also done this added this hack to "Add Extra Header / Footer"
Add Extra Header / Footer
https://vborg.vbsupport.ru/showthread.php?s=&threadid=99544
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
<else />$vboptions[fhx2h]
</if>
</if>
</if>
</if>
This only says use the Add Extra Header when there is no image for a forum. There still is a "footer to place", but you may have a need somewere.
Zachariah
11-17-2005, 12:05 PM
can these banners be hidden to a user group?
Not yet. This will be in an update. Thanks for the "nudge" my brain forgot.
Dstephan
11-17-2005, 03:44 PM
I have to say I love this mod! I have a different banner on each forum and change them weekly, and this works so much better than editing the templates all the time.
craiovaforum
11-17-2005, 05:47 PM
ok, let me get this straight:
v.1. I have to delete the modification I made to forumhome and wite it directly in the header. And then add the c0de you posted
v.2. I let things as they are and add the c0de you posted in the header template
Wich one is it?
Flow Fusion
11-18-2005, 08:54 AM
Works great, thanks.
lanc3lot
11-18-2005, 09:06 AM
Hm seems really nice, some questions though.
- Are any plans for any stats service for the banners?
- I see that the banners can be images, could be easy, to expand that on swf files too?
Thnx in advance
Bubble #5
11-21-2005, 07:29 AM
Yes swf files would be a nice touch :)
craiovaforum
11-21-2005, 01:43 PM
[QUOTE=Zachariah]You can add the template edit made to the forumhome to the header, but on forums w/o an image or anywere else will be a blank space where the image should be.
Try this:
header template:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
<else /><img src="images/banner/default.gif" border="0">
</if>
</if>
</if>
</if>
This will place a default image in place when not in a forum w/ an image.
hmm
If I add the code for a flash banner instead of the code for an image, in the code from up, it doesn't work
I have this code:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><right><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></right><br />
<else />
<if condition="$foruminfo['banner']"><right><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></right><br />
<else />
<if condition="$foruminfo['bannercode']"><right>$foruminfo[bannercode]</right><br />
<else /><object border="0" width="600" height="100">
<param name="wmode" value="transparent">
<embed src="magic2.swf" width="600" height="100" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" /></object>
</if>
</if>
</if>
</if>
</td>
lanc3lot
11-23-2005, 05:19 PM
Damn seems Zachariah havent saw yet my post:(
xtreme-mobile
11-25-2005, 04:11 PM
since installing VBshout on all pages none of the banners show up any more
any ideas how i can fix?
regards
dean
Zachariah
11-25-2005, 04:54 PM
Hm seems really nice, some questions though.
- Are any plans for any stats service for the banners?
- I see that the banners can be images, could be easy, to expand that on swf files too?
Thnx in advance
- Stats perhaps.
- Swf files - at the moment you can paste your HTML code in the HTML code area.
https://vborg.vbsupport.ru/attachment.php?attachmentid=34099
Bubble #5
11-26-2005, 01:20 AM
Hi Zachariah :) We're tring to wrap our skin around the banner but it is picking up a lot of padding from someplace. We looked at the code but didn't see anyplace where it was coming from. Any ideas? :ermm:
Bubble #5
11-26-2005, 02:02 AM
I got it Zachariah. It was the <br /> tags :nervous:
Zachariah
11-26-2005, 11:27 AM
I got it Zachariah. It was the <br /> tags :nervous:
Yes - I slaped a few in there to push the tables away in it's current placement.
good hunting :)
Bubble #5
11-27-2005, 04:01 PM
Zachariah I've got a great idea for a new plugin for you and it should be easy for you to make :) I call it the "Holiday Hack" and basically what it would do is to add a custom header or logo with a holiday picture during that holiday season. Some admins have custom holiday logos, and this would display them automatically. The admin could set when the custom headers/logos would display during that season. Anyway when I was installing this hack the other day I was thinking how it should be easy for you to convert this hack to work for the holidays. Basically just add the date feature, or have it work off of calendar events, and maybe a new 'holidays' directory on the server to store the pictures :)
craiovaforum
11-27-2005, 04:56 PM
Zachariah I've got a great idea for a new plugin for you and it should be easy for you to make :) I call it the "Holiday Hack" and basically what it would do is to add a custom header or logo with a holiday picture during that holiday season. Some admins have custom holiday logos, and this would display them automatically. The admin could set when the custom headers/logos would display during that season. Anyway when I was installing this hack the other day I was thinking how it should be easy for you to convert this hack to work for the holidays. Basically just add the date feature, or have it work off of calendar events, and maybe a new 'holidays' directory on the server to store the pictures :)
^^ it would be great!
divided_by_fear
12-02-2005, 03:49 PM
zach i was wondering i wanted to turn this off for a bit.... when i go into product manager and disable it the banners still show up how can i temp turn it off?
Zachariah
12-02-2005, 04:13 PM
zach i was wondering i wanted to turn this off for a bit.... when i go into product manager and disable it the banners still show up how can i temp turn it off?
wow it does :D
- ill look into it. I think I know why.
divided_by_fear
12-04-2005, 07:45 PM
yeah i didnt notice it until i tried... hope to see it fixed soon...
Zachariah
12-04-2005, 10:54 PM
yeah i didnt notice it until i tried... hope to see it fixed soon...
- I will make the system have no template edits. This will fix the issue.
I also had an idea to have a list of "our banners" page listing all of the banners and what forum they advertise for. Make some link in the $navbar "Our Sponcers" or something like that.
divided_by_fear
12-05-2005, 12:13 AM
when do you think that will be out? would be nice to put a random banner... or have it set up where you have a banner and it can be added to each forums auto.... instead of manually doing it... ok so if i uninstall this it should be fine?
Zachariah
12-05-2005, 12:21 AM
when do you think that will be out? would be nice to put a random banner... or have it set up where you have a banner and it can be added to each forums auto.... instead of manually doing it... ok so if i uninstall this it should be fine?
If you uninstall it well remove all the banners you added.
Remove the template edit from FORUMDISPLAY / SHOWTHREAD for now. I'll make the update to use your old banner data.
divided_by_fear
12-05-2005, 12:33 AM
ok sweet lol yeah thats what i did just removed the template edits... thanks
bigmonay2k
12-05-2005, 02:00 AM
Here is a simple JAVA random banner code you can paste in the HTML area of any forum.
EX:
This will show @ random.
image1.jpg @ http://www.yoursite1.com
image2.jpg @ http://www.yoursite2.com
image3.jpg @ http://www.yoursite3.com
<script language="javascript" type="text/javascript">
<!--
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite2.com' target='_blank'><img src='/banners/image2.jpg' alt='' border='0' /></a>"
banner[number++] = "<a href='http://www.yoursite3.com' target='_blank'><img src='/banners/image3.jpg' alt='' border='0' /></a>"
// keep adding items above here...
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//-->
</script>
Useage: If you need more banners edit / add another row.
banner[number++] = "<a href='http://www.yoursite1.com' target='_blank'><img src='/banners/image1.jpg' alt='' border='0' /></a>"
Link of Destination
Image location
will this work on forumdisplay.php by just edit the template
Zachariah
12-05-2005, 02:50 AM
will this work on forumdisplay.php by just edit the template
Yes. - FOURMDISPLAY
But, it will show up on all forums. You will not have a choice of a different set of banners per forum.
You can place that in any Template. $header, $footer, ect ..
Bubble #5
12-05-2005, 03:02 AM
would be nice to put a random banner...
There is javascript posted in this thread which does this :)
divided_by_fear
12-05-2005, 04:40 AM
yeah but like my post said would be nice to have it included... with a on, off for it...
Zachariah
12-05-2005, 12:47 PM
yeah but like my post said would be nice to have it included... with a on, off for it...
you never know :rambo:
craiovaforum
12-06-2005, 10:19 AM
you never know :rambo:
btw (I look but I can't find it :( )
any news about this: https://vborg.vbsupport.ru/showpost.php?p=833272&postcount=114
Zachariah
12-06-2005, 12:05 PM
btw (I look but I can't find it :( )
any news about this: https://vborg.vbsupport.ru/showpost.php?p=833272&postcount=114
What your looking for is not made yet (the random banner idea).
Ill take a look @ bubbles Idea too :D.
@ the moment I am redoing the Gallery Home / CMPS and Shoutcast some more. I'll get to it :D.
craiovaforum
12-06-2005, 12:50 PM
What your looking for is not made yet (the random banner idea).
Ill take a look @ bubbles Idea too :D.
@ the moment I am redoing the Gallery Home / CMPS and Shoutcast some more. I'll get to it :D.
I was only reffering to bubble's idea about the logo and since it's only a little modification of this hack I think that you can do it... Anyway it's up to you :D
But please let us know in this thread too when (and if) it will be released
icemann
12-06-2005, 06:05 PM
Thanks for this one Zachariah, a nice feature for myself. :)
*clicks installed*
Hello,
I am clicking install to see if this does what I need it to do, where I need it to do it. lol If it does, my hat will certainly be off to you as you have saved me some time! lol
Replicators
12-11-2005, 05:36 PM
Such a nice hack is not working for me at all! I have 3.5.2!
Edit: Nevermind,i got it to work.
SupermanInNY
12-17-2005, 01:18 AM
Could you kindly remind me where or how to remove the Space between the Top forums?
I have a little tick just below the banner on my index page?
I know there is a place (I've done this before, just can't remember where) where I add the number of the First forum in the list and that removes the 'space' tick between the index page banner and the first forum.
Zachariah
12-17-2005, 02:13 AM
In your template edit of FORUMDISPLAY, SHOWTHREAD.
- Kill the Red (3) places.
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
</if>
</if>
</if>
Could you kindly remind me where or how to remove the Space between the Top forums?
I have a little tick just below the banner on my index page?
I know there is a place (I've done this before, just can't remember where) where I add the number of the First forum in the list and that removes the 'space' tick between the index page banner and the first forum.
Kuimera
12-20-2005, 11:14 AM
Zachariah, I have an issue..
I added Google Adsense code, works great, but when the thread and links menu dropdown, it stays benith the Adsense banner, you know if theres any way of the menu stays on top of the Adsense banner?
Zachariah
12-20-2005, 11:43 AM
Zachariah, I have an issue..
I added Google Adsense code, works great, but when the thread and links menu dropdown, it stays benith the Adsense banner, you know if theres any way of the menu stays on top of the Adsense banner?
not sure what your talking about, but the html code are is only surrounded by a <center>$foruminfo[bannercode]</center>.
Inside the paste area you might wrap a <div>google code</div>.
You can even create a <table><tr><td>google paste</td></tr><table>.
Kuimera
12-20-2005, 07:08 PM
Ok it?s like this, you know for example the "Quicklinks" drop down menu from the navbar? or the "thread tools" menu ?
Well... if I have a banner in the way of the menu, the banner stays on top of the menu, so I cant realy use it...
Test it here: http://www.kuimera.com/showthread.php?p=824#post824
( Use the login: Test with the pass: test )
Then just click on the "Quicklinks" on the navbar and you will see what i?m talking about.
Stephen3
12-20-2005, 08:14 PM
Is it porsible to change it to 8 coloum in 2 row and can put 8 text advertisment ?
Zachariah
12-20-2005, 08:18 PM
Is it porsible to change it to 8 coloum in 2 row and can put 8 text advertisment ?
Design the layout in your FAV editor and paste in the HTML area.
- did you need help with that or were you asking if it could be done ?
Stephen3
12-20-2005, 08:29 PM
asking it could be done
seem like the current version just can add 1 and must be banner?
hope can make it like http://megacashforum.com/
Ramsesx
12-21-2005, 06:58 AM
Is there a way to reduce the space between the navbar and the banner?
Thanks
Zachariah
12-21-2005, 09:45 AM
Is there a way to reduce the space between the navbar and the banner?
Thanks
That is controled in the $navbar.
- there is a <br / >
- the only thing the banner hack adds is a <br /> after the banner code.
If you kill the <br /> in the $navbar it will effect the whole site.
I think:
<!-- / nav buttons bar -->
<br />
If this is the correct one your looking for place this insted the <br /> tag.
if (THIS_SCRIPT != 'forumdisplay' OR THIS_SCRIPT != 'showthread')
{
<br />
}
This states when on the forumdisplay or showthread do not show the <br />. This will keep the tag there any other time.
Kuimera
12-21-2005, 12:03 PM
This is a great plugin, but I will have to uninstall this since I can’t really use the menus probably...
Tks all and good job.
Zachariah
12-21-2005, 12:16 PM
This is a great plugin, but I will have to uninstall this since I can?t really use the menus probably...
Tks all and good job.
They work for me. :disappointed:
http://www.gzhq.net/forums/forumdisplay.php?f=118
What are you useing in the HTML area ?
You can even paste:
Lots of HTML in it and watch it work: (view source of dogpile.com)
http://www.gzhq.net/forums/forumdisplay.php?f=235
<div class="idxBkgrnd" align="center">
<div>
<a href="http://www.dogpile.com/">
<img alt="Dogpile-All the best search engines piled into one. Including Google, Yahoo! Search, MSN Search and Ask Jeeves." class="image" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/idx/logo.gif" border="0" height="119" width="359"></a></div>
<div>
<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="36" width="1"></div>
</div>
<div class="formBkgrnd">
<div style="padding-left: 75px;" align="center">
<script language="javascript">
var advsrchterms = "&";
function urlEncode (str) {
var estr = escape( str );
estr = estr.replace(/@/g, '%40');
estr = estr.replace(/\*/g,'%2A');
estr = estr.replace(/_/g, '%5F');
estr = estr.replace(/\+/g,'%2B');
estr = estr.replace(/\./g,'%2E');
estr = estr.replace(/\//g,'%2F');
return estr;
}
function clearadvanced() {
if(document.idxSearch.exact){
if(!document.idxSearch.exact.checked)
var exact = '';
advsrchterms = '';
}
}
function redirSearch ( qcat ) {
location.href = 'http://www.dogpile.com/info.dogpl/search/index.htm?qcat=' + qcat;
}
function toggleTab ( searchType, qcat, idName ) {
if ( document.idxSearch ) document.idxSearch.qcat.value = qcat;
if ( document.idxSearchbot ) document.idxSearchbot.qcat.value = qcat;
var tabs = document.getElementsByTagName('a');
for( var i=0; i<tabs.length; i++ ) {
var tabi = tabs[i];
if ( tabi.id == idName && tabi.className == "tabInactive" ) {
tabi.className="tabActive";
} else if ( tabi.id == idName && tabi.className=="tabActive" ) {
tabi.className="tabActive";
} else if ( tabi.className=="tabActive" ) {
tabi.className="tabInactive";
}
}
var thehtml = '<a class="Text-On-Tablestyle-BG1" href="http://www.dogpile.com/info.dogpl/search/advanced/' + searchType.toLowerCase() + '.htm?&r_fcid=414&r_fcp=top&dpcollation=1&qk=20&fa milyfilter=1&sort=0&adultfilter=Moderate">Advanced</a>';
if ( document.getElementById("advancedlink") ) document.getElementById("advancedlink").innerHTML = thehtml;
if ( document.getElementById("advancedlinkbot") ) document.getElementById("advancedlinkbot").innerHTML = thehtml;
var img = new Image();
img.src = "http://www.dogpile.com/info.dogpl/search/5_4/logging/category.htm?category=" + searchType + "&ran=" + Math.round(Math.random()*10000);
}
function changeadvanced(formname,searchType,qcat,coid,posit ion) {
var exact = '';
if ( formname == "idxSearchbot" ) {
if ( document.idxSearch.exact ) {
if(document.idxSearchbot.exact.checked)
exact = '&exact=1';
else
exact = '';
}
else exact = '';
} else {
if(document.idxSearch.exact){
if(document.idxSearch.exact.checked)
exact = '&exact=1';
else
exact = '';
}
else exact = '';
}
location.href = 'http://www.dogpile.com/info.dogpl/search/redir.htm?r_fcid='+coid+'&r_fcp='+position+'&qcat=' + qcat + '&qkw='+ urlEncode(document.idxSearch.qkw.value)+ exact + advsrchterms;
}
</script>
<form class="msSearchbox" style="margin: 0px;" method="get" name="idxSearch" action="http://www.dogpile.com/info.dogpl/search/redir.htm">
<input name="qcat" value="web" type="hidden">
<input name="r_aid" value="2B8D94FEDA114C66AD4A063AAF850CC0" type="hidden">
<input name="r_fcid" value="417" type="hidden">
<input name="r_fcp" value="top" type="hidden">
<table class="Tablestyle-BG1" bgcolor="#ebebad" border="0" cellpadding="0" cellspacing="0" id="table1">
<tr>
<td class="Text-On-Tablestyle-BG1" colspan="5">
<div id="navTab">
<a id="sbtWeb" class="tabActive" onclick="toggleTab('Web','web','sbtWeb'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=web">
Web</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtImages" class="tabInactive" onclick="toggleTab('Image', 'images','sbtImages'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=images">Images</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtAudio" class="tabInactive" onclick="toggleTab('Audio', 'audio','sbtAudio'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=audio">Audio</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtVideo" class="tabInactive" onclick="toggleTab('Video', 'smd','sbtVideo'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=smd">Video</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtNews" class="tabInactive" onclick="toggleTab('News', 'nws','sbtNews'); return false;" href="http://www.dogpile.com/info.dogpl/?qcat=nws">News</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtYellow" class="tabInactive" href="http://www.dogpile.com/info.dogpl/clickit/search?r_aid=2B8D94FEDA114C66AD4A063AAF850CC0&r_coid=412&r_cop=top&r_sacop=0&r_spf=0&r_snpp=0&r_spp=0&qqn=0&rawto=http://www.dogpile.com/info.dogpl/yellow-pages/">Yellow
Pages</a><span class="tabDivider"><img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4">|<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="4"></span><a id="sbtWhite" class="tabInactive" href="http://www.dogpile.com/info.dogpl/clickit/search?r_aid=2B8D94FEDA114C66AD4A063AAF850CC0&r_coid=413&r_cop=top&r_sacop=0&r_spf=0&r_snpp=0&r_spp=0&qqn=0&rawto=http://www.dogpile.com/info.dogpl/white-pages/">White
Pages</a></div>
</td>
</tr>
<tr>
<td colspan="5">
<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="15" width="1"></td>
</tr>
<tr>
<td style="padding-bottom: 3px;">
<span class="Text-On-Tablestyle-BG1">
<input onclick="clearadvanced();" name="qkw" size="53" value type="text"></span><script language="javascript"> function changeFocus () { document.forms.idxSearch.qkw.focus(); } if ( window.addEventListener ) { window.addEventListener( "load", changeFocus, false ); } else if ( document.addEventListener ) { document.addEventListener( "load", changeFocus, false ); } else if ( window.attachEvent ) { window.attachEvent( 'onload', changeFocus ); } </script></td>
<td align="right" valign="bottom">
<div id="msSearchSubmit">
<input alt="Go Fetch!" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/submit.gif" type="image" name="I1"></div>
</td>
<td>
<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="1" width="24"></td>
<td style="padding-bottom: 4px;" align="right" nowrap="true" valign="bottom">
<nobr><span id="advancedlink">
<a id="advancedweblinktop" class="Text-On-Tablestyle-BG1" href="http://www.dogpile.com/info.dogpl/search/advanced/web.htm?r_fcid=414&r_fcp=top&dpcollation=1&qk=20&familyfilter=1&sort=0&adultfilter=Moderate">
Advanced</a></span></nobr></td>
</tr>
</table>
</form>
</div>
<img alt="" src="http://a1040.g.akamai.net/f/1040/759/1h/pic.infospace.com/info.dogpl/pics/1pixel.gif" height="32" width="1"></div>
Kuimera
12-21-2005, 12:29 PM
Noticed now.. this seems to be a opera browser problem... I tested with IE and it works great has you said above.
Zachariah
12-21-2005, 12:31 PM
Noticed now.. this seems to be a opera browser problem... I tested with IE and it works great has you said above.
Firefox works ok too ..... never tryed Opera
- Perhaps what you wrap the HTML with ?
- is this a problem w/ images or only the HTML area ?
Kuimera
12-21-2005, 12:36 PM
Heres how its looks:
Dam opera... :(
Zachariah
12-21-2005, 12:42 PM
Heres how its looks:
Dam opera... :(
place your code in a:
<div>code</div>
or
<table><tr><td>code</td></tr></table>
I rem way back then Firefox did that all the time. I can't REM what the fix was or if a new ver of firefox fixed it.
Stephen3
12-21-2005, 03:54 PM
can make it can add more then 1 banner ?
Zachariah
12-21-2005, 04:27 PM
can make it can add more then 1 banner ?
This is really not that advanced.
I have used this random banner code.
https://vborg.vbsupport.ru/showpost.php?p=804471&postcount=80
You can use this code per forum and have multi subjects rotate.
I have also pasted the JAVA output of phpAdsNews (http://phpadsnew.com/two/index.html) and made multi campains.
There is a HTML area for java / html / dhtml - no PHP.
Stephen3
12-21-2005, 04:31 PM
not rotator... what about show in same time...?
Zachariah
12-21-2005, 04:36 PM
not rotator... what about show in same time...?
There is an html area per forum vs. a banner image.
You can show whatever you want.
<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>
<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>
2 google images w/ links
Demo:
http://www.gzhq.net/forums/forumdisplay.php?f=235
The Chief
12-22-2005, 03:14 AM
installed and works great :)
* The Chief clicks install
Kuimera
12-22-2005, 07:41 AM
place your code in a:
<div>code</div>
or
<table><tr><td>code</td></tr></table>
I rem way back then Firefox did that all the time. I can't REM what the fix was or if a new ver of firefox fixed it.
didn’t work either must be a prob with the transparency’s or something...
I will wait till they fix this..
Tks for your time m8!
icare
01-21-2006, 09:07 AM
Help please. I am getting this error when i am trying to upload a banner code
Database error in vBulletin 3.5.3:
Invalid SQL:
UPDATE forum SET
title_clean = 'HornyBollywood Indian Masala',
title = 'HornyBollywood Indian Masala',
description_clean = '',
description = '',
link = '',
displayorder = 1,
daysprune = -1,
parentid = -1,
newpostemail = '',
newthreademail = '',
### Bitfield: forum.options ###
options = IF(options & 8, options - 8, options),
options = IF(options & 16, options - 16, options),
options = IF(options & 32, options - 32, options),
options = IF(options & 131072, options - 131072, options),
options = IF(options & 32768, options - 32768, options),
options = IF(options & 8192, options - 8192, options),
options = IF(options & 4, options - 4, options),
options = IF(options & 1, options, options + 1),
options = IF(options & 2, options - 2, options),
options = IF(options & 16384, options, options + 16384),
options = IF(options & 256, options - 256, options),
options = IF(options & 64, options - 64, options),
options = IF(options & 128, options - 128, options),
options = IF(options & 512, options - 512, options),
options = IF(options & 1024, options - 1024, options),
options = IF(options & 2048, options - 2048, options),
options = IF(options & 4096, options, options + 4096),
options = IF(options & 65536, options, options + 65536),
styleid = 0,
password = '',
banner = '',
bannerlink = '',
banneralt = '',
bannercode = '<script type=\"text/javascript\"><!--\r\ngoogle_ad_client = \"5346134314564";\r\ngoogle_ad_width = 125;\r\ngoogle_ad_height = 125;\r\ngoogle_ad_format = \"125x125_as\";\r\ngoogle_ad_type = \"text\";\r\ngoogle_ad_channel =\"\";\r\n//--></script>\r\n<script type=\"text/javascript\"\r\n src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\r\n</script>'
WHERE forumid = 1;
MySQL Error : Unknown column 'banner' in 'field list'
Zachariah
01-21-2006, 11:15 AM
@icare - Unknown column 'banner' in 'field list' - the mysql update looks like it did not work.
Import product: banner_image.xml
glorify
02-08-2006, 01:21 PM
Hey Zac,
I am doing this (random banner on each forum) without your plugin but would like to use yours without manually editing my navbar template.
Do you have any plans to add per usergroup?
and/or
Can you add an option to add a collapsable box (maybe conditionally by usergroup) around the banner similar to the one I have here (http://www.glorifythepast.com/forums/san-diego-chargers-nfl-discussion/) that I use?
funinthesun
02-26-2006, 03:51 PM
Hi, I've got this installed but since I upgraded to 3.5.3 it's stopped displaying the banners. Any reason why? Thanks.
jamshed
02-27-2006, 08:38 AM
i installed this and its giving some problem, i can see banners when surfing through opera browser, but i can see the banners when surfing throguh IE or Firefox??
Help please?
Zachariah
02-27-2006, 12:15 PM
Hi, I've got this installed but since I upgraded to 3.5.3 it's stopped displaying the banners. Any reason why? Thanks.
May have to add the template edits again.
- I plane to kill the template edits with plugins. (next ver.)
jamshed
02-27-2006, 02:02 PM
wat abt my question?
Zachariah
02-27-2006, 05:00 PM
wat abt my question?
Can you view this ?
Demo:
http://www.gzhq.net/forums/forumdisplay.php?f=235
2 google images w/ links
<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>
<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>
Kuimera also had problems - Look @ post 136-155
- Had some problems w/ opera browser.
megnin
03-07-2006, 09:57 AM
Hi,
I just finished reading this entire thread and this looks like a great mod. I have very little experience with vB. Just installed v3.5.3 a couple weeks ago and upgraded to 3.5.4 a couple days ago.
I just want to make sure I don't scr*w this up. ;-)
In the control panel, I import banner_image.xml.
Then do I need to make any manual edits to any files before using the new options?
Sorry for the really dumb question, but I really have only a few hours experience with vBulletin. I was excited when the upgrade from 3.5.3 to 3.5.4 worked. :-)
Thanks.
megnin
03-07-2006, 10:37 AM
Hi,
I started to "upload plugin" and vBulleting told me it appeared to be a "product" to use the product manager. So I uploaded it with "Manage Products" and it shows up as Add Banner 1.6 under Installed Products.
I went to the forum manager and edited a couple of forums and added "/images/misc/forum1.gif" to the first forum and "/images/misc/forum2.gif" to the second one.
No images appeared in the forums. What did I not do. I'm sure it's something I didn't do correctly or missed.
Thanks again.
Nice hack just what i need.
few questions though
is it possible to show the banner/image always ? in the header not mather what page your on ?
and is it possible to have more then 1 image, switch image after x seconds ?
cbr929rrerion
03-08-2006, 07:10 PM
Nice hack just what i need.
few questions though
is it possible to show the banner/image always ? in the header not mather what page your on ?
and is it possible to have more then 1 image, switch image after x seconds ?
I have a script that works well to rotate the images, can set the delay as short or long as you like..
Only down fall is it goes in the same order every time, I wish I had a script or something that would put a differant add everytime the page refreashed but this one works ok...
megnin
03-08-2006, 08:47 PM
Upload the "plug-in" and edit 2 template, It's a snap.
So, in FORUMDISPLAY and SHOWTHRED, I just replace everything below "$navbar", with the code below right?
2) Edit and add / replace(old code).
*** Edit 2 Template(s) : FORUMDISPLAY, SHOWTHREAD
Find:
$navbar
below add / replace:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
</if>
</if>
</if>
Zachariah
03-09-2006, 02:35 PM
So, in FORUMDISPLAY and SHOWTHRED, I just replace everything below "$navbar", with the code below right?
No.
The replace was for people who upgraded many ver back.
Find: $navbar
add under:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
</if>
</if>
</if>
Zachariah
03-09-2006, 02:40 PM
I have plans to do some updates on this hack.
- no template edits for banner placement
- perhaps rotation script option for images and flash banners.
Thoughts anyone ?
Zachariah
03-09-2006, 03:05 PM
Nice hack just what i need.
few questions though
is it possible to show the banner/image always ? in the header not mather what page your on ?
and is it possible to have more then 1 image, switch image after x seconds ?
https://vborg.vbsupport.ru/showthread.php?s=&threadid=96398
and post #18 - simple rotation per refreash (switch image after x seconds ... soon)
megnin
03-12-2006, 05:36 PM
The updates sound great.
Thank you for the clarification on the installation. I'm quite new to this and nothing is "familiar" to me yet. I'm only done a few things in HTML, even less in Visual Basic and nothing in PHP. I appreciate the "hand hold". ;)
megnin
03-12-2006, 06:22 PM
Well, I still can't get an image to show up in a forum.
I made the edits to the FORUMDISPLAY and SHOWTHRED files, used Forum Manager, Edit Forum, "Place an image on your forum" to select an image. I tried a .gif then a .jpg.
In my forums, no graphics. What could I have missed?
rnmcd
03-13-2006, 02:25 AM
Has this awesome hack been working with 3.5.4? Anyone tried it yet?
Zachariah, those updates sound helpful. In particular, banner rotation.
megnin
03-13-2006, 09:29 AM
I'm using vB 3.5.4 and haven't been able to get it to work, but then this is my first experience with vBulletin, so don't judge by my experience.
The steps to install it are pretty simple and I believe I've followed them correctly, but I don't have the experience with this software to know how "touchy" it is.
Warlock40
03-14-2006, 04:51 PM
Works great. Also works with phpadsnew using the remote java.
I am thinking about installing vbadvance cmps. Will I have problems installing cmps with this hack installed? Should I disable it before or not worry about it.
Its going on a test forum first before it goes to the live version.
Trevor Hannant
03-14-2006, 08:15 PM
If I add the code for a flash banner instead of the code for an image, in the code from up, it doesn't work
I have this code:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><right><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></right><br />
<else />
<if condition="$foruminfo['banner']"><right><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></right><br />
<else />
<if condition="$foruminfo['bannercode']"><right>$foruminfo[bannercode]</right><br />
<else /><object border="0" width="600" height="100">
<param name="wmode" value="transparent">
<embed src="magic2.swf" width="600" height="100" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" /></object>
</if>
</if>
</if>
</if>
</td>
Yep, I'm having a problem getting a flash file to come up too.:confused:
skcyber
03-18-2006, 11:21 AM
first of all, thank you for this plug... this is really cool !
i have vb 3.5.4 and aria skin.
the plug is working great !
i have a question, i would like the banner to be on every category of a forum, and even in the threads ? how can i do ?
for exemple :
forum 1 : pict1.jpg
- category 1
- category 2
forum 2 : pict 2.jpg
- category 1
- category 2
- category 3 ...etc
should i modify this ? :
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
</if>
</if>
</if>
thanks for your help !
Zachariah
03-18-2006, 08:11 PM
To place on all threads in the same forum.
EX:
Forum1 - Image1
- Thread1 - image1
- Thread2 - image1
Forum2 - Image2
- Thread1 - image2
- Thread2 - image2
2) Edit and add.
*** Edit 2 Template(s) : FORUMDISPLAY, SHOWTHREAD
Find:
$navbar
below add :
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
</if>
</if>
</if>
Zachariah
03-18-2006, 08:12 PM
going to do a an update in a wook or so ;D
skcyber
03-19-2006, 10:47 AM
thanks you for your answer, it's working..
i love your plug !!! lol
megnin
03-19-2006, 05:36 PM
I think I'm closing in on my problem getting this to work...
In the "(vb3.x) add banner to forum 1.6.txt" file where it says:
/////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////NEW INSTALL////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////
// Adds fields to forum table called banner, bannerlink, banneralt, bannercode.
//////////////////////
Run Query:
//////////////////////
ALTER TABLE `forum` ADD `banner` VARCHAR( 50 ) NOT NULL ;
ALTER TABLE `forum` ADD `bannerlink` VARCHAR( 250 ) NOT NULL ;
ALTER TABLE `forum` ADD `banneralt` VARCHAR( 250 ) NOT NULL ;
ALTER TABLE `forum` ADD `bannercode` mediumtext ;
...I assumed that was code that would execute during install. I now believe that I'm suppose to run those four query commands to add those fields to the forum table. I still don't know how to do that though.
Under "Maintenance" is "Execute SQL Query". Is that where I run the above query?
When I click on "Execute SQL Query" in the Control Panel it says, "You are not authorized to execute SQL queries".
I'm stuck.
Zachariah
03-20-2006, 01:03 AM
I think I'm closing in on my problem getting this to work...
In the "(vb3.x) add banner to forum 1.6.txt" file where it says:
...I assumed that was code that would execute during install. I now believe that I'm suppose to run those four query commands to add those fields to the forum table. I still don't know how to do that though.
Under "Maintenance" is "Execute SQL Query". Is that where I run the above query?
When I click on "Execute SQL Query" in the Control Panel it says, "You are not authorized to execute SQL queries".
I'm stuck.
Product:
banner_image.xml
Runs all of that for you on install. Placement of html edites in 2 templates is all you have to do.
--------------------------------------------------*/
1) Choose the right XML file.
*** How to Install:
In your Admin Control Panel
Admincp => Plugin System => Manage Products
Click [Add/Import Product]
Browse for the file "banner_image.xml"
Allow Overwrite should be on
Import
---------------------------------
2) Edit and add / replace(old code).
*** Edit 2 Template(s) : FORUMDISPLAY, SHOWTHREAD
Find:
$navbar
below add:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
</if>
</if>
</if>
--------------------------------------------
*** Useage:
These files can be any image. (png, jpg, gif, ect) or paste your HTML code.
To add banners go to Forums & Moderators => Forum Manager => Edit forum => scroll do to the bottom enter your details.
rnmcd
03-20-2006, 01:35 AM
Would it be a major change to have multiple (but smaller) banner ads to each forum?
Zachariah
03-20-2006, 02:15 AM
I used the "html area" to paste custom code.
- Java rotation , custom html, dhtml, ect.
2 images w/ link in HTML area.
http://www.gzhq.net/forums/forumdisplay.php?f=235
EX:
<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>
<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>
rnmcd
03-20-2006, 02:21 AM
I used the "html area" to paste custom code.
- Java rotation , custom html, dhtml, ect.
2 images w/ link in HTML area.
http://www.gzhq.net/forums/forumdisplay.php?f=235
EX:
<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>
<a href="http://www.google.com">
<img border="0" src="http://www.google.com/logos/winter_holiday05_1.gif" width="276" height="120"></a>
Sorry buy I'm quite a novice :nervous: and I don't understand your previous post.
Are you saying that we don't need your hack to post banners? Just add code to the html area?
Zachariah
03-20-2006, 10:49 AM
Sorry buy I'm quite a novice :nervous: and I don't understand your previous post.
Are you saying that we don't need your hack to post banners? Just add code to the html area?
Hello,
After hack install:
In the creation of the forum or edit of the forum you wish to have the banner there is an "Html Code" area. This can be used for custom code if you want more than 1 banner.
https://vborg.vbsupport.ru/attachment.php?attachmentid=34099&d=1125806409
In the EX shown in post: #186 - I pasted the above code.
You can also use a simple Java rotation script in that "html code" area.
https://vborg.vbsupport.ru/showpost.php?p=804471&postcount=80
Karsh
03-21-2006, 04:52 PM
no XML file in the zip i downloaded..
davesx
03-26-2006, 06:12 AM
thanks for this zach, works great.
just wanted to know if there is a way i can add this to the bottom? like above the quick reply but after the last post in the thread?
would i just update showthread and forum display and put the same code in the right spot...or would i likely run into problems because that would display the same image twice? like that would only work if i were doing adsense, not banners?
thanks
Zachariah
03-26-2006, 08:11 AM
no XML file in the zip i downloaded..
You may not have the "install button" pushed to get e-mail update.
- Ver. 1.6 (https://vborg.vbsupport.ru/attachment.php?attachmentid=38479) current
thanks for this zach, works great.
just wanted to know if there is a way i can add this to the bottom? like above the quick reply but after the last post in the thread?
would i just update showthread and forum display and put the same code in the right spot...or would i likely run into problems because that would display the same image twice? like that would only work if i were doing adsense, not banners?
thanks
As long as you stay in the same template "location" is up to you. I placed after $navbar in the templates as it worked for my current style.
davesx
03-26-2006, 03:12 PM
As long as you stay in the same template "location" is up to you. I placed after $navbar in the templates as it worked for my current style.
Right but lets say I wanted a banner on top and on the bottom...two different banners. The plugin only manages one banner per forum, right?
Or is there a way to make it do multiple ones?
Zachariah
03-26-2006, 08:01 PM
Right but lets say I wanted a banner on top and on the bottom...two different banners. The plugin only manages one banner per forum, right?
Or is there a way to make it do multiple ones?
Yes this is 1 area for a banner.
Take a look @ this:
Add a Header / Footer option to each forum
https://vborg.vbsupport.ru/showthread.php?t=96398
Someone wanted extra header / footer per forum.
- html area to paste code.
- 2 areas per forum to place banners or anything (not php). :knockedout:
defcon_420
04-04-2006, 11:25 AM
"Clicks Install" Great mod! very simple and good installation instructions :)
Installed!
Thanks for a great mod. Easy to use and worked 100% right off the bat without any issues! ;)
... just one thing... the usergroups issue? Are you still working on getting this to be able to display ads per user group? Ultimately what I would like to do is add a "Subscribers" group to my board and have people in that group not see the ads. Or possibly even have a CP switch to turn ads on / off if they are in the "Subscribers" group. Either way would be great ;)
Thanks again!
Zachariah
04-06-2006, 02:30 AM
Installed!
Thanks for a great mod. Easy to use and worked 100% right off the bat without any issues! ;)
... just one thing... the usergroups issue? Are you still working on getting this to be able to display ads per user group? Ultimately what I would like to do is add a "Subscribers" group to my board and have people in that group not see the ads. Or possibly even have a CP switch to turn ads on / off if they are in the "Subscribers" group. Either way would be great ;)
Thanks again!
Yes still in the works.
- perhaps in a week :)
Bukusami
04-06-2006, 12:32 PM
Sound slike a really great mod Zach..
I use Subdreamer as my portal front and use tradedoubler as my affiliates host, i have a sponser ad for subdreamer for the portal and will use this as my forums affiliate mod.
I will not install just yet as i am looking forward to the next update where i can have ads off per usergroup, and will work on the text links from tradedoubler to put in the rotation.
Will click install for now so i get news of the update but will nto install till update out.
Please be prompt :P
Regards
Gary
NR Fatal
04-16-2006, 12:31 AM
installed it, uploaded my image, went to the forum I wanted the image in and put the link in, checked to see if the image was showing, Its not. know why?
Zachariah
04-16-2006, 02:01 AM
NR Fatal,
At the current stage of this hack it still needs 2 template edits to operate. Did you make them ?
NR Fatal
04-16-2006, 05:51 AM
NR Fatal,
At the current stage of this hack it still needs 2 template edits to operate. Did you make them ?
Yes I did.
2) Edit and add / replace(old code).
*** Edit 2 Template(s) : FORUMDISPLAY, SHOWTHREAD
Find:
$navbar
below add / replace:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
</if>
</if>
</if>
Bro_Joey_Gowdy
05-11-2006, 05:42 PM
Any updates ?
Zachariah
05-11-2006, 06:26 PM
no but It is next on my list :)
Master Miyagi
05-11-2006, 08:51 PM
Fatal error: Field banner is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 485
What's this all about? I did everything just right. I added the right xml product and also pasted the code mentioned in the zip file below $navbar in the two templates.
These things can get really annoying sometimes..
[EDIT]
Also, am I supposed to be typing anything inside these codes:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
</if>
</if>
</if>
Hypocrisy
05-11-2006, 09:49 PM
Hello,
I've got a question about this plugin:
Can I put the code directly inside the navbar template? Will the code still make difference of what forum / thread the ads are selected to display in?
What if I want to have one code that shows in every other case than the thread/forumdisplay options? Like a certain html code / ad is shows on the mainpage, the user panel and private messages page?
Thanks in advance :)
Normandi2
05-13-2006, 01:21 AM
Click install
Bro_Joey_Gowdy
05-16-2006, 04:15 PM
Downloaded and installed in under a minute.
It appears to be working fine for vb 3.5.3 at the moment.
midirtrider
05-25-2006, 02:05 AM
Quick question..
I have the banner system all installed and its working great. but forsome reason It wont allow me to link the banners to the abnners homepage..
for instance I have a banner for Edge industries (home page www.edgeindustries.com however it just redirects you back to my forum home page when you click on their banner?
how do I fix this?
midirtrider
05-25-2006, 02:07 AM
Also, just a quick add on to the above question..
In my admin cp where it says Banner link and you have to type in the http://blah blah.com
after i save it and the image banner is in the "banners" list.. I can click on them their and they send me to the banners home page.. just not when im in my forum. from their they do as I stated above..
midnightsoaper
05-29-2006, 06:58 PM
Love this hack!
My only problem is, I already have a phpadsnew banner at the top of the page just above the navbar, so it looks really bad if I have this banner just below. I'm running 3.5.4.
Is there a way I can add this to the postbit template? I wanted to try combining this with a hack similar to this hack (https://vborg.vbsupport.ru/showthread.php?t=96249&highlight=adsense+first+post) so that this banner can show up below the first post in each thread.
utw-Mephisto
05-31-2006, 09:27 PM
Zach, is there a way to do add a banner for the categories and they show up then above the categorie ? So far I am just using html tags in the categorie name but the problem with that is of course, they showing up everywhere ..
Zachariah
05-31-2006, 09:48 PM
Zach, is there a way to do add a banner for the categories and they show up then above the categorie ? So far I am just using html tags in the categorie name but the problem with that is of course, they showing up everywhere ..
Can ya show me an example ?
iMystik
06-01-2006, 01:30 PM
thanks mate!!!
demojames
06-02-2006, 02:17 PM
Installed
Works like a charm and installed in under a mintue!!
Thanks
You have no idea what a relief it has been to get this plugin working.....I'm transferring paid sponsors over from phpbb, but all I kept finding was people rattling on about rotating banners....this suits my business model down to a tee.
Thankyou thankyou thankyou
Champster
07-31-2006, 04:10 PM
I'm getting red x marks on my forum for banners. I input all of the pertinent information in the HTML Code section of the Admin CP but I'm having no success. The link I am working with is simliar to the one below. I'm using this link b/c I am an affiliate to a website where I am compensated for the revenue the ad generates
<a href="http://signup.yoursite.com/track/MjczNjo1OjIx/" target=""><img src="468x100_3.jpg" width="468" height="100" border=0></a>
Please advise. Thanks.
Zachariah
07-31-2006, 09:34 PM
I'm getting red x marks on my forum for banners. I input all of the pertinent information in the HTML Code section of the Admin CP but I'm having no success. The link I am working with is simliar to the one below. I'm using this link b/c I am an affiliate to a website where I am compensated for the revenue the ad generates
<a href="http://signup.yoursite.com/track/MjczNjo1OjIx/" target=""><img src="468x100_3.jpg" width="468" height="100" border=0></a>
Please advise. Thanks.
Hello,
In bold:
<a href="http://signup.yoursite.com/track/MjczNjo1OjIx/" target=""><img src="468x100_3.jpg" width="468" height="100" border=0></a>
The image you wish to show should be in the "root" folder of your forums according to the code you have.
If you have your banners in a "banners" folder on the server try this:
<a href="http://signup.yoursite.com/track/MjczNjo1OjIx/" target=""><img src="/banners/468x100_3.jpg" width="468" height="100" border=0></a>
or
<a href="http://signup.yoursite.com/track/MjczNjo1OjIx/" target=""><img src="http://www.yoursite.com/banners/468x100_3.jpg" width="468" height="100" border=0></a>
Fill in the URL of the banners on your server.
jswanson
08-01-2006, 01:38 AM
below add / replace:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']"><center><a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a></center><br />
<else />
<if condition="$foruminfo['banner']"><center><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></center><br />
<else />
<if condition="$foruminfo['bannercode']"><center>$foruminfo[bannercode]</center><br />
</if>
</if>
</if>
What do I replace... or do I just add the code at the bottom of both templates during a new install...?
baby9x
08-06-2006, 12:00 AM
Great! http://yeuamnhac.com has this mod!
It's very nice! I love it! :)
soletrader
08-07-2006, 01:21 AM
Is there a way to make it rotating?
Zachariah
08-07-2006, 10:57 AM
Is there a way to make it rotating?
There is a simple way.
https://vborg.vbsupport.ru/showpost.php?p=804471&postcount=80
Warlock40
08-08-2006, 01:45 AM
Will this port over to 3.6 without problems? looking to do the upgrade within the next week. Just covering all my bases before hand.
Thanks
Zachariah
08-08-2006, 07:52 PM
Will this port over to 3.6 without problems? looking to do the upgrade within the next week. Just covering all my bases before hand.
Thanks
I have not tryed yet, but I do not see a problem.
Could somebody please confirm on this thread if and when they do sucessfully have it ported on 3.6
I can't take risks with this mod as I have paid up sponsors, and won't be upgrading til I know this mod works.
Warlock40
08-10-2006, 12:33 PM
I'll let you know. I'm just setting up a test forum now to run the upgrade.
It will be a few days but I'll report back when I'm done
Brandr
08-12-2006, 04:02 AM
Hello,
We all certainly appreciate the efforts of all the code writers who have been providing us with so many interesting upgrades at no charge.
But i am having a hell of a time following some of these instructions.
I'm instructed to browse for the file XML.xxxxxxxxxx
Excuse me, but i see no such file in the folder i just downloaded for this hack.
The Instructions need to be a little more concise. Many of us are new vBuletin owners and may also have little knowledge of Html.
I have managed to install some of the upgrades because the installation was concisely explained in sufficient detail for us newbies.
I PM'd an 'expert 'once with a question regarding an upgrade, and he responded as if I was an Idiot for not knowing everything he takes for granted.
Uggghghhgh. mercy...Please...lol
Best wishes._Brandr.
Robbed
08-12-2006, 04:49 AM
banner_image.xml is in the folder. it's like any other plugin.
wolfyman
08-12-2006, 11:10 AM
banner_image.xml is in the folder. it's like any other plugin.
you're treating him the same way he was just begging for mercy from, by assuming he has installed other hacks or plugins.
I totally empathize with him, being self taught in this arena.
Robbed
08-12-2006, 02:42 PM
I'm self taught to.
The instructions are pretty clear.
*** How to Install:
In your Admin Control Panel
Admincp => Plugin System => Manage Products
Click [Add/Import Product]
Browse for the file "banner_image.xml"
Allow Overwrite should be off
Import
Ignore the upgrade part
banner_image.xml should be in the zip file. I wasn't trying to be rude.
wolfyman
08-12-2006, 02:46 PM
I'm self taught to.
The instructions are pretty clear.
*** How to Install:
In your Admin Control Panel
Admincp => Plugin System => Manage Products
Click [Add/Import Product]
Browse for the file "banner_image.xml"
Allow Overwrite should be off
Import
banner_image.xml should be in the zip file. I wasn't trying to be rude.
sure man, I understand where you're coming from. But even those instructions can be confusing for someone new to vb.
Make Money?
08-20-2006, 10:06 PM
I have one top "header" banner zone for ALL of the forums pages.. I would like to use this hack to put an additional "footer" (bottom) banner zone on ONE forum only.. Can I use this hack to do this please?
Thanks!
GrantHorizons
08-21-2006, 09:35 AM
Great hack, I've been very pleased with it on my site.
BUT getting set to upgrade to vB3.6. Any idea whether this works with vB 3.6, or is there an update needed / coming?
thanks, Grant
Zachariah
08-21-2006, 12:19 PM
I have one top "header" banner zone for ALL of the forums pages.. I would like to use this hack to put an additional "footer" (bottom) banner zone on ONE forum only.. Can I use this hack to do this please?
Thanks!
Yes placment were it shows up on a forum is up to you. I placed under the $navbar.
Make Money?
08-23-2006, 09:34 AM
Thanks v much!
And I am on vB3.6
bollie
08-27-2006, 11:36 AM
work for vb 3.6.0 ;)
Hi
Like your mod. I am on vb3.6.1
If you can create another version of mod with 1) top center different banners add ons and 2) bottom center different forum banners add ons and 3) left column different banner add ons and 4) google ad sense at the bottom, it will be great to many users as they can add different banners on the top and bottom and left navigation with bottom good ad sense. I think you can do it.
See
1. Different Top Section For Placement of Different Banners Before Start Of Forum & SubForum
2. Different Bottom Section For Placement of Different Banners Before End Of Forum & SubForum
3. Different Left Navigation
4. Google Ad Sense at the bottom
My Website Example :- http://www.singaporecarsforum.com/forumsample.html
Other Website Sample of vbulletin Forum with their own standard header with different left navigation and start of forum with Login. http://forums.carma.com.sg/forumdisplay.php?f=131
Marris
09-23-2006, 12:34 PM
Thank you for this mod.
Is there any way to pull the banner values, such as $foruminfo[bannercode] into postbit_legacy?
I am trying to combine your plugin with the following method to display a banner at a specifc location between posts:
How To Show A Banner After The First Post In A Thread (http://www.vbulletin.com/forum/showthread.php?t=198875)
Unfortunately, $foruminfo[bannercode] doesn't seem to be accessible from postbit_legacy.
I tried creating plugins at various hook locations that seemed to be related to the postbit with the following forumdata_start plugin code, but $foruminfo[bannercode] was not displayed within postbit_legacy.
$this->validfields['banner'] = array(TYPE_STR, REQ_NO);
$this->validfields['bannerlink'] = array(TYPE_STR, REQ_NO);
$this->validfields['banneralt'] = array(TYPE_STR, REQ_NO);
$this->validfields['bannercode'] = array(TYPE_STR, REQ_NO);
Can anyone suggest plugin code or another way to read that value, so the banner can be displayed in postbit_legacy?
TIA
wecleangrout
09-26-2006, 01:12 PM
Maybe a silly question.
If this is the fist install (not an upgrade) do I still need to edit the templates?
I installed and see it in the forum manager but not showing on the forums.
If I do need to edit templates would there be any conflict with Php portals?
Thank you............(newbie to hacks)
My forum. (http://dirtygrout.com/forums/)
wecleangrout
09-26-2006, 03:48 PM
Ok got it----
To answer my own question. I DID have to edit the templates.
EASY
Thank you. Now I can go make more $$$
bada_bing
09-27-2006, 02:23 AM
subscribed will probebly install tomorrow
sensimilla
10-10-2006, 07:20 AM
It's not working for me on 3.6.1 and I was using it on 3.5 great hack!
MySQL Error : Unknown column 'banner' in 'field list'
Error Number : 1054
sensimilla
10-23-2006, 01:14 PM
Bumping again... No one ?
Warlock40
10-25-2006, 07:13 PM
working in vb 3.6.1
didn't originally because I forgot that the templates were reverted when i updated them due to the change... so fyi..since you've got to either revert or redo your styles when you upgrade you'll need to add the template additions again.
I wasted an hour wondering why this wasn't working.
cheers!
hankster
02-06-2008, 03:48 PM
I have a question since I'm not very good at vB conditionals. Is there a way to add an "else" statement so if there isn't a banner entered for that forum that some other code would displayed?
I use phpAdsNew to serve random banners on most of my pages and would like that to display the banner if there is no banner for that forum.
Thanks!!!
pooffck
04-21-2008, 08:08 PM
hello
i have a probl: after i installed the xml file, edited the 2 templates it showed this to forum manager: https://vborg.vbsupport.ru/attachment.php?attachmentid=34099&d=1125806409
after i completed the spaces the banner didnt appeared on forums home page
any suggestions plz?
Chris583
05-06-2008, 03:24 AM
Please update for 3.7 Gold and I will loveyou forever and ever!
gopherhockey
07-27-2008, 10:00 PM
Does anyone know how to add a banner when a user clicks "New Posts" (above the new posts list if there are some, or on the "sorry, no new posts" page if displayed)
Most people on our site do a "new posts" search vs. browsing around separate forums. This would be a key area to advertise.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.