vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Rotating Forum Banners (https://vborg.vbsupport.ru/showthread.php?t=65604)

Beermonster 08-27-2004 10:39 AM

Quote:

Originally Posted by luiseman
the prefix table is none.


Your not really giving me much to go on, it has to be something that you have done wrong, try reinstalling it but without your modification and see if it works then.

If it doesn't work I will happily install it for you, I've already done it for several people, just pm me with your admin login details, ftp & mysql, apart from that with out a proper description of what you are doing and what is not happening there's not a lot I can do.

nelto 09-05-2004 07:33 PM

is by any chance some one tested this hack on 3.0.3?

I was looking for something like this.

Doc203 09-06-2004 04:08 AM

Yes... it works fine on 3.03

Mu5icMan 09-07-2004 10:27 AM

Could this be modified so you can upload the banners from your computer to the appropriate directory instead of using ftp.

Beermonster 09-07-2004 01:49 PM

Quote:

Originally Posted by Mu5icMan
Could this be modified so you can upload the banners from your computer to the appropriate directory instead of using ftp.

You mean by selecting it from a browse box in the AdminCP or to use a separate upload script?

Either way the answer would be yes but then you would still have to delete them using ftp, but I don't have the time to make the changes I'm busy working on other projects, and there wouldn't be much of a gain in doing it, but if someone wants to try they are more than welcome.

Mu5icMan 09-07-2004 02:12 PM

I mean by selecting it from a browse box.

If it's ok with you can i made changes to your hack to allow this.

After i'm done shall i post it here, or pm you with it to make sure it's acceptable.

Beermonster 09-07-2004 02:24 PM

Quote:

Originally Posted by Mu5icMan
I mean by selecting it from a browse box.

If it's ok with you can i made changes to your hack to allow this.

After i'm done shall i post it here, or pm you with it to make sure it's acceptable.


Feel free to do it, I have been going to do a similar thing to another hack I have done but just haven't had the time

Marulatree 09-09-2004 03:43 PM

(or anyone that can answer this:

How do I link these to a website?


$banner_array = array(
'images/banner1.jpg',
'images/banner2.jpg',
'images/banner3.jpg'

Quote:

Originally Posted by Trigunflame
People If you wanna do banner rotation just use something much simpler

1. Go to whichever style you want banner rotated. (Style Manager > Style Name > All Style Options)

2. In The phpinclude_start box insert this
PHP Code:

// Foreach banner you want to rotate insert a a line such as:
// 'images/bannerx.gif',
$banner_array = array(
  
'images/banner1.jpg',
  
'images/banner2.jpg',
  
'images/banner3.jpg'
);
$banner $banner_array[mt_rand(0,count($banner_array)-1)]; 

3. In the header template replace the section that deals with the img tag with something like this

HTML Code:

<img src="$banner" border="0" alt="$vboptions[bbtitle]" usemap="#Map" />
Basically you're just changing the the src to the $banner variable... very easy requires no special html or javascript or any of that stuff..


Marulatree 09-10-2004 07:09 AM

bumper-bump-bump...;)

Beermonster 09-10-2004 07:29 AM

Quote:

Originally Posted by Marulatree
bumper-bump-bump...;)


1.4 No senseless "Bumping": Please do not bump your request/help searching or other threads several times a day. Remember there are people who don't browse this board every hour. So do not bump a thread within 24h or too much even after 24 hours.

Spinball 09-10-2004 10:34 AM

PHP Code:

$banners = array (
        
"banner1.gif|redirect1.pl|alt text 1|0|468|60",
        
"banner2.gif|redirect2.pl|alt text 2|0|468|60"
);
$banner $banners[mt_rand(0,sizeof($banners) - 1)];
list(
$imgsrc,$myurl,$alttext,$border,$width,$height) = explode ('|',$banner); 

This code is what is used on a normal website. You'll have to use something different for vB, I expect. Haven't looked at the rest of the thread.
Code:

echo("<A HREF=\"http://www.yoursite.com/cgi-bin/$myurl\" TARGET = \"_blank\"><IMG src=\"http://www.yoursite.com/banners/$imgsrc?" . mt_rand(1,999) . "\" border=\"$border\" width=\"$width\" height = \"$height\" alt=\"$alttext\"></A>");
Clicking the banners fires the perl script in your cgi-bin folder. This is so you can run reports on your activity log file to count the number of times each perl script has been opened. This is the number of clicks of each banner.

Hope this helps.

DoKoK 09-15-2004 04:09 AM

does it work on 3.0.3?

Beermonster 09-15-2004 05:35 AM

Quote:

Originally Posted by DoKoK
does it work on 3.0.3?


Yes :)

