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

Reply
 
Thread Tools
Digital Point Ad Positioning Details »»
Digital Point Ad Positioning
Version: 1.00a, by digitalpoint digitalpoint is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.x.x Rating:
Released: 11-26-2010 Last Update: 11-27-2010 Installs: 272
Uses Plugins
 
No support by the author.

About
This allows you to insert an ad into a random location within the post currently being viewed and/or insert an ad after the currently viewed post.

I made this a couple years ago for internal use and decided to release it because a few people have been requesting it.

Installation
  • Install the product-dp_positionads.xml product under AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product
  • Go to AdminCP -> Settings -> Options -> Digital Point Position Ads for all your settings/options.

Notes
  • You can control which usergroups see ads.
  • You can control which forums the ads are inserted for.
  • This addon works just fine with vBulletin 3 as well as vBulletin 4.
  • The ads are inserted relative to the currently viewed post, not necessarily the first/last, etc. post in a thread.
  • Requires no template edits.
  • Our ad revenue more than doubled when we implemented this (and we opted to only use it for non-registered members).

Download Now

File Type: xml product-dp_positionads.xml (7.3 KB, 1771 views)

Show Your Support

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

Comments
  #32  
Old 12-01-2010, 05:25 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by naisho View Post
I wish this mod could accept differents ads according to forum ids.
Well it was never designed to be a full-blown ad delivery system. We *do* happen to have something for that (ability to target specific forums, along with full-blown bidding system for advertisers to bid on ad space), but's it something different... http://advertising.digitalpoint.com/publisher.php
Reply With Quote
  #33  
Old 12-01-2010, 05:42 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post
You could probably just reorder the execution order so the ad positioning one gets triggered before the other.
Thanks ..

I'm not really a programmer, but I assume you're referring to the Execution Order of the plugins for both mods?

If so, both mods are currently a 5, so should I make yours a 4, or something like that?

Regards,
Doug
Reply With Quote
  #34  
Old 12-01-2010, 06:18 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep... try making mine 1 or something even... that way mine goes first and isn't doing anything to non-standard stuff that other plug-ins are injecting into the post.
Reply With Quote
  #35  
Old 12-01-2010, 06:27 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post
Yep... try making mine 1 or something even... that way mine goes first and isn't doing anything to non-standard stuff that other plug-ins are injecting into the post.
I made yours a "1" ...

Doing that caused the "Thanks" to execute properly, but it placed its box under your ad, whereas it's normally tucked up flush under the post...

Since all of its plugins (lots of them) are 5's, should I make yours a 6, which might cause it to put itself under their "Thanks" box?

Thanks again ..

Regards,
Doug

Edit: I did try 6 with ordering your mod, but that blocked out the "Thanks" box, except using 1, which split the "Thanks" box away from the bottom of the post.
Attached Images
File Type: jpg Screen shot 2010-12-01 at 3.25.33 PM.jpg (60.6 KB, 0 views)
Reply With Quote
  #36  
Old 12-01-2010, 06:43 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The ad that my addon inserts isn't necessarily at the end of the post... it inserts it into a random location inside the post (check it with a long post with lots of paragraphs in it to see what I mean). Because of that, there wouldn't really be a way to insert it after the "Thanks" part since it's inserting somewhere random inside the post, not necessarily the end of the post.
Reply With Quote
  #37  
Old 12-01-2010, 06:59 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post
The ad that my addon inserts isn't necessarily at the end of the post... it inserts it into a random location inside the post (check it with a long post with lots of paragraphs in it to see what I mean). Because of that, there wouldn't really be a way to insert it after the "Thanks" part since it's inserting somewhere random inside the post, not necessarily the end of the post.
Ok, I think I understand that but ...

It only happens when I turn ON the Insert Ad After Post part of the mod, not the part that displays inside the ad, which works fine, even with the "Thanks" mod.

Check the pic in my last post and you can see that the ad splits the post when your plugin is set to 1 and overwrites the "Thanks" box (makes it disappear) when set to "5".

Regards,
Doug
Reply With Quote
  #38  
Old 12-01-2010, 07:30 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, I see what you mean now... I was getting confused thinking it was something else. I fixed it for the next version, but for now if you go into the "Insert Inside & After Current Post" plug-in, change this:
Code:
$template_hook['postbit_end'] = $vbulletin->options['dppa_afterpost_html'];
to this:
Code:
$template_hook['postbit_end'] .= $vbulletin->options['dppa_afterpost_html'];
Adding the one period will make it append to vs. overwrite anything else using that template hook location.
Reply With Quote
  #39  
Old 12-01-2010, 08:18 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post
Oh, I see what you mean now... I was getting confused thinking it was something else. I fixed it for the next version, but for now if you go into the "Insert Inside & After Current Post" plug-in, change this:
Code:
$template_hook['postbit_end'] = $vbulletin->options['dppa_afterpost_html'];
to this:
Code:
$template_hook['postbit_end'] .= $vbulletin->options['dppa_afterpost_html'];
Adding the one period will make it append to vs. overwrite anything else using that template hook location.
Worked great !! :up:

All plugins left set to 5 and patching with your method above, conflicts with Abe's "Thanks" mod disappear, using 4.04 ...

Thanks partner ..

Regards,
Doug
Attached Images
File Type: jpg Screen shot 2010-12-01 at 5.17.43 PM.jpg (74.0 KB, 0 views)
Reply With Quote
  #40  
Old 12-02-2010, 08:16 AM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the post only has one paragraph it would always be in the same place. The randomness of it inserts it between paragraphs. It looked terribly weird/awkward when you were splitting between sentences within the same paragraph.
Reply With Quote
  #41  
Old 12-02-2010, 07:33 PM
w3rk3d w3rk3d is offline
 
Join Date: Dec 2005
Location: San Diego, CA, USA
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod is great, but so far doesn't do much more for me than the existing Google AdSense plugin built into vB. In fact I'm seeing conflicts between the two. When the after post option of this mod is enabled, it shows the space for the ad, but no ad actually shows up. Furthermore, it hides the ad at the bottom of the page that was already there for the built-in plugin (again, the space is there, but ad is missing) whether the after post option is enabled or not.

A few suggestions came to mind:
  1. Typically admins would want to show ads to fewer groups. Therefore, switch from "hide from groups" to "show to groups". This might also help solve the secondary group logic issue.
  2. Make the ads show up in and below more than just the first post.
  3. Improve functionality in conjunction with the vB version for Adsense.
The one thing this does beyond the built-in plugin is display an ad for permalinked posts, which is great. I have it installed just for that.

Thanks!
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 12:24 AM.


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.04860 seconds
  • Memory Usage 2,363KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (13)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete