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)

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 03:18 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.01188 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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