dano 10-24-2004 07:32 PM

Quote:

Originally Posted by jluerken
I want to have those three rotating banners on the FORUMHOME page directly under the navbar.

How can I do so?

I think this can be also done or?

I would also love this. Anyone know how do to it?

Also, I just installed this on a clean install of 3.0.3 and it works perfect. Great work.

TunerNetwork 10-26-2004 06:21 AM

I'm having a lil trouble installing this, can someone help me out, id greatly appreciate it! I need this for my forum: http://www.tunernetwork.com

Email me or pm me, thanks! zazza_ceo@TunerNetwork.com

Beermonster 10-26-2004 06:53 AM

Quote:

Originally Posted by TunerNetwork
I'm having a lil trouble installing this, can someone help me out, id greatly appreciate it! I need this for my forum: http://www.tunernetwork.com

Email me or pm me, thanks! zazza_ceo@TunerNetwork.com


PM sent

dano 10-27-2004 08:54 PM

OK, 1 issue. When people go to use the search function on the forum where the banner is, the banner covers the search box. How can this be fixed??

Also, I want to have those three rotating banners on the FORUMHOME page directly under the navbar, can anyone tell me how to do this?

Spinball 10-27-2004 09:00 PM

Quote:

Originally Posted by dano
Also, I want to have those three rotating banners on the FORUMHOME page directly under the navbar, can anyone tell me how to do this?

Hopefully you'll be able to find something useful at
https://vborg.vbsupport.ru/showthread.php?t=67942

Beermonster 10-28-2004 07:55 AM

Quote:

Originally Posted by dano
OK, 1 issue. When people go to use the search function on the forum where the banner is, the banner covers the search box. How can this be fixed??

Can you post a screen shot or give the link to your forum

SternFan 11-24-2004 04:17 PM

Quote:

Originally Posted by Beermonster
Can you post a screen shot or give the link to your forum

Same Problem here....

http://greetings.123city.net/TempPictures/58804.jpg

http://greetings.123city.net/TempPictures/58805.jpg

Scerina 11-25-2004 05:56 AM

Quote:

Originally Posted by Beermonster
Edit SHOWTHREAD
find $navbar and below paste

Code:

<!--- Start rotating banner --->
<if condition="$foruminfo['rbanner1']">

<center>
<script type="text/javascript">

