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)

Valerio 03-29-2011 02:51 PM

Shawn

is not possible to make it to reconize the

#post1234

instead of the p parameter? at the end is the same value!

digitalpoint 03-29-2011 04:21 PM

Nope, the hash portion of the URL isn't seen by the server/PHP.

Valerio 03-29-2011 08:46 PM

thank you

valdet 03-30-2011 08:07 AM

Hi Shawn,
Is there a way to include a simple plugin code $second[$banners] inside your plugin

I have this plugin which pulls random image banners and places them on "bottom of second" and "second from bottom" posts.

My plugin uses the mt_rand function. Inside your plugin, I tried replacing $vbulletin->options[ 'dppa_insidepost_html' ] with my code $second[$banners], but nothing showed up.Is vBSEO a cause for this as well.

Thank you.

digitalpoint 03-30-2011 08:29 AM

No, sorry... it's designed to output literally what you enter. It's HTML, not PHP code, so... you could of course make a random banner disable based on JavaScript you put into the ad HTML, but you would still need to write the JS code of course.

Mycologist 04-04-2011 09:59 PM

Is there a way to stop "Ad After Post" in private messages?

digitalpoint 04-04-2011 10:43 PM

No... it's intentional. Although, I suppose you could add some logic to the plug-in that doesn't do it if THIS_SCRIPT == 'private'...

IndigoSociety 04-04-2011 11:14 PM

Is there a way to create a condition so it only shows a leaderboard if it's a guest (after the post) otherwise show a link unit (after the post).

This is how Digitalpoint does it...

digitalpoint 04-05-2011 12:17 AM

Yeah, just set the setting that controls which usergroups see it.

IndigoSociety 04-05-2011 12:54 AM

Quote:

Originally Posted by digitalpoint (Post 2180947)
Yeah, just set the setting that controls which usergroups see it.

No my point is show something different for one usergroup vs another. Leaderboard for unregistered, link ads for registered. All i see in plugin is just show to x,y,z usergroup...

IndigoSociety 04-05-2011 01:05 AM

I'm noticing this causing the iPhone optimized browser style supported by vBulletin to function incorrectly when viewing a thread.

Could you possibly look into this?

It never finishes loading and only shows the ad from the first post...

I'm guessing what happens is that the plugin screws up with the rendering so it only ends up rendering the ad instead of the whole thread.

It needs to disable itself if vBulletin is rendering in mobile mode.

Style & Language Settings > Default Style for Modern Mobile Browsers > "Mobile Style"

Is there a way to add a condition in the plugin to see if this is turned on, and if it is, to disable the plugin functionality?

*Ended up using the following code*:

in the after hook

Code:

if (STYLEID!=14){

// plugin code

}

Having issues with "Post Thanks" compatibility now...

** edit fixed both of those things.

Can you add a FAQ in this thread to help others with this potential issues? Thanks!

Dirt Bike Addict 04-06-2011 01:20 PM

Quote:

Originally Posted by IndigoSociety (Post 2180960)
No my point is show something different for one usergroup vs another. Leaderboard for unregistered, link ads for registered. All i see in plugin is just show to x,y,z usergroup...

I'm pretty sure that the vb:if conditions would work here.
https://vborg.vbsupport.ru/showthread.php?t=231525

IndigoSociety 04-07-2011 12:32 AM

Quote:

Originally Posted by Dirt Bike Addict (Post 2181529)
I'm pretty sure that the vb:if conditions would work here.
https://vborg.vbsupport.ru/showthread.php?t=231525

I tried that and it didn't work :(

Dirt Bike Addict 04-07-2011 12:45 AM

Quote:

Originally Posted by IndigoSociety (Post 2181746)
I tried that and it didn't work :(

What did you paste in there?

speedway 04-13-2011 03:55 AM

Shawn

I noticed you mentioned this *should* work on VB3 as well as VB4..... Can I then assume I can add this product to my VB3 forum without problems? I would like to test this out before upgrading to VB4 next week as it could solve a problem I have with vBulletin removing a bunch of ad positions.....

Cheers
Bruce (racedirector on DP)

