vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - vB Ad Management (https://vborg.vbsupport.ru/showthread.php?t=203948)

Deyth 03-06-2009 01:28 AM

If the ad refresh is enabled, does each refresh count as a new ad impression?

morrow 03-06-2009 03:34 PM

Just when I thought everything was working perfect...

On my photopost pages and reveiwpost pages; The ads display but then after 5-10 seconds or so, I receive the following:

Photopost:
Quote:

Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/njfly/public_html/photopost/ajax.php on line 37

Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/njfly/public_html/photopost/ajax.php on line 37
Reviewpost:
Quote:

Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/njfly/public_html/reviewpost/ajax.php on line 37

Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/njfly/public_html/reviewpost/ajax.php on line 37
I remember receiving the same error message a few months ago and posting about it on the photopost site. They said it's not their problem.

Any ideas?

a squared 03-06-2009 09:59 PM

I've tried adding a banner in a particular forum with the following code. And I get nothing. What have I missed?

Code:

<if condition="in_array($forum, array(39))">
<br />
<a href="http://www.example.com" target="_blank"><img src="images/banners/large/example.gif" alt="example" border="0"></a>
<br /><br />
</if>


RedTyger 03-06-2009 10:39 PM

Quote:

Originally Posted by morrow (Post 1761375)
A few requests... Any way to display an ad if a certain keyword is entered?

I'm afraid not. That's a whole different ballgame really.

The other thing is... I'm receiving page errors (vb3.8) (vbam_ajax is undefined) but only if google ads are being displayed. I'm using phpads or openads and those dont seem to have this issue.[/QUOTE]

Page errors as in on the actual page? Or a pop-up javascript error? If the latter, make sure you have the latest javascript files uploaded, they changed in the latest version. Otherwise I need to see the whole message.

Quote:

Originally Posted by Deyth (Post 1761496)
If the ad refresh is enabled, does each refresh count as a new ad impression?

It's just the same as a page load, so unless they have something to detect differences it almost certainly will do.

Quote:

Originally Posted by morrow (Post 1761849)
Just when I thought everything was working perfect...

Does it say anything further in your server logs?

Quote:

Originally Posted by a squared (Post 1762081)
I've tried adding a banner in a particular forum with the following code. And I get nothing. What have I missed?

Code:

<if condition="in_array($forum, array(39))">
<br />
<a href="http://www.example.com" target="_blank"><img src="images/banners/large/example.gif" alt="example" border="0"></a>
<br /><br />
</if>


Try changin $forum to $foruminfo[forumid]

RedTyger 03-06-2009 10:54 PM

Quote:

Originally Posted by testbot (Post 1761227)
just an fyi, every time i enable this mod my cpu goes from 0.98 or so to 2.8+ ;)

Hmmmm. I was told this was much more efficient than the others, although that was an earlier version. Is there any obvious pattern or cause? Or does it leap simply when it's turned on doing nothing?

Quote:

Originally Posted by paintballer.ie (Post 1761246)
Does this track clicks or provide any stastics?

Thanks

No stats. There's no way any modification is going to be able to do anything remotely as good as a third party tracking system, I'm not even going to try. It wouldn't be in anyone's best interest. Look into Google Analytics or something similar.

a squared 03-07-2009 01:24 AM

RedTyger, thanks for the quick reply.

Tried your suggestion and no change.



Quote:

Originally Posted by RedTyger (Post 1762098)
Try changin $forum to $foruminfo[forumid]


Quote:

Originally Posted by a squared (Post 1762081)
I've tried adding a banner in a particular forum with the following code. And I get nothing. What have I missed?

Code:

<if condition="in_array($forum, array(39))">
<br />
<a href="http://www.example.com" target="_blank"><img src="images/banners/large/example.gif" alt="example" border="0"></a>
<br /><br />
</if>



morrow 03-07-2009 01:43 AM

Quote:

Originally Posted by RedTyger (Post 1762098)
Page errors as in on the actual page? Or a pop-up javascript error? If the latter, make sure you have the latest javascript files uploaded, they changed in the latest version. Otherwise I need to see the whole message.

Does it say anything further in your server logs?

These errors appear on the main page, not in a popup window. Here's a clip from my server log.

Quote:

[Fri Mar 06 20:59:59 2009] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/njfly/public_html/reviewpost/ajax.php on line 37, referer: http://www.njflyfishing.com/reviewpost/index.php
[Fri Mar 06 20:59:59 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: require_once(./global.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/njfly/public_html/reviewpost/ajax.php on line 37, referer: http://www.njflyfishing.com/reviewpost/index.php
[Fri Mar 06 20:59:48 2009] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/njfly/public_html/reviewpost/ajax.php on line 37, referer: http://www.njflyfishing.com/reviewpost/index.php
[Fri Mar 06 20:59:48 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: require_once(./global.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/njfly/public_html/reviewpost/ajax.php on line 37, referer: http://www.njflyfishing.com/reviewpost/index.php
[Fri Mar 06 20:59:37 2009] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/njfly/public_html/reviewpost/ajax.php on line 37, referer: http://www.njflyfishing.com/reviewpost/index.php
[Fri Mar 06 20:59:37 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: require_once(./global.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/njfly/public_html/reviewpost/ajax.php on line 37, referer: http://www.njflyfishing.com/reviewpost/index.php
[Fri Mar 06 20:59:26 2009] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/njfly/public_html/reviewpost/ajax.php on line 37, referer: http://www.njflyfishing.com/reviewpost/index.php
[Fri Mar 06 20:59:26 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: require_once(./global.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/njfly/public_html/reviewpost/ajax.php on line 37, referer: http://www.njflyfishing.com/reviewpost/index.php
[Fri Mar 06 20:59:15 2009] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/njfly/public_html/reviewpost/ajax.php on line 37, referer: http://www.njflyfishing.com/reviewpost/index.php
[Fri Mar 06 20:59:15 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: require_once(./global.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/njfly/public_html/reviewpost/ajax.php on line 37, referer: http://www.njflyfishing.com/reviewpost/index.php
[Fri Mar 06 20:59:04 2009] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/njfly/public_html/reviewpost/ajax.php on line 37, referer: http://www.njflyfishing.com/reviewpost/index.php
[Fri Mar 06 20:59:04 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: require_once(./global.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/njfly/public_html/reviewpost/ajax.php on line 37, referer: http://www.njflyfishing.com/reviewpost/index.php
You can see the error here (http://www.njflyfishing.com/reviewpost/index.php). Open the link, count to 10 and the error will display in place of the banner.

EDIT: I'd also like to point out that this seems to happen when the ad goes to refresh. If I increase the time to refresh than the error happens but take a while longer.

Thanks again.

RedTyger 03-07-2009 11:28 AM

Quote:

Originally Posted by a squared (Post 1762189)
RedTyger, thanks for the quick reply.

Tried your suggestion and no change.

What adcode block is this going in?

Quote:

Originally Posted by morrow (Post 1762193)
I'd also like to point out that this seems to happen when the ad goes to refresh. If I increase the time to refresh than the error happens but take a while longer.

Thanks again.

It looks like my modification is conflicting with something in the reviewpost/photopost code, although I can't imagine how. I'd need to see a copy of the code.

There is some good news; using the refresh is against the Adsense TOS. So I'd stop using it right away if I were you.

a squared 03-07-2009 01:54 PM

It's in Navbar. Without the conditional it works fine. Of course it shows throughout the forum. I'm surprised it hasn't worked. On my live site I've hardcoded conditionals into the Navbar template using this code.

Code:

<if condition="$forumid == 39">
<br /><center>
<a href="http://www.example.com" target="_blank">
<img src="images/example.gif" alt="example" border="0">
</a>
</center><br /><br />
</if>


Quote:

Originally Posted by RedTyger (Post 1762413)
What adcode block is this going in?


morrow 03-07-2009 02:28 PM

Quote:

Originally Posted by RedTyger (Post 1762413)
What adcode block is this going in?



It looks like my modification is conflicting with something in the reviewpost/photopost code, although I can't imagine how. I'd need to see a copy of the code.

There is some good news; using the refresh is against the Adsense TOS. So I'd stop using it right away if I were you.

I didn't realize that, I'll turn it off now!

Again, I love this modification.


All times are GMT. The time now is 09:13 AM.

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