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)
-   -   Banners & Ads System (https://vborg.vbsupport.ru/showthread.php?t=74621)

xtreme2 01-27-2005 08:05 PM

hey, I installed the script, but I don't want it to show up in the navbar (have other stuff there). I am wanting it to be above the Advertising Section of my site (http://forums.probe-enthusiast.com/) When I have it in the navbar, it works fine, but anywhere else, it doesn't want to show up at all... any help?

Itworx4me 01-27-2005 09:10 PM

I found that this works in the phpinclude_start template. Make sure you delete this file from the gobal.php file or it won't work.
PHP Code:

if ($vboptions['enbanners'])
{
    
// select random banner and display it
    
$getbanner $DB_site->query_first("SELECT title, html, url, type, status, width, height FROM " TABLE_PREFIX "banners WHERE status = '1' ORDER BY RAND() LIMIT 1");

    eval(
'$banner = "' fetch_template('banner') . '";');
    unset(
$getbanner);


One thing I have found with this script is that it doesn't rotate. Does anyone else have this problem??

Thanks,
Itworx4me

AnhTuanCool 01-28-2005 01:07 AM

Place $banner where you want your banners to be displayed. Make sure you remove $banner in your navbar template if you don't want it to show one banner twice at a time.

@Itworx4me - what do you mean by the script doesn't rotate?

Itworx4me 01-28-2005 03:11 AM

For some reason the banner doesn't rotate. Just stays on the first banner all the time. Not sure what can be done to fix this.

Thanks,
Itworx4me

xtreme2 01-28-2005 03:36 AM

alright, cool, works for me now... rotates and everything... thanks!

AnhTuanCool 01-28-2005 04:01 AM

@xtreme2 - thanks ;)

@Itworx4me - to make a banner to display, you have to set its status to ON. Otherwise I cannot find any problem along with my forum and other customer ones.

LauraFL 01-28-2005 04:36 PM

I have it all installed but my banner is not showing up where I placed the $banner. I made sure that it is turned on and it show the banner correctly in the acp.

Any ideas?

detalhe 01-28-2005 06:40 PM

Same here, it works only inside the main page, not above the navbar for example

AnhTuanCool 01-28-2005 08:09 PM

I've added the update allow you to display your banner anywhere else you want depend on where you place your $banner variable. Have fun ;)

shadiguy1 01-29-2005 07:21 PM

i installed this in 3.0.3 works great Question i have is there anyway to have this display a few banners at the same time i have it displaying currently under my header what i ean is like 3 diffrent banners same time.


All times are GMT. The time now is 10:53 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.01084 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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