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)

attroll 05-03-2006 02:39 PM

Quote:

Originally Posted by mattyk72
Is it possible to have mutliple sets of rotators?

For example, can I have a banner rotator at the top of my page with lets say 5 ads going, and then a seperate rotator at the bottom of my page with 5 different ads going too?

I don't see why it could not be done you would have to create the same thing over again but maybe do somethuing like this.

1. Go to your ADMINCP and create a template called "banner2" and insert the same code that you used in your first template but make the changes to the banners you want showing this this particular one.

2. Now still in your ADMINCP go to PLUGIN SYSTEM-->ADD NEW PLUGIN
HOOK LOCATION is "global_start"
TITLE is "banner2"
PLUGIN PHP CODE:
PHP Code:

eval('$banner2 = "' fetch_template('banner2') . '";'); 

3. Insert the following code in your footer:
PHP Code:

$banner2 


attroll 05-03-2006 02:49 PM

Quote:

Originally Posted by CMY
Hi gys-

Am I doing something wrong in this particular section? I've followed all other directions perfectly but it's still not showing up. (VB 3.5.4)

Thanks,
Chris

I don't know what your missing without actually looking at you web site and your ADMINCP. It looks like you have the code correct in your header. It sounds like it is one of two things. You might want to make sure that your plugin system is activated. It comes turned off when you first install VB. You also may want to make sure that the plugin that you created for this hack is activated.

mattyk72 05-03-2006 05:06 PM

Quote:

Originally Posted by attroll
I don't see why it could not be done you would have to create the same thing over again but maybe do somethuing like this.

1. Go to your ADMINCP and create a template called "banner2" and insert the same code that you used in your first template but make the changes to the banners you want showing this this particular one.

2. Now still in your ADMINCP go to PLUGIN SYSTEM-->ADD NEW PLUGIN
HOOK LOCATION is "global_start"
TITLE is "banner2"
PLUGIN PHP CODE:
PHP Code:

eval('$banner2 = "' fetch_template('banner2') . '";'); 

3. Insert the following code in your footer:
PHP Code:

$banner2 


That's kinda what I had in mind, I'll give it a try, thanks.

I was just wondering if anyone else has done the same thing.

Angeleyes 05-31-2006 12:30 AM

I can't figure out how to "create a new template" in the AdminCP. Can someone help me???

attroll 05-31-2006 03:00 AM

Quote:

Originally Posted by Angeleyes
I can't figure out how to "create a new template" in the AdminCP. Can someone help me???

Log into your ADMINCP --> Styles & Templates.
Now Click on the drop down menu for the default style.
Click Add New Template.

Angeleyes 05-31-2006 01:57 PM

::smacks head:: Wow... I'm an airhead. I honestly feel like such an idiot- thank you SOOOO much! ::hugs attroll:: :)

Angeleyes 05-31-2006 11:17 PM

Okay... I did everything I was supposed to do... except I'm trying to put the banner rotator under the nav bar. It's not working though :( Nothing is happening. The plugin is active, I have plugins enabled and everything.

Angeleyes 05-31-2006 11:18 PM

does it matter if I'm using a custom template?

attroll 06-01-2006 03:14 AM

Quote:

Originally Posted by Angeleyes
does it matter if I'm using a custom template?

What do you meant by custom template?
Did your create the plugin and make it active?
What is your web site url?

Angeleyes 06-01-2006 06:15 PM

Quote:

Originally Posted by attroll
What do you meant by custom template?
Did your create the plugin and make it active?
What is your web site url?


I'm sorry- I meant custom style.

I did create the plug-in and make it active. I went over your directions like 10 times! :confused:

my website url is www.iheartpaws.com/forums

Thank you so much for your patience with me... I feel like such a dummy.


All times are GMT. The time now is 06:28 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.01117 seconds
  • Memory Usage 1,748KB
  • 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
  • (4)bbcode_php_printable
  • (6)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