digitalpoint 04-13-2011 08:41 PM

Should work fine with vB3 too.

prandah 04-23-2011 11:39 AM

hello,

how to install this plugin for 2 plugin

so, on my forum have 2 plugin with same product ?
can you help me ?

digitalpoint 04-23-2011 04:29 PM

No idea what you are talking about, sorry...

Hendrizius 05-07-2011 04:15 PM

Best mod ever. Really rocks. Thanks!

excessive34 05-09-2011 06:54 AM

Why are the ads being shown in the center of large posts, shouldn't it be after the text?

stator 05-10-2011 09:41 AM

Now I am using the vbulletin native "Thread 1st-post" ad position.
Do I have to disable it OR it can be used concurrently with this mod.?

2nd.Q. What possible ad format to be used efficiently via this mod ?

3rd.Q. Being the ads displayed in or after PM, Can this be against Google's Terms and Conditions?

Thanks for you for sharing us your effort.

digitalpoint 05-10-2011 06:25 PM

I haven't tried using it with the default ad spots, but it should work fine. I don't see any reason it wouldn't.

You can use any ad format you want since it's just HTML based (or JavaScript).

Not sure on Google's TOS, but I haven't heard of any issues with displaying ads on a page with a PM... global ads would display there too.

stator 05-10-2011 06:33 PM

Quote:

Originally Posted by digitalpoint (Post 2194145)
You can use any ad format you want since it's just HTML based (or JavaScript).

Thanks for your reply,
I mean adsense ad formats (Sizes)

excessive34 05-10-2011 06:52 PM

Digital Point, is there a way to set the ads to only display after the post text and not in a random location?

digitalpoint 05-10-2011 07:09 PM

stator - it can be any size you want.

excessive34 - no, sorry... that's the whole point of the addon really, so disabling exactly what it's designed to do seems kind of a waste. :)

android-schweiz 06-07-2011 06:01 PM

Hello

how much do we have to pay that you make your mod working with vbseo?

cheers, tom

Dirt Bike Addict 06-07-2011 06:16 PM

Quote:

Originally Posted by android-schweiz (Post 2204692)
Hello

how much do we have to pay that you make your mod working with vbseo?

cheers, tom

I've been bugging him for a couple months now, even offered a 6 pack of beer. http://www.vbulletin.com/forum/asset...7&d=1295907312

digitalpoint 06-07-2011 06:45 PM

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.

Brandon Sheley 06-07-2011 07:18 PM

It worked fine for me on a vbseo'd forum..
What's the problem?

digitalpoint 06-07-2011 11:33 PM

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).

Dirt Bike Addict 06-08-2011 01:01 AM

Quote:

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

android-schweiz 06-08-2011 04:48 AM

Quote:

Originally Posted by digitalpoint (Post 2204820)
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 :D

Cheers and thanks, tom

digitalpoint 06-08-2011 06:29 AM

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).

Brandon Sheley 06-08-2011 04:04 PM

Quote:

Originally Posted by digitalpoint (Post 2204820)
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 :p

hmm.. at least it was working correctly :|

Dirt Bike Addict 06-08-2011 04:19 PM

Quote:

Originally Posted by Brandon Sheley (Post 2205117)
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 :p

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).

Brandon Sheley 06-08-2011 04:21 PM

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.

Dirt Bike Addict 06-08-2011 04:34 PM

Quote:

Originally Posted by Brandon Sheley (Post 2205122)
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

android-schweiz 06-09-2011 03:34 AM

Damn. I mean. It's such a perfect peace of Mod. But useless for all of us which are using vbseo :(

baghdad4ever 06-09-2011 07:55 PM

Quote:

Originally Posted by IndigoSociety (Post 2180963)

Code:

if (STYLEID!=14){

// plugin code

}


hi

how to disable it in 3 style?

i tried

if (STYLEID!=14,16)

but not work

cnrr 07-27-2011 07:03 PM

hi shawn,

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

because adsense bot couldn't access this pages.


All times are GMT. The time now is 01:04 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.01646 seconds
  • Memory Usage 1,824KB
  • 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
  • (2)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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