vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Rotating banners (https://vborg.vbsupport.ru/showthread.php?t=106682)

soletrader 08-21-2006 04:01 AM

anyway to get this to work with 3.6?

vbreal 09-13-2006 08:04 PM

can i use this to rotate my main banner

attroll 09-14-2006 04:45 AM

Quote:

Originally Posted by vbreal
can i use this to rotate my main banner

You sure can if you put the code in the correct spot.

vbreal 09-15-2006 02:00 PM

cool i got it to work. but it puts this gap in between my banner and the forum. Its not much. Just a few pixels but its bugs me every time i see it haha
I have attached a picture of it and my code. if it can be fixed cool. if not i will just have to deal with it. I appreciate the mod.

thanks


PHP Code:

<!-- Begin rotating ad code -->
<
script language="Javascript"><!-- 
function 
image() { 
}; 
image = new image(); 
number 0
// imageArray 
image[number++] = "<a href='http://www..com/forum.php'><img src='http://www..com/images/misc/tdphoto.jpg' border='0'></a>"
image[number++] = "<a href='http://www..com/forum.php'><img src='http://www..com/images/misc/tlphoto1.gif' border='0'></a>"
// Carry on adding images - as many as you want
increment Math.floor(Math.random() * number); 
document.write(image[increment]); 
//-->
</script>
<!-- 
End rotating ad code --> 


PHP Code:

<!-- logo -->
<
a name="top"></a>
<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
<
tr>
 <
td align="$stylevar[center]">$banner</td>
 <
td align="$stylevar[right]"
 </
td>
</
tr>
</
table>
<!-- /
logo --> <!-- content table -->
$spacer_open $_phpinclude_output 


ChavMagnet 09-29-2006 06:43 PM

Bag Of Wank lol

dklassen 10-13-2006 03:38 AM

Not sure what you mean when you say "Go to your ADMINCP and create a template called "banner" and insert the attacked code."

I'm using 3.6.2 and I can create a new template but where do I put the code?

Shazz 10-13-2006 05:07 AM

Didn't work on my 3.6.. There are many rotating banner codes, just have to find the right one

attroll 10-13-2006 05:09 AM

Quote:

Originally Posted by dklassen
Not sure what you mean when you say "Go to your ADMINCP and create a template called "banner" and insert the attacked code."

I'm using 3.6.2 and I can create a new template but where do I put the code?

Maybe I did not explain it clear enough. Let me try it here.

Go to you ADMINCP
Go to Styles & Templates
Add New Template
Title the template "banner"
Insert the the code that is listed after you have made your modifications to it with your links.

dklassen 10-13-2006 03:36 PM

Thanks, got it working.

What template do I put the $banner in if I want the ads do display in one specific forum?

attroll 10-13-2006 04:00 PM

Quote:

Originally Posted by dklassen
Thanks, got it working.

What template do I put the $banner in if I want the ads do display in one specific forum?

The only way to make this work in one specific forum would be to create another style and assign that style to that forum and to put the $banner in the header template of just that one style.


All times are GMT. The time now is 01:11 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01151 seconds
  • Memory Usage 1,747KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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