vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Rotating Banner System (https://vborg.vbsupport.ru/showthread.php?t=188328)

y2ksw 09-06-2008 04:29 PM

Quote:

Originally Posted by Automaton (Post 1615452)
Please keep me posted. I am very interested in this type of product

I believe at the current state of brain storming, best is to go by steps and use thus the inbuilt subscription feature. I'm not sure yet how to upload the banner and make sure it will be only one at a single time - maybe using the user profile.

kingmotox 09-07-2008 03:43 AM

Quote:

Originally Posted by y2ksw (Post 1615971)
I would suggest to replace the @vbbanners@ placeholder (vBulletin Options, bottom) with something like <!-- @banner@ --> (HTML Comment) in order to hide advertising in scripts which eventually don't call the vBulletin standard page closure, and thus jump over the global_complete hook.


i tried that but then it didnt work at all. did i miss something for the code?

y2ksw 09-07-2008 11:05 AM

Quote:

Originally Posted by kingmotox (Post 1616322)
i tried that but then it didnt work at all. did i miss something for the code?

After changing the placeholder, also the styles' placeholders must be edited accordingly, else it won't find any to replace and thus would not show anything.

kingmotox 09-07-2008 11:28 PM

ok i changed the place holders so it still works in the forum but i still dont have anything on the classifieds?

y2ksw 09-08-2008 08:14 AM

Quote:

Originally Posted by kingmotox (Post 1617009)
ok i changed the place holders so it still works in the forum but i still dont have anything on the classifieds?

If the classifieds script does not use the standard closure of vbulletin, you will not see ads on those pages. With the suggested changes, you will not see the placeholder though, and still show ads on your forums.

There is nothing I can do about scripts which hook only partially into vBulletin - it is a choice of the developers how far their products integrate. If the product calls the vBulletin hook global_complete and does not exit prematurely, the ads are rendered ;)

jlew24asu 09-08-2008 12:58 PM

is their anything different I need to do since I have CMPS?

acast 09-08-2008 02:39 PM

Hi, i have the enlighten style, this is the code in the CSS (the logo is there, not in header):

Code:

/* ***** SETS LOGO AREA FOUND IN HEADER AND ALL OF IT'S PROPERTIES ***** */
#logo {
background: url(enlighten/misc/header_logo.gif);
width: 470px;
height: 102px;
float: left;
        margin: 0;
        padding: 0;
}

/* ***** sets background for header area - No need to change this ***** */
#hdr {
background: #F7632F url(enlighten/misc/header_back.gif) ;
width: 100%;
height: 102px;
        margin: 0;
        padding: 0;
}


/* ***** SETS HEADER RIGHT SIDE AREA FOUND IN HEADER AND ALL OF IT'S PROPERTIES ***** */
#hdr_rs {
background: url(enlighten/misc/header_rs.gif);
width: 34px;
height: 102px;
float: right;
padding: 0;
}


/* ***** SETS HEADER RIGHT SIDE AREA FOUND IN HEADER AND ALL OF IT'S PROPERTIES ***** */
#hdr_rs {
background: url(enlighten/misc/header_rs.gif);
width: 34px;
height: 102px;
float: right;
padding: 0;
}

What i have to do to have the banners where is the header_logo?. Thanks if someone can help me.

y2ksw 09-08-2008 03:50 PM

Quote:

Originally Posted by acast (Post 1617446)
Hi, i have the enlighten style, this is the code in the CSS (the logo is there, not in header):

(cut)

What i have to do to have the banners where is the header_logo?. Thanks if someone can help me.

Sorry, the rotating banners won't work with CSS. For use with CSS, you could use only static banners or a script made specificly for CSS image replacements, which is however not supported by all browsers.

A script replacement in CSS would read like:

Code:

#logo {
background: url(anywhere/script.php);
width: 470px;
height: 102px;
float: left;
        margin: 0;
        padding: 0;
}


y2ksw 09-08-2008 03:54 PM

Quote:

Originally Posted by jlew24asu (Post 1617363)
is their anything different I need to do since I have CMPS?

With vbAdvanced there is no additional work to do. Other CMPS may or may not work, depending whether they load the vBulletin engine or not. All non-vBulletin pages must load the vBulletin engine and call the global_complete hook in order to render the rotating banners.

kingmotox 09-08-2008 07:13 PM

Quote:

Originally Posted by y2ksw (Post 1617218)
If the classifieds script does not use the standard closure of vbulletin, you will not see ads on those pages. With the suggested changes, you will not see the placeholder though, and still show ads on your forums.

There is nothing I can do about scripts which hook only partially into vBulletin - it is a choice of the developers how far their products integrate. If the product calls the vBulletin hook global_complete and does not exit prematurely, the ads are rendered ;)

they said the banners need to exsist in the photopost folders the same way as the banner program uses them. Would i put a folder like /www/photopost/images/ ?


All times are GMT. The time now is 05:56 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.02104 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_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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