The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Digital Point Ad Positioning Details »» | |||||||||||||||||||||||||||
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
Notes
Download Now
Show Your Support
|
15 благодарности(ей) от: | ||
Adrijan, flash84, iiioroh, magnumclub, mapleleaffans, mjda, MysteriousSoul, naveeid, Pocket Aces, Prorockz, ronitdeep, SaN-DeeP, sivaganeshk |
Comments |
#22
|
|||
|
|||
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. |
#23
|
||||
|
||||
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...
|
#24
|
|||
|
|||
Good stuff Shawn
|
#25
|
|||
|
|||
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? 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. |
#26
|
||||
|
||||
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?
|
#27
|
|||
|
|||
Quote:
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:
Thanks for your help ... Regards, Badger |
#28
|
|||
|
|||
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'])) && Code:
if ($vbulletin->options['dppa_insidepost'] && is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['dppa_insidepost_hidegroups'])) && I wish this mod could accept differents ads according to forum ids. |
#29
|
|||
|
|||
Quote:
Made your edit changes in both places and the mod now works perfectly for us.... :up: Regards, Doug |
#30
|
|||
|
|||
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. |
#31
|
||||
|
||||
Quote:
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|