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)

karel1985 06-04-2007 06:24 AM

Quote:

Originally Posted by djbaxter (Post 1259910)
No, that doesn't work.

I found the reason no copyright notice was showing - a missing closing tag above the line.

But now that this bis fixed, I have two copyright notices in the footer link - that's with the new global_start.php version uploaded.

If it helps, the two notices are slightly different:
  1. vB Ad Management by =RedTyger=
  2. vB Ad Management by RedTyger

On my site (www.pc-helpforum.be) sometimes i see 1, sometimes 2 or 3

they are all the same here
vB Ad Management by =RedTyger=
vB Ad Management by =RedTyger=

RedTyger 06-04-2007 10:29 AM

Ok thanks guys, I'll take another whack at it.

djbaxter 06-04-2007 01:12 PM

Quote:

Originally Posted by djbaxter (Post 1259910)
No, that doesn't work.

I found the reason no copyright notice was showing - a missing closing tag above the line.

But now that this bis fixed, I have two copyright notices in the footer link - that's with the new global_start.php version uploaded.

If it helps, the two notices are slightly different:
  1. vB Ad Management by =RedTyger=
  2. vB Ad Management by RedTyger

More information for you RedTyger:

I posted the above on June 2. On June 3, there were three footer links showing. Today, June 4, there are four:

Quote:

vB Ad Management by =RedTyger=
vB Ad Management by RedTyger
vB Ad Management by RedTyger
vB Ad Management by RedTyger
I have changed nothing at all in the interim.

I'm afraid to see how many there will be tomorrow.





Quote:

Originally Posted by Mrdby (Post 1260691)
3.6.7???

Could you do us all a huge favor and stop posting this in every thread you find? Sheesh...

karel1985 06-04-2007 01:16 PM

Quote:

Originally Posted by djbaxter (Post 1260989)
More information for you RedTyger:

I posted the above on June 2. On June 3, there were three footer links showing. Today, June 4, there are four:



I have changed nothing at all in the interim.

I'm afraid to see how many there will be tomorrow.

owww... Lets hope that it will be fixed before the 30st of this month :D

Neal-UK 06-04-2007 01:23 PM

In the meantime, a simple solution to remove all but one of the copyrights, is to go to the general settings of the mod and turn it off, save and turn it back on.

djbaxter 06-04-2007 01:39 PM

Quote:

Originally Posted by Neal-UK (Post 1260995)
In the meantime, a simple solution to remove all but one of the copyrights, is to go to the general settings of the mod and turn it off, save and turn it back on.

I'll be damned... that does work... why? :confused:

dagger77 06-04-2007 07:23 PM

thank you for the great hack

I did all the steps and uploaded the plug in but the ads not showing..
vb 3.6.4
there is no copyright in the footer too. i tried to reinstall it but still not working

any help

Mrdby 06-05-2007 12:27 AM

can i see a live demo??

djbaxter 06-05-2007 12:36 AM

Quote:

Originally Posted by Mrdby (Post 1261413)
can i see a live demo??

Sure. Look at my forum. Can you spot which ads are managed by this add-on and which are not? No, of course not.

That's why there are screen shots. The add-on inserts banners where you want them. Period.

rooney72 06-05-2007 01:00 AM

Sorry to post again. Maybe I was misunderstood.

I'm just to launch vBulletin. I've installed the hacks etc etc and building it up slowly. I even installed vB Ad Management and they feature in the vB options. I have still NO codes because I'm building the skeleton of my forum but I want to launch the forum without editing whilst members are entering. I just want the forum to run smoothly as possible.

1. I need sample codes to test - Example: This is an advert space here banner. ANyone please?

2. Once this code is entered in one of the boxes in vB ad, should the advert space be created immediately?

THANKS

djbaxter 06-05-2007 01:08 AM

Quote:

Originally Posted by rooney72 (Post 1261433)
Sorry to post again. Maybe I was misunderstood.

I'm just to launch vBulletin. I've installed the hacks etc etc and building it up slowly. I even installed vB Ad Management and they feature in the vB options. I have still NO codes because I'm building the skeleton of my forum but I want to launch the forum without editing whilst members are entering. I just want the forum to run smoothly as possible.

1. I need sample codes to test - Example: This is an advert space here banner. ANyone please?

Sure. Try this one:

Code:

<script type="text/javascript"><!--
auctionads_ad_client = "c6bd923edab11c8f4049";
auctionads_ad_campaign = "52b50cdc0f99bc520f7e5a701ebe1d15";
auctionads_ad_width = "468";
auctionads_ad_height = "60";
auctionads_ad_kw =  "self-help, health, education, mental health";
auctionads_color_border =  "CFF8A3";
auctionads_color_bg =  "FFFFFF";
auctionads_color_heading =  "00A0E2";
auctionads_color_text =  "000000";
auctionads_color_link =  "008000";
auctionads_options =  "n";
--></script>
<script type="text/javascript" src="http://ads.auctionads.com/pagead/show_ads.js">
</script>
<br /><font size="1"><a href="http://www.auctionads.com/refer_c6bd923edab11c8f4049">Ads by AuctionAds</a> </font>
<br /><br /><br />

Quote:

Originally Posted by rooney72 (Post 1261433)
2. Once this code is entered in one of the boxes in vB ad, should the advert space be created immediately?

Yes. You may need to refresh your browser page, of course.

rooney72 06-05-2007 01:44 AM

Thanks but not working. Listen do I have to add the above html as suggested by the author?

Quote:

Originally Posted by djbaxter (Post 1261436)
Sure. Try this one:

Code:

<script type="text/javascript"><!--
auctionads_ad_client = "c6bd923edab11c8f4049";
auctionads_ad_campaign = "52b50cdc0f99bc520f7e5a701ebe1d15";
auctionads_ad_width = "468";
auctionads_ad_height = "60";
auctionads_ad_kw =  "self-help, health, education, mental health";
auctionads_color_border =  "CFF8A3";
auctionads_color_bg =  "FFFFFF";
auctionads_color_heading =  "00A0E2";
auctionads_color_text =  "000000";
auctionads_color_link =  "008000";
auctionads_options =  "n";
--></script>
<script type="text/javascript" src="http://ads.auctionads.com/pagead/show_ads.js">
</script>
<br /><font size="1"><a href="http://www.auctionads.com/refer_c6bd923edab11c8f4049">Ads by AuctionAds</a> </font>
<br /><br /><br />



Yes. You may need to refresh your browser page, of course.


Mrdby 06-05-2007 01:55 AM

this thing is to confusing!!

djbaxter 06-05-2007 02:08 AM

Quote:

Originally Posted by rooney72 (Post 1261454)
Thanks but not working. Listen do I have to add the above html as suggested by the author?

Yes, you do.

1. You upload the files and install the product.

2. Then you set the options for which locations you want to insert banners.

3. Then you add the specified code to get those banners to display where yopu want them to be displayed.

One caveat: I may have been doing something wrong myself but I couldn't get the alternating or random banners to work correctly. It does wotk with a single or "static" banner though.

Mrdby 06-05-2007 02:10 AM

Ok lets say i want my ads to show up right under my wol SECTION...whwere do i add the code for that? Sorry..this is confusing.lol

djbaxter 06-05-2007 02:13 AM

Quote:

Originally Posted by Mrdby (Post 1261477)
Ok lets say i want my ads to show up right under my wol SECTION...whwere do i add the code for that? Sorry..this is confusing.lol

Admin CP | Styles and Templates | Template Manager

Common Templates -> Footer

Mrdby 06-05-2007 02:14 AM

yeah..but what code do i ad? like $ads$ I read the read me file..it is still confusing..bare with me..lol

djbaxter 06-05-2007 02:26 AM

Quote:

Originally Posted by Mrdby (Post 1261479)
yeah..but what code do i ad? like $ads$ I read the read me file..it is still confusing..

See the first post:

Quote:

Paste $footer_advertisement at the top of your footer template.
Quote:

Originally Posted by Mrdby (Post 1261479)
bare with me..lol

I don't think so. I'm heterosexual and happily married.

Mrdby 06-05-2007 02:27 AM

Quote:

Originally Posted by djbaxter (Post 1261484)
See the first post:





I don't think so. I'm heterosexual and happily married.

meaning BE PATIENT with me.

djbaxter 06-05-2007 02:29 AM

Quote:

Originally Posted by Mrdby (Post 1261485)
meaning BE PATIENT with me.

I know. It was a joke. I think you meant "bear with me", not "bare with me".

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.

RedTyger 06-06-2007 10:32 AM

Quote:

Originally Posted by mik2007 (Post 1261695)
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 '') . '";');
    }    
}



Try replacing every instance of $vbulletin->options with $this->registry->options and then adding it to the postbit file. It won't work in global_start.php because $post[islastpostshown] is, as you might guess, a postbit conditional and won't work elsewhere.

Quote:

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

The columns are highly unlikely to work with heavily customised skins, it's just not possible to be flexible enough.

Quote:

Originally Posted by The Librarian (Post 1261974)
Upgrading from vBulletin 3.6.4 to 3.6.7 today. Got this error message at the top of my forums:



and I can't login to AdminCP without disabling hooks:



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!

The includes files have either been uploaded incorrectly or to the wrong location. You should be able to find them all by going to your forum's root directory using FTP and they will be in the includes/vb_ad_management folder.

Quote:

Originally Posted by Hendrizius (Post 1262312)
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.

Yes, leaving it blank will give you global display. All I can suggest is that you double check ALL settings (not just the global ones, any others that will apply) especially that you have also enabled that ad section, the option is above where you enter the adcode. And ensure that you're using the style that you made the edits to.

RedTyger 06-06-2007 10:40 AM

I'm temporarily without a test forum and I can see nothing in the backup mod that would cause this, so sorry about the roundabout testing methods. Here's another try at fixing the copyright issue, just download the file and overwrite your existing global_start.php.

Can I suggest that you first try Neal's trick of removing the extra links by disabling then re-enabling the vB Ad Management modification in your Product Manager.

Let me know how it goes.

djbaxter 06-06-2007 11:40 AM

Quote:

Originally Posted by RedTyger (Post 1262430)
Can I suggest that you first try Neal's trick of removing the extra links by disabling then re-enabling the vB Ad Management modification in your Product Manager.

Nick's trick (love that rhyme) does work - but only temporarily. It successfully removed all but one of the credits. The next day (yesterday) there were two credits again. This morning there are three again.

Edit:

I just uploaded the new version of global_start.php and it removed the third credit so I'm back to two.I'll try "Nick's Trick" again and see if Nick's Trick Sticks this time. :)

Hendrizius 06-06-2007 08:03 PM

RedTyger, I still did not get your great Mod to work :(. Could you have a look? I can grant you Admin-access, if you are willing to, please send me a PM.

Thanks in advance,

Hendricius

valdet 06-07-2007 09:45 AM

Hello I am also having teh same problem. Currently running on vb 3.6.7, and I am getting this strange error on top of website.

Quote:

Warning: Unknown(/home/xxxxxxx/public_html/forum/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 86

Warning: Unknown(/home/xxxxxx/public_html/forum/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 86

Warning: (null)() [function.include]: Failed opening '/home/xxxxxx/public_html/forum/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 86

I am using Google Adsense, and I have chosen to display ads only on posts. PM's and Announcements.

Any help is greatly appreciated.

RedTyger 06-07-2007 09:46 AM

You've uploaded the files to the wrong folder, uploaded them in the wrong format or not uploaded them at all.

You should find all the vB Ad Management files included in the zip includes folder at yourforum/includes/vb_ad_management

Tony_FPM 06-07-2007 10:27 AM

Hello all ,.

Can somebody please tell me what i am doing wrong...
I am trying to get this banner in my header but it inst working:

Quote:

<a href=""><img src="http://www.freakpyromaniacs.com/images/banners/aansteker.gif"
align="center"></a>
But this one is working :
Quote:

<a href=""><img src="http://www.davesite.com/graphx/davesmll.gif" align="center"></a>
I have tried some other banners on my server to but none are showing...

Thanks in advance
Tony

Tony_FPM 06-07-2007 10:31 AM

Quote:

Originally Posted by Tony_FPM (Post 1263120)
Hello all ,.

Can somebody please tell me what i am doing wrong...
I am trying to get this banner in my header but it inst working:



But this one is working :


I have tried some other banners on my server to but none are showing...

Thanks in advance
Tony


Well i found it myself.
Somehow it doenst accept the map banners. When i put the banners in the images map it all start working.

Thanks for this great hack.

Hendrizius 06-07-2007 12:48 PM

RedTyger, could you have a look into my Forum Ad Management Mod? I can pm you access.

Thanks for help

hitboy 06-07-2007 03:31 PM

this doesnt seem to work for me either i am getting this error below which doesnt make sense because I have put the files in /include and even tried to make a new folder /includes and both dont seem to work:
Also it seems that VB is looking for the global.php it doesnt exsist though can you please tell me why this is happening?

Warning: Unknown(/home/klsite/domains/dexurl.com/public_html/forums/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 43

Warning: Unknown(/home/klsite/domains/dexurl.com/public_html/forums/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 43

Warning: (null)() [function.include]: Failed opening '/home/klsite/domains/dexurl.com/public_html/forums/includes/vb_ad_management/cache_templates.php' for inclusion (include_path='.:/usr/local/lib/php') in /global.php(341) : eval()'d code on line 43


All times are GMT. The time now is 06:42 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.03265 seconds
  • Memory Usage 1,928KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (33)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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