/***********************************************
* Translucent Slideshow script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var trans_width='480px' //slideshow width
var trans_height='60px' //slideshow height
var pause=5000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)
var degree=10 //animation speed. Greater is faster.

var slideshowcontent=new Array()
//Define slideshow contents: [image URL, OPTIONAL LINK, OPTIONAL LINK TARGET]
slideshowcontent[0]=["images/rbanner/$foruminfo[rbanner1]", "http://$foruminfo[rbannerlink1]", "_blank"]
<if condition="$foruminfo['rbanner2']">slideshowcontent[1]=["images/rbanner/$foruminfo[rbanner2]", "http://$foruminfo[rbannerlink2]", "_blank"]</if>
<if condition="$foruminfo['rbanner3']">slideshowcontent[2]=["images/rbanner/$foruminfo[rbanner3]", "http://$foruminfo[rbannerlink3]", "_blank"]</if>


////NO need to edit beyond here/////////////

var bgcolor='white'

var imageholder=new Array()
for (i=0;i<slideshowcontent.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideshowcontent[i][0]
}

var ie4=document.all
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

if (ie4||dom)
document.write('<div style="position:relative;width:'+trans_width+';height:'+trans_height+';overflow:hidden"><div id="canvas0" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div><div id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+trans_width+';height:'+trans_height+';left:-'+trans_width+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div></div>')
else if (document.layers){
document.write('<ilayer id=tickernsmain visibility=hide width='+trans_width+' height='+trans_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+trans_width+' height='+trans_height+' left=0 top=0>'+'<img src="'+slideshowcontent[0][0]+'"></layer></ilayer>')
}

var curpos=trans_width*(-1)
var curcanvas="canvas0"
var curindex=0
var nextindex=1

function getslidehtml(theslide){
var slidehtml=""
if (theslide[1]!="")
slidehtml='<a href="'+theslide[1]+'" target="'+theslide[2]+'">'
slidehtml+='<img src="'+theslide[0]+'" border="0">'
if (theslide[1]!="")
slidehtml+='</a>'
return slidehtml
}

function moveslide(){
if (curpos<0){
curpos=Math.min(curpos+degree,0)
tempobj.style.left=curpos+"px"
}
else{
clearInterval(dropslide)
if (crossobj.filters)
crossobj.filters.alpha.opacity=100
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=1
nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
tempobj.innerHTML=getslidehtml(slideshowcontent[curindex])
nextindex=(nextindex<slideshowcontent.length-1)? nextindex+1 : 0
setTimeout("rotateslide()",pause)
}
}

function rotateslide(){
if (ie4||dom){
resetit(curcanvas)
crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.style.zIndex++
if (crossobj.filters)
document.all.canvas0.filters.alpha.opacity=document.all.canvas1.filters.alpha.opacity=20
else if (crossobj.style.MozOpacity)
document.getElementById("canvas0").style.MozOpacity=document.getElementById("canvas1").style.MozOpacity=0.2
var temp='setInterval("moveslide()",50)'
dropslide=eval(temp)
curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
}
else if (document.layers){
crossobj.document.write(getslidehtml(slideshowcontent[curindex]))
crossobj.document.close()
}
curindex=(curindex<slideshowcontent.length-1)? curindex+1 : 0
}

function jumptoslide(which){
curindex=which
rotateslide()
}

function resetit(what){
curpos=parseInt(trans_width)*(-1)
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
crossobj.style.left=curpos+"px"
}

function startit(){
crossobj=ie4? eval("document.all."+curcanvas) : dom? document.getElementById(curcanvas) : document.tickernsmain.document.tickernssub
if (ie4||dom){
crossobj.innerHTML=getslidehtml(slideshowcontent[curindex])
rotateslide()
}
else{
document.tickernsmain.visibility='show'
curindex++
setInterval("rotateslide()",pause)
}
}

if (window.addEventListener)
window.addEventListener("load", startit, false)
else if (window.attachEvent)
window.attachEvent("onload", startit)
else if (ie4||dom||document.layers)
window.onload=startit

</script></center>

</if>

<!--- End Rotaing Banner --->

this code is for the 3 banner version

There is a miscoding in the SHOWTHREAD code to display the rotating banners. I used the original code from the Installation Instructions in the SHOWTHREAD template coding.

Beermonster 11-25-2004 06:34 AM

Quote:

Originally Posted by Scerina
There is a miscoding in the SHOWTHREAD code to display the rotating banners. I used the original code from the Installation Instructions in the SHOWTHREAD template coding.

Thanks, I've had a couple of others with the same problem but wasn't sure what caused it

SternFan 11-29-2004 03:28 PM

Quote:

Originally Posted by Scerina
There is a miscoding in the SHOWTHREAD code to display the rotating banners. I used the original code from the Installation Instructions in the SHOWTHREAD template coding.


Hmmmmm...am I missing something, because in the original instructions the template mod was in the "ForumDisplay" template, not the "SHOWTHREAD" template. I tried replacing the code in the "ForumDisplay" with the code included above, and the banners stopped working. Any ideas?

Beermonster 11-29-2004 05:13 PM

Quote:

Originally Posted by SternFan
Hmmmmm...am I missing something, because in the original instructions the template mod was in the "ForumDisplay" template, not the "SHOWTHREAD" template. I tried replacing the code in the "ForumDisplay" with the code included above, and the banners stopped working. Any ideas?

The original was the ForumDisplay someone asked if it could be shown else where, not sure why your banners stopped working

SternFan 12-01-2004 01:35 PM

Quote:

Originally Posted by Beermonster
The original was the ForumDisplay someone asked if it could be shown else where, not sure why your banners stopped working

I directly replaced the code in FORUMDISPLAY with the code listed above, and the banners no longer display. What am I missing here??

calvinnguyen 12-06-2004 09:04 AM

I just install this hack! I love it, thanks Beermonster!

But, how can I make rotating banners display at forumhome? Can any one or Beermonster show me how to? thanks for advance

camoman 12-18-2004 03:25 PM

Just installed this hack as well.. Works GREAT!!! THANKYOU!

However, I am also wondering how to get this hack to work on the forum home page as well?!?!

Thanks in advance!

-Curtis

Crank 12-27-2004 01:46 AM

so does this hack only allow for three (3) total banners for the entire board or just three for each forum assigned?

Beermonster 12-27-2004 01:30 PM

Quote:

Originally Posted by Crank
so does this hack only allow for three 930 total banners for the entire board or just three for each forum assigned?

sorry? :rolleyes:

Crank 12-27-2004 03:47 PM

wondering if you can set more than three banners for the board or if it only allows you to use three total.

Beermonster 12-27-2004 05:23 PM

Quote:

Originally Posted by Crank
wondering if you can set more than three banners for the board or if it only allows you to use three total.


You can have different banners for each forum you have and If you check some of the previous posts you will see I have added one for 10 banners :)

Crank 12-28-2004 09:31 PM

ok thank you for your help beermonster i apologize for having missed that post. thanks again for the hack and i look forward to installing. thanks again

dr.science 12-30-2004 04:08 AM

Can someone help me and tell me what I am doing wrong.

http://www.d-series.org/forums/index.php?

The banner links aren't working correctly, and on my main forum home I can't get it centered. Please be specific with what files I need to edit if you can.. I would really appreciate some help on this. :)

Thanks a ton!!

Beermonster 12-30-2004 11:56 AM

Quote:

Originally Posted by dr.science
Can someone help me and tell me what I am doing wrong.

http://www.d-series.org/forums/index.php?

The banner links aren't working correctly, and on my main forum home I can't get it centered. Please be specific with what files I need to edit if you can.. I would really appreciate some help on this. :)

Thanks a ton!!

This hack isn't for your forum home, but if you click on a forum like this http://www.d-series.org/forums/forumdisplay.php?f=8 then it looks fine to me

feel free to click install ;)

dr.science 12-31-2004 04:56 PM

*clicked*. ;)

I don't understand why your link works and mine doesn't?!?!? Can I get it to work right normally, everytime users visit the forum? Thanks again!

Beermonster 12-31-2004 07:38 PM

Quote:

Originally Posted by dr.science
*clicked*. ;)

I don't understand why your link works and mine doesn't?!?!? Can I get it to work right normally, everytime users visit the forum? Thanks again!

I didn't do anything special, just clicked on a forum

steadicamop 01-09-2005 07:54 AM

I love this hack, it's so effective and unobtrusive.

Just one question - how do I put this on the index page? I've tried copying the code from the showthread template, but it doesn't work .... I pasted it in the bottom half of the navbar template so it would be universal then, to save me going through every single forum and adding them manually, which would take a while!!

Any help would be great.

Thanks for a cracking hack!

Jason

taffy056 01-14-2005 11:13 AM

Hi Beermonster,

Nice little hack, looks cool :)

I would like something like this on forumhome too, any idea how to this? Also is there a possibilty of getting the sponsored by text like your other hack (which I have installed :) ) added to this one.

Thanks for sharing!

taffy

Beermonster 01-14-2005 02:17 PM

Quote:

Originally Posted by taffy056
Hi Beermonster,

Nice little hack, looks cool :)

I would like something like this on forumhome too, any idea how to this? Also is there a possibilty of getting the sponsored by text like your other hack (which I have installed :) ) added to this one.

Thanks for sharing!

taffy

Yes and yes seen that so many people are wanting then on the forumhome I will try and get round to doing it, very soon :)

iceytdot 05-14-2005 12:37 AM

Excellent Job With This Hack ..... Great Work *clicks Install*


All times are GMT. The time now is 10:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01556 seconds
  • Memory Usage 1,864KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete