vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Best Ad Management Script for Vbulletin? (https://vborg.vbsupport.ru/showthread.php?t=71649)

Michael Morris 11-16-2004 09:01 PM

Those are template conditionals. You put them in the template where the ad will appear along with the rest of the HTML. If you're ads going to be in the header, then it all goes in the $header template.

The name of the CPMS index is

adv_index

So the conditional is

HTML Code:

<if condition="THIS_SCRIPT=='adv_index'">ad code</if>

Michael Morris 11-16-2004 09:03 PM

Quote:

Originally Posted by DistributorTalk
Could you post the exact code you use to get those ads on your vbadvanced homepage and other pages at the top? Also let me know exactly where you place the code.

Our code won't work for you - if you use it you'll call up our ads :)

phpadsnew2 generates the ad code itself. Go to Publisher's & Zones and select "Generate Invocation Code" and use the "Remote invocation by javascript" - that's easier than trying to splice and php from phpadsnew into vbulletin.

cmiller1014 11-16-2004 09:33 PM

Thanks Michael.

Just to clarify, my code will always go in the template for whichever page I want it to appear on, right?

Michael Morris 11-16-2004 09:42 PM

$header is global - meaning it's called on all pages. If you want 4 zones for four different pages you'll put the invocation codes for ALL of them in the header. Each one should be surrounded by the appropriate conditional tags. Hence

<if>Ad 1
<else /><if>Ad 2
<else /><if>Ad 3
<else />Ad 4
</if></if></if>

cmiller1014 11-16-2004 11:45 PM

Ok I got that part..... but now how does vbulletin know where to put the ad on the page? For example, if I want a little ad on the forum home page to show a "sponsor" for a specific category, I would somehow need to call that ad right next to the category name. So from what you have said I understand I need to put the conditions in the header template, but now what other code needs to be put (and where) to get the small ads to show up.

Thanks again

Michael Morris 11-16-2004 11:56 PM

You put the code in the spot you want it to show up in. If you open a template, say forumhome, you're looking at an outline of the page before the values of any variables are plugged in. You put all that code at the location you want it. You may need to use tables for some additional formatting, depending on what you're looking for.

cmiller1014 03-13-2005 02:55 AM

Hi again,

Thanks for all your help, ive got one more question.

We ditched the vbadvanced page and dont need to worry about what ads are on what pages. We just need to be able to call 2 468x60 banners, and one or two small side banners for each page. Right now we are only able to call 1 large banner at the top.

Here is how we are doing it:

In the php_include section in styles we have:

Code:

require("/home/httpd/vhosts/distributortalk.com/httpdocs/ads/phpadsnew.inc.php");
$ads_array=view_raw("468x60");

Then on in the header template where we have the banner showing we have:

Code:

$ads_array[html]
This works great to call a random 468 banner at the top, but we want to call one more at the bottom, and then one of the small size ones on the side.

Thanks in advance!

cmiller1014 05-26-2005 06:15 AM

Hey guys,

I decided to install phpadsnew on a different domain so that I can setup zones and have advertising across all of my sites. What would be the best way to call the ads into vbulletin now that I have it setup like this? Can you give me an example?


All times are GMT. The time now is 04:18 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.01100 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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