vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Digital Point Ad Positioning (https://vborg.vbsupport.ru/showthread.php?t=254332)

digitalpoint 11-26-2010 10:00 PM

Digital Point Ad Positioning
 
1 Attachment(s)
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).

vividbreeze 11-27-2010 08:39 PM

Great mod!

preemz10314 11-27-2010 09:00 PM

im on 4.7 and trying to use clicksor...doesnt seem to work? but also i just signed up with clicksor/..any tips?

preemz10314 11-27-2010 09:01 PM

nevermind it works..forgot to click yes...hey man
thanks for this...

davidg 11-27-2010 09:08 PM

how can i hide this from users Advertising positioning by Digital Point?

preemz10314 11-27-2010 09:33 PM

Quote:

Originally Posted by davidg (Post 2126496)
how can i hide this from users Advertising positioning by Digital Point?

I marked as installed...man great mod here. But i was also wondering how to remove it.. I will gladly donate a doller or two.. this makes life so simple..

davidg 11-27-2010 09:38 PM

maybe in next version people can decide to shoow this or not :-) i m uninstalling this and waiting for next update :-)

M@rc 11-28-2010 12:07 AM

Great mod. Tagged and marked as installed.

munnakv 11-28-2010 12:09 AM

Wow. Thanks Shawn. I was looking to have this for ages.

Taurus1 11-28-2010 12:12 AM

Thanks for this. Works great!

cloferba 11-28-2010 02:24 AM

sorry but i cant exactly that does it does

munnakv 11-28-2010 07:07 AM

Uninstalled. Just noted that it introduced a sitewide link pointing to your forum. Not really worth the link. You should actually mention this in your first post.

Kolbi 11-28-2010 09:22 AM

I have some issues with this mod. I only shows the ad after the first post?
Perhaps a vbseo setting kills this function?

digitalpoint 11-28-2010 05:42 PM

Quote:

Originally Posted by munnakv (Post 2126616)
Uninstalled. Just noted that it introduced a sitewide link pointing to your forum. Not really worth the link. You should actually mention this in your first post.

Oops, I forgot I removed a bunch of stuff before I wrapped it up as a release. The intent was for it to only show attribution on pages that use it. The updated version fixed it.

Quote:

Originally Posted by Kolbi (Post 2126651)
I have some issues with this mod. I only shows the ad after the first post?
Perhaps a vbseo setting kills this function?

Not sure... does it work as expected if you disable vBSEO? I don't use vBSEO myself, so I can't check.

Kolbi 11-28-2010 06:30 PM

Quote:

Originally Posted by digitalpoint (Post 2126787)
Not sure... does it work as expected if you disable vBSEO? I don't use vBSEO myself, so I can't check.

I guess this option in vBSEO causes the issue:
Quote:

Replace post number link with Permalink
Will replace individual showpost links with the "Permalink" link. Note: Posts will no longer be accessible individually.
Damn :)

djr 11-29-2010 01:22 AM

Works fine with vbSEO (and vB 3.8.6). You just have to wait a couple of minutes (approx. 15-20 mins.) until the ads show up.
Thanks Shawn, installed!

onehost 11-29-2010 02:39 AM

Digi,

Would be nice if you added banner rotation...

lets say I want to rotate 10-20 banners rather then just showing
the same old banner over and over...

is this possible?

Thanks

digitalpoint 11-29-2010 02:42 AM

Quote:

Originally Posted by onehost (Post 2126991)
Digi,

Would be nice if you added banner rotation...

lets say I want to rotate 10-20 banners rather then just showing
the same old banner over and over...

is this possible?

Thanks

Something like that is really outside the scope of what this little addon is for. It's not a full blown ad serving system. If you are looking for something like that, you might want to check out: http://advertising.digitalpoint.com/publisher.php it allows advertisers on your site to do it all themselves (target areas of your site, bid on CPM/CPC costs, etc.)

Kolbi 11-29-2010 09:35 AM

Quote:

Originally Posted by djr (Post 2126962)
Works fine with vbSEO (and vB 3.8.6). You just have to wait a couple of minutes (approx. 15-20 mins.) until the ads show up.
Thanks Shawn, installed!

Do you have the option: "Replace post number link with Permalink" in vBSEO enabled?

djr 11-29-2010 10:20 PM

Quote:

Originally Posted by Kolbi (Post 2127072)
Do you have the option: "Replace post number link with Permalink" in vBSEO enabled?

Yes, I have. No issues. You're welcome to see for yourself.

Kolbi 11-30-2010 05:24 AM

Well, you have the same issue :)

The ads are only shown after/in the first post.

But this mod should show the ads at the active post you are watching.
For example if you want to view the latest post in a thread the ads are after and in the latest post and not in the first post of the thread.

digitalpoint 11-30-2010 06:10 AM

Yeah, if your setup doesn't use the p= parameter, there's no way for the script to know which post you are looking at. Since the #post12345 isn't seen on the server-side, so...

LbR 11-30-2010 06:38 AM

Good stuff Shawn :)

BadgerDog 12-01-2010 04:03 AM

Installed on 4.04 with thanks ... :)

However, I don't see an ad show up after the post being viewed after we've set up the mod? :confused:

When you set the group that it DOES NOT display for, is this ONLY the Primary Group? In other words if a member belongs to secondary groups as well, will the mod only check the Primary Group to decide whether to display an ad or not?

Thanks ...

Regards,
Badger

Edit: Did some testing and discovered that it reads all user groups, including secondary ones, which causes a "logic" conflict when trying to exclude certain groups for us. It would work for us if if it only read the Primary Group as a means test for DO NOT DISPLAY ads.

digitalpoint 12-01-2010 08:51 AM

It's using the normal is_member_of() function built into vBulletin which does factor in secondary groups... But I'm not sure how that would cause conflicts... if someone is a member of group A, and then a secondary member of group B, and you wanted to hide ads from group B, you wouldn't want to hide ads from that member?

BadgerDog 12-01-2010 09:42 AM

Quote:

Originally Posted by digitalpoint (Post 2127844)
It's using the normal is_member_of() function built into vBulletin which does factor in secondary groups... But I'm not sure how that would cause conflicts... if someone is a member of group A, and then a secondary member of group B, and you wanted to hide ads from group B, you wouldn't want to hide ads from that member?

Thanks for the reply ... :)

I think it's the NOT a member of logic which is exclusive as opposed to an INCLUDE logic that causes our problems.

We only want ads to display for Primary Usergroup ID's 1,2,3,4,6,13:

Currently we use code like this for our ads and it works fine:

Quote:

<vb:if condition="is_member_of($bbuserinfo,1,2,3,4,6,13)" >
<center><script type="text/javascript"><!--
google_ad_client = "pub-99999999999999999"";
/* 728x90, created 1/4/10 */
google_ad_slot = "xxxxxxxxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
</vb:if>
I even tried to leave our own include condition shown above in the ad HTML and leave your NOT include field blank, but it still showed ads for incorrect groups, so I'm not sure what I'm doing wrong. Shouldn't this latter approach effectively negated your field and used what we put in with the ad code as groups, since your field was blank and we would only show the ad if it met our own "is_member_of($bbuserinfo,1,2,3,4,6,13)" condition?

Thanks for your help ... :)

Regards,
Badger

naisho 12-01-2010 11:57 AM

Very good mod! Just installed on vB 4.1.

I agree with you BadgerDog about the logic.

"Show if member of" is easier to understand than "hide (not show) if is not member of", though result is identical, I guess.

You can edit the xml file to do that. Find this line (n?31):

Code:

if ($vbulletin->options['dppa_insidepost'] && !is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['dppa_insidepost_hidegroups'])) &&
Modify like this:

Code:

if ($vbulletin->options['dppa_insidepost'] && is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['dppa_insidepost_hidegroups'])) &&
This is for the insidepost. You can do the same for the afterpost. And modify the phrases in the same file ("hide" --> "show"). and re-install the product.

I wish this mod could accept differents ads according to forum ids.

BadgerDog 12-01-2010 01:52 PM

Quote:

Originally Posted by naisho (Post 2127892)
Very good mod! Just installed on vB 4.1.

I agree with you BadgerDog about the logic.

"Show if member of" is easier to understand than "hide (not show) if is not member of", though result is identical, I guess.

You can edit the xml file to do that.

Thank you very much naisho ... appreciate you having a look at it ... :)

Made your edit changes in both places and the mod now works perfectly for us.... :up:

Regards,
Doug

BadgerDog 12-01-2010 02:22 PM

Follow up ...

For those of you running this vb4 [AJAX] Post Thank You Hack mod by Abe ...

https://vborg.vbsupport.ru/showthread.php?t=231666

There's a conflict when this mod puts it's ad as the last post. You can click the "Thanks" button but instead of the "Thanks" box appearing with your name pushing the ad down placed there by digitalpoint's mod and the "Thanks" button disappearing, all that happens is the "Thanks" button disappears as it should, but the screen jumps to the TOP of the thread.

If you scroll back down to where the ad is, you'll see that the "Thanks" button is gone, but there's no "Thanks" box with your name. The "Thanks" action did happen though and if you turn OFF the Insert Ad After Post of this ad and view the same post the "Thanks" box is there with your name but of course, the Insert Ad After Post ad which appeared after it is gone because you've turned OFF that part of this mod.

This problem seems to only happen when the post is the last one in the thread, at least that's what I think right now, since it doesn't happen when it places the ad after the first post, as an example.

Hope this helps others .... :)

Regards,
Doug

Edit: I was wrong ... this conflict exists regardless of what post the Insert Ad After Post element of this mod places the ad. It needs to be turned OFF if you're going to use it with Abe's mod. The place INSIDE ad part works terrific for us, particularly using naisho's edits to reverse the UserGroup ID connotation from being EXCLUDED to ONLY THESE GROUPs.

digitalpoint 12-01-2010 05:22 PM

Quote:

Originally Posted by naisho (Post 2127892)
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

Quote:

Originally Posted by BadgerDog (Post 2127941)
Follow up ...

For those of you running this vb4 [AJAX] Post Thank You Hack mod by Abe ...

https://vborg.vbsupport.ru/showthread.php?t=231666

There's a conflict when this mod puts it's ad as the last post. You can click the "Thanks" button but instead of the "Thanks" box appearing with your name pushing the ad down placed there by digitalpoint's mod and the "Thanks" button disappearing, all that happens is the "Thanks" button disappears as it should, but the screen jumps to the TOP of the thread.

If you scroll back down to where the ad is, you'll see that the "Thanks" button is gone, but there's no "Thanks" box with your name. The "Thanks" action did happen though and if you turn OFF the Insert Ad After Post of this ad and view the same post the "Thanks" box is there with your name but of course, the Insert Ad After Post ad which appeared after it is gone because you've turned OFF that part of this mod.

This problem seems to only happen when the post is the last one in the thread, at least that's what I think right now, since it doesn't happen when it places the ad after the first post, as an example.

Hope this helps others .... :)

Regards,
Doug

Edit: I was wrong ... this conflict exists regardless of what post the Insert Ad After Post element of this mod places the ad. It needs to be turned OFF if you're going to use it with Abe's mod. The place INSIDE ad part works terrific for us, particularly using naisho's edits to reverse the UserGroup ID connotation from being EXCLUDED to ONLY THESE GROUPs.

You could probably just reorder the execution order so the ad positioning one gets triggered before the other.

digitalpoint 12-01-2010 05:25 PM

Quote:

Originally Posted by naisho (Post 2127892)
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

BadgerDog 12-01-2010 05:42 PM

Quote:

Originally Posted by digitalpoint (Post 2128033)
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

digitalpoint 12-01-2010 06:18 PM

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.

BadgerDog 12-01-2010 06:27 PM

1 Attachment(s)
Quote:

Originally Posted by digitalpoint (Post 2128056)
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? :confused:

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.

digitalpoint 12-01-2010 06:43 PM

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.

BadgerDog 12-01-2010 06:59 PM

Quote:

Originally Posted by digitalpoint (Post 2128066)
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

digitalpoint 12-01-2010 07:30 PM

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.

BadgerDog 12-01-2010 08:18 PM

1 Attachment(s)
Quote:

Originally Posted by digitalpoint (Post 2128085)
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

digitalpoint 12-02-2010 08:16 AM

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.

w3rk3d 12-02-2010 07:33 PM

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!


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

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.01496 seconds
  • Memory Usage 1,852KB
  • 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
  • (6)bbcode_code_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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