Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB Ad Management 4 Details »»
vB Ad Management 4
Version: 5.00, by RedTyger RedTyger is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.8 Rating:
Released: 11-08-2006 Last Update: 12-12-2007 Installs: 1791
DB Changes Uses Plugins Template Edits Auto-Templates
Additional Files  
No support by the author.


What does it do?

Features include global settings, advertisements allowing template conditionals, ad sharing and ad revenue sharing, timed advertisements, preset popular ad locations and functions such as sponsors, additional custom ad locations, random and static advertisements and its all very easy to use. You can use it for ordinary ads like adsense, banner rotations, or any content at all as well as using it to manage ads outside your forum too.

You can read in more detail about these and other features in the manual, which also contains some helpful notes and instructions, as well as the installation and upgrade instructions



If you are using autoinsertion and were using vB Ad Management before version 4.00, you will need to remove your old template edits or advertisements will appear multiple times. Just reverse the old instructions below.

Quote:
* Find <!-- post $post[postid] popup menu --> and paste $postbit_advertisement above it in your postbit & postbit_legacy templates.
* Paste $forumbit_advertisement at the bottom of your forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates.
* Paste $threadbit_advertisement at the bottom of your threadbit template.
* Paste $footer_advertisement at the top of your footer template.
* Find $spacer_close in your footer template and below it paste $rightcolumn_advertisement.
* Find &nbsp; in your header template and replace it with $header_advertisement.
* Find $spacer_open in your header template and below it paste $leftcolumn_advertisement.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #1152  
Old 06-06-2007, 10:32 AM
RedTyger's Avatar
RedTyger RedTyger is offline
 
Join Date: Nov 2006
Location: UK
Posts: 1,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mik2007 View Post
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 View Post
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 View Post
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 View Post
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.
Reply With Quote
  #1153  
Old 06-06-2007, 10:40 AM
RedTyger's Avatar
RedTyger RedTyger is offline
 
Join Date: Nov 2006
Location: UK
Posts: 1,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #1154  
Old 06-06-2007, 11:40 AM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedTyger View Post
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.
Reply With Quote
  #1155  
Old 06-06-2007, 08:03 PM
Hendrizius's Avatar
Hendrizius Hendrizius is offline
 
Join Date: May 2007
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #1156  
Old 06-07-2007, 09:45 AM
valdet's Avatar
valdet valdet is offline
 
Join Date: Feb 2007
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #1157  
Old 06-07-2007, 09:46 AM
RedTyger's Avatar
RedTyger RedTyger is offline
 
Join Date: Nov 2006
Location: UK
Posts: 1,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #1158  
Old 06-07-2007, 10:27 AM
Tony_FPM Tony_FPM is offline
 
Join Date: Feb 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #1159  
Old 06-07-2007, 10:31 AM
Tony_FPM Tony_FPM is offline
 
Join Date: Feb 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tony_FPM View Post
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.
Reply With Quote
  #1160  
Old 06-07-2007, 12:48 PM
Hendrizius's Avatar
Hendrizius Hendrizius is offline
 
Join Date: May 2007
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks for help
Reply With Quote
  #1161  
Old 06-07-2007, 03:31 PM
hitboy hitboy is offline
 
Join Date: Jan 2007
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.21083 seconds
  • Memory Usage 2,347KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (10)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete