Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 10-25-2013, 02:24 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, if I view the html source of the page you linked to above, and search for 'data-zone="ron" data-format="300x250"', I find it once, but occasionally I'll find it twice. So it kind of seems to me like it might be working, but I don't see any ads at all on that page.

Edit: Also (possibly related), when I look at the JS console I see this:

Code:
[11:25:24.433] ReferenceError: GS_googleAddAdSenseService is not defined @ http://access-programmers.co.uk/forums/showthread.php?p=1301767&mode=linear#post1301767:59
[11:25:24.433] ReferenceError: GA_googleAddSlot is not defined @ http://access-programmers.co.uk/forums/showthread.php?p=1301767&mode=linear#post1301767:63
[11:25:24.433] ReferenceError: GA_googleFetchAds is not defined @ http://access-programmers.co.uk/forums/showthread.php?p=1301767&mode=linear#post1301767:72
[11:25:24.565] ReferenceError: GA_googleFillSlot is not defined @ http://access-programmers.co.uk/forums/showthread.php?p=1301767&mode=linear#post1301767:569
[11:25:24.572] ReferenceError: GA_googleFillSlot is not defined @ http://access-programmers.co.uk/forums/showthread.php?p=1301767&mode=linear#post1301767:906
[11:25:25.095] The Web Console logging API (console.log, console.info, console.warn, console.error) has been disabled by a script on this page.
[11:25:25.240] Use of attributes' nodeValue attribute is deprecated. Use value instead. @ http://cdn1.developermedia.com/a.min.js:1
Reply With Quote
  #12  
Old 10-25-2013, 02:28 PM
Jon12345 Jon12345 is offline
 
Join Date: Nov 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Something doesn't seem quite right. For 1 in 3, I am now at 9 out of 13.
Reply With Quote
  #13  
Old 10-25-2013, 03:09 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, well maybe there's something about the way it works that I don't understand. Anyway, here's another one you can try:
Code:
<if condition="(((float)$GLOBALS[pagestarttime])*1000)%4==0">

That one doesn't work too well for me because strangely some of the digits of what's supposed to be the current time with microseconds don't change from one page to another. But apparently it's OS dependent and I'm running on my home Windows 7 computer, so it might work better for you.

Edit:...otherwise, it's not too difficult to write a plugin that does an actual random number.
Reply With Quote
  #14  
Old 10-29-2013, 05:41 PM
Jon12345 Jon12345 is offline
 
Join Date: Nov 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I reverse the condition?

I have an advert showing if condition=x. But I want to stop showing an advert in another location is condition=x. So, what is the reverse?

Edit:Worked it out. Use != instead of ==
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03715 seconds
  • Memory Usage 2,180KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete