I see. Im really liking this adsense integration. It works really well with the link units format it's not too in the face of my forum members.
I have adsense integration on my phpbb sites as well. http://www.pspforums.com and I have it setup so that certain ads are for guests only. I have a subscription mod installed and subscribers see the site ad free. It has worked out very well for me. If anyone needs phpbb help I am the man to go to. I can do anything with phpbb. http://www.360forum.com http://www.blackjackforums.com These are just 2 of my sites that I even skinned myself. phpbb rocks if you know what you are doing.
Your da man yo! I just had a quick browse of your xbox forums, looks good, but u may wanna look into improving load times its very slow even on broadband.
This is what I want to do. I currently show adsense to everyone. What condition do I need to check/wrap around the adsense code to exclude it for logged in members?
This is what I want to do. I currently show adsense to everyone. What condition do I need to check/wrap around the adsense code to exclude it for logged in members? I agree with you
In php files: if ( $userdata['session_logged_in'] ) { CODE HERE } Code (markup): In tpl files: <!-- BEGIN switch_user_logged_out --> CODE HERE <!-- END switch_user_logged_out --> Code (markup):
This is what i have in viewtopic.php: Find: } $template->pparse('body'); REPLACE wITH if($i == 0) { $row_color = ( !($num_post % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($num_post % 2) ) ? $theme['td_class1'] : $theme['td_class2']; $num_post ++; $message = 'ADSENSE CODE HERE'; $template->assign_block_vars('postrow', array( 'ROW_COLOR' => '#' . $row_color, 'ROW_CLASS' => $row_class, 'POSTER_NAME' => 'Google', 'POST_DATE' => '', 'POST_SUBJECT' => 'Sponsored Link', 'MESSAGE' => $message, 'MINI_POST_IMG' => $mini_post_img, 'U_POST_ID' => '0' )); } } $template->pparse('body'); Code (markup):
Just spotted this as I'm figuring out how to do it on my new vb board. just having it in the header could be a breach of TOS as it will also show on non-content pages like login and profiles.
Its not on the log-on and register pages here, its just a link, not the adsense code. I choose to be extra careful and keep it off all the search, admin, profile pages etc, as well. I've got it on raw content pages only. Showthread, forum display and forumhome only.
Hehe - surfed in through the Archive - but this is also relevant for PHPBB and Adsense. Any forum software in fact - global headers and adsense are a no-no if they also display on Login and other non-content pages.
That's as maybe, but as I found myself here via the archive and a few key search terms in Google, I thought it would be a good idea to add the appropriate info rather than have others end up here and not realise, and risk their AdSense accounts. To bring it straight back on topic - if you want to do it PHPBB, the templates you can add the code to for the meatiest content pages are: index_body.tpl, viewforum_body.tpl and viewtopic_body.tpl