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
  #112  
Old 06-08-2011, 01:01 AM
Dirt Bike Addict's Avatar
Dirt Bike Addict Dirt Bike Addict is offline
 
Join Date: Apr 2010
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post
I don't think there is a way to be honest since internally there's nothing that tells us what post is actually being viewed.
PHP is over my head, but some time ago I asked Brian (from vBSEO) about this and he suggested using the $firstnew variable. If that means anything to you guys.
Reply With Quote
  #113  
Old 06-08-2011, 04:48 AM
android-schweiz android-schweiz is offline
 
Join Date: Nov 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post
It has to do with putting an ad in the post actually being viewed. With vBSEO, it doesn't know which post is being viewed, so it just falls back to adding it to the first post (not necessarily the one actually being viewed).
hmm. But why not reading and parsing the URl with parse_url ( string $url [, int $component = -1 ] )

There you get an assoc. Array and one Field in it is called 'fragment'. This contains everything after the anchor # sign. --> http://www.php.net/manual/en/function.parse-url.php

Or if this is not working, with some JS (AJAX)?

I'm really willing to pay for your work. We need it urgently working with vbseo

Cheers and thanks, tom
Reply With Quote
  #114  
Old 06-08-2011, 06:29 AM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

parse_url() will parse the fragment out of the URL you pass to it, but the problem is we don't have the URL with the fragment to begin with. A web browser doesn't send anything after the hash to the web server, so the web server doesn't know what it is (or if the browser even has one in it's URL).
Reply With Quote
  #115  
Old 06-08-2011, 04:04 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post
It has to do with putting an ad in the post actually being viewed. With vBSEO, it doesn't know which post is being viewed, so it just falls back to adding it to the first post (not necessarily the one actually being viewed).
IDK but it works exactly like it should on the vbseo boards I've added it to.
If you click "new post" thus going to the last post of the thread, the ad is in that post (the one you're viewing)

I've not done anything special other than follow the install instructions and it's working like advertised

hmm.. at least it was working correctly :|
Reply With Quote
  #116  
Old 06-08-2011, 04:19 PM
Dirt Bike Addict's Avatar
Dirt Bike Addict Dirt Bike Addict is offline
 
Join Date: Apr 2010
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brandon Sheley View Post
IDK but it works exactly like it should on the vbseo boards I've added it to.
If you click "new post" thus going to the last post of the thread, the ad is in that post (the one you're viewing)

I've not done anything special other than follow the install instructions and it's working like advertised

hmm.. at least it was working correctly :|
If you're referring to the General Forums, it isn't working for me.

DP had sent me an "updated" version awhile ago to try with vBSEO, but unfortunately it still didn't work, even on a stock vB (with vBSEO installed of course).
Reply With Quote
  #117  
Old 06-08-2011, 04:21 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ya I was talking about GF, and it was working correctly when I first installed it

Maybe the last vb/vbseo update broke it, but it would show ads in post #118 if your browser was looking at that particular post.
Reply With Quote
  #118  
Old 06-08-2011, 04:34 PM
Dirt Bike Addict's Avatar
Dirt Bike Addict Dirt Bike Addict is offline
 
Join Date: Apr 2010
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brandon Sheley View Post
ya I was talking about GF, and it was working correctly when I first installed it

Maybe the last vb/vbseo update broke it, but it would show ads in post #118 if your browser was looking at that particular post.
I've only tried it on vBSEO 3.6
Reply With Quote
  #119  
Old 06-09-2011, 03:34 AM
android-schweiz android-schweiz is offline
 
Join Date: Nov 2010
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Damn. I mean. It's such a perfect peace of Mod. But useless for all of us which are using vbseo
Reply With Quote
  #120  
Old 06-09-2011, 07:55 PM
baghdad4ever baghdad4ever is offline
 
Join Date: Apr 2007
Location: baghdad
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by IndigoSociety View Post

Code:
if (STYLEID!=14){

// plugin code 

}
hi

how to disable it in 3 style?

i tried

if (STYLEID!=14,16)

but not work
Reply With Quote
  #121  
Old 07-27-2011, 07:03 PM
cnrr cnrr is offline
 
Join Date: Feb 2011
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi shawn,

how can i disable this addon on the private forums and private messages?

because adsense bot couldn't access this pages.
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:46 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.04942 seconds
  • Memory Usage 2,351KB
  • 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
  • (1)bbcode_code
  • (6)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
  • (1)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