Would it be possible to translate the Google adsense mod that is used on this site ( http://www.phpbb-seo.com/forums/le-foru ... html#11818 ) into English please?
Thanks in advance
chez
Moderator: Moderators

//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
//
for($i = 0; $i < $total_posts; $i++)// Google AdSense mod www.phpbb-seo.com
$add_add = ( $userdata['user_id'] != 2 && $forum_topic_data['auth_view'] == 0 ) ? TRUE : FALSE;
$add_switch = (( floor( $start / intval($board_config['posts_per_page']) ) + 1 ) < ceil( $total_replies / intval($board_config['posts_per_page'])) )? TRUE : FALSE;
$add_after = 0;
if ( $add_add ) {
$adsence_code = 'full adsense code';
}
// Google AdSense mod www.phpbb-seo.com 'U_POST_ID' => $postrow[$i]['post_id'])
);// Google AdSense mod www.phpbb-seo.com
if ( $add_add && $i == $add_after ) {
$template->assign_block_vars('postrow.adsence', array(
'ADSENCE_CODE' => $adsence_code)
);
}
// Google AdSense mod www.phpbb-seo.com$template->pparse('body');// Google AdSense mod dcz
if ( $add_add && $add_switch ) {
$template->assign_block_vars('adsence', array(
'ADSENCE_CODE' => $adsence_code)
);
}
// Google AdSense mod dcz <!-- END postrow --> <!-- BEGIN adsence -->
<tr>
<td width="100%" align="center" valign="top" class="row1" colspan="2">{postrow.adsence.ADSENCE_CODE}</td>
</tr>
<tr>
<td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- END adsence -->
<!-- END postrow -->
<!-- BEGIN adsence -->
<tr>
<td width="100%" align="center" valign="top" class="row1" colspan="2">{adsence.ADSENCE_CODE}</td>
</tr>
<!-- END adsence -->$add_add = ( $userdata['user_id'] != 2 && $forum_topic_data['auth_view'] == 0 ) ? TRUE : FALSE;$userdata['user_id'] != 2 && $add_add = ( $userdata['user_level'] != ADMIN && $forum_topic_data['auth_view'] == 0 ) ? TRUE : FALSE;$add_add = ( $userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD && $forum_topic_data['auth_view'] == 0 ) ? TRUE : FALSE;$add_add = ( !$userdata['session_logged_in'] && $forum_topic_data['auth_view'] == 0 ) ? TRUE : FALSE;$add_switch = (( floor( $start / intval($board_config['posts_per_page']) ) + 1 ) < ceil( $total_replies / intval($board_config['posts_per_page'])) )? TRUE : FALSE;$add_switch = (count($total_posts) >= 10 )? TRUE : FALSE;$add_after = 0; $add_after = 1; $add_after = ( count($total_posts) >= 5 ) ? intval( rand (0, ( count($total_posts) - 3 ) ) ) : 0;full AdSense code



// Google AdSense mod www.phpbb-seo.com
$add_add = ( $userdata['user_id'] != 2 && $forum_topic_data['auth_view'] == 0 ) ? TRUE : FALSE;
$add_switch = (( floor( $start / intval($board_config['posts_per_page']) ) + 1 ) < ceil( $total_replies / intval($board_config['posts_per_page'])) )? TRUE : FALSE;
$add_after = 0;
if ( $add_add ) {
$adsence_code = 'full adsense code';
}
// Google AdSense mod www.phpbb-seo.com



Users browsing this forum: No registered users and 3 guests