vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - vB Ad Management 4 (https://vborg.vbsupport.ru/showthread.php?t=131150)

Mrdby 06-05-2007 02:32 AM

Quote:

Originally Posted by djbaxter (Post 1261486)
I know. It was a joke. I think you meant "bear with me", not "bare with me".

oops..u right..lol

mik2007 06-05-2007 11:35 AM

RedTyger, thanks for the great ad system!
I have one question regarding custom code - I did everything according to instructions and it works beautifully if I add $custom_advertisement into the header or footer templates. However all attempts to add $custom_advertisement into the postbit template fail. My goal is to display the small ad block incorporated into the end of the last message in the thread only.

I tried to achieve it by adding the following to the postbit_display_start.php or global_start.php but to no avail:
PHP Code:

if ($vbulletin->options['adintegrate_custom_onoff'])
if ((
THIS_SCRIPT == 'showthread' || THIS_SCRIPT == 'showpost') && $post['islastshown'])
{    
{
if (
$vbulletin->options['adintegrate_custom_adcode'])
    {
        
$custom_split explode("$adshared"$vbulletin->options['adintegrate_custom_adcode']);
        
$custom_adcode $custom_split[0];
        if (
$custom_split[1])
        {
            
$custom_adcode $custom_split[0] . $GLOBALS['adcode_shared'] . $custom_split[1];
        }
        eval(
'$custom_advertisement = "' fetch_template('' custom_advertisement '') . '";');
    }
    else if (
$vbulletin->options['adintegrate_custom_adcode_rand'])
    {
        
$custom_adcode explode("$addelimiter"$vbulletin->options['adintegrate_custom_adcode_rand']);
        
$custom_rand array_rand($custom_adcode);
        
$custom_adcode $custom_adcode["$custom_rand"];
        
$custom_split explode("$adshared"$custom_adcode);
        
$custom_adcode $custom_split[0];
        if (
$custom_split[1])
        {
            
$custom_adcode $custom_split[0] . $GLOBALS['adcode_shared'] . $custom_split[1];
        }
        eval(
'$custom_advertisement = "' fetch_template('' custom_advertisement '') . '";');
    }    
}



Mrdby 06-05-2007 11:40 AM

where would i paste my google adsense code?

djbaxter 06-05-2007 11:45 AM

Quote:

Originally Posted by Mrdby (Post 1261699)
where would i paste my google adsense code?

Assuming you're still referring to the footer link, as earlier:

Admin CP |vBulletin Options | vB Ad Management Header and Footer

Mrdby 06-05-2007 12:09 PM

On three of my skins...the left and right colum doesn't work. any ideas?

mik2007 06-05-2007 01:08 PM

Have you updated the appropriate templates:
Quote:

# Find $spacer_close in your footer template and below it paste $rightcolumn_advertisement.
# Find $spacer_open in your header template and below it paste $leftcolumn_advertisement.
Quote:

Originally Posted by Mrdby (Post 1261711)
On three of my skins...the left and right colum doesn't work. any ideas?


The Librarian 06-05-2007 07:27 PM

Upgrading from vBulletin 3.6.4 to 3.6.7 today. Got this error message at the top of my forums:

Quote:

Warning: Unknown(/home/aaaaa/public_html/forum2/includes/vb_ad_management/cache_templates.php): failed to open stream: No such file or directory in /global.php(341) : eval()'d code on line 32

Warning: Unknown(/home/aaaaa/public_html/forum2/includes/vb_ad_management/cache_templates.php): failed to open stream: No such file or directory in /global.php(341) : eval()'d code on line 32

Warning: (null)() [function.include]: Failed opening '/home/aaaaa/public_html/forum2/includes/vb_ad_management/cache_templates.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /global.php(341) : eval()'d code on line 32
and I can't login to AdminCP without disabling hooks:

Quote:

Unable to add cookies, header already sent.
File: /home/aaaaaaa/public_html/forum2/includes/class_core.php
Line: 3083
so I disabled everything, logged in, disabled just vB Ad Management, and then turned things back on. The forums worked (mostly) and the error message was gone. I tried re-installing Ad Management and had the same problem. I've still got problems with vBadv CMPS but I need help figuring out what to do about Ad Management.

BTW, I've created a second forum (forum2) to run the upgrade as per instructions found here: http://www.vbulletin.com/forum/showthread.php?t=187770
I've turned back on the original forum until I can figure out this and other problems.

Help!

Hendrizius 06-05-2007 08:43 PM

I can not get it to work,
My Options:
Enable Advertisments: Yes
Display advertisements to Usergroups: (blank)
Do NOT display advertisements to Usergroups: (blank)
My AD-Code:
Code:

<script type="text/javascript"><!--
google_ad_client = "pub-5644726162652543";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
//2007-06-05: Between Posts AD
google_ad_channel = "7972402814";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "008000";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

I performed all the Template-Changes but simply no ADs are showing. My Board URL is http://www.d3scene.com, thanks for helping me.

Edit, When opening my Websites source and searching for "google" there is no Google-Analytics-Code included, too.
Code:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1502391-3";
urchinTracker();
</script>


djbaxter 06-05-2007 11:31 PM

Quote:

Originally Posted by Hendrizius (Post 1262014)
I can not get it to work,
My Options:
Enable Advertisments: Yes
Display advertisements to Usergroups: (blank)
Do NOT display advertisements to Usergroups: (blank)

There's your answer.

Which usergroups should be shown ads? None.

Which usergroups should not be shown ads? None.

Which usergroups are left who will actually SEE the ads, including admins? None.

Hendrizius 06-06-2007 06:30 AM

Yes, but leaving it blank should show it to everyone. I put this in there now:
Display advertisements to Usergroups: 1|2|3|4|5|6|7|8|
Do NOT display advertisements to Usergroups: 27

Still no change. Thanks for helping.


All times are GMT. The time now is 05:16 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.03187 seconds
  • Memory Usage 1,773KB
  • 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_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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