vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   ads besides posts - no longer working in v4 (https://vborg.vbsupport.ru/showthread.php?t=241952)

naturalparent 05-06-2010 10:25 AM

ads besides posts - no longer working in v4
 
I had this code in the postbit, it showed adsense to non logged in users, memeber bannesr to logged in users.

<div id=\"post_message_$post[postid]\">
".((($post[postcount]==1) and ($show['guest'])) ? ("
<div style=\"margin-left:5px; float: right\">
<script type=\"text/javascript\"><!--
google_ad_client = \"pub-5601728979355758\";
/* nat-par-forum */
google_ad_slot = \"6214323237\";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type=\"text/javascript\"
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
</script>
</div>
") : (""))."
".((($post[postcount]==1) and is_member_of($GLOBALS['vbulletin']->userinfo, 2, 5, 6, 7, 56)) ? ("
<div style=\"margin-left:5px; float: right\">
<!-- ad tag (Iframe) : Natural Family Directory Beside Forum Posts | http://www.natural-family.com.au | 338 x 280 -->


<script type=\"text/javascript\"> var kadId=4; var kadwidth=338; var kadheight=280; </script> <script type=\"text/javascript\" src=\"http://www.natural-family.com.au/scripts/display_ads.js\"> </script>
</div>

but no longer works in v4

what do I need to update in the syntax?

naturalparent 05-11-2010 05:45 AM

no replies?

I just need to know how to do

if user is not logged in
and post =1
show adsense beside posts.

noone?


All times are GMT. The time now is 02:39 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.01019 seconds
  • Memory Usage 1,710KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete