All pastes #367571 Raw Edit

Untitled

public php v1 · immutable
#367571 ·published 2007-02-22 13:09 UTC
rendered paste body
##-----[ OPEN ]------------------------------------------#viewtopic.php##-----[ FIND ]------------------------------------------#include($phpbb_root_path . 'includes/functions_display.' . $phpEx);##-----[ AFTER, ADD ]------------------------------------------#//--MOD: Awards MOD --------------------------------//--add:include($phpbb_root_path . 'includes/functions_awards.' . $phpEx);//--MOD: Awards MOD --------------------------------##-----[ FIND ]------------------------------------------#// Posts are stored in the $rowset array while $attach_list, $user_cache// and the global bbcode_bitfield are builtwhile ($row = $db->sql_fetchrow($result)){##-----[ BEFORE, ADD ]------------------------------------------#//--MOD: Awards MOD --------------------------------//--add:$awards_user_ids = array();//--MOD: Awards MOD --------------------------------##-----[ AFTER, ADD ]------------------------------------------#	//--MOD: Awards MOD --------------------------------	//--add:	$awards_user_ids[] = $row['user_id'];	//--MOD: Awards MOD --------------------------------##-----[ FIND ]------------------------------------------#// Load custom profile fieldsif ($config['load_cpf_viewtopic']){	include($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);##-----[ BEFORE, ADD ]------------------------------------------#//--MOD: Awards MOD --------------------------------//--add:$awards_data = get_awards_data($awards_user_ids);//--MOD: Awards MOD --------------------------------##-----[ FIND ]------------------------------------------#	// Dump vars into template	$template->assign_block_vars('postrow', $postrow);##-----[ BEFORE, ADD ]------------------------------------------#	//--MOD: Awards MOD --------------------------------	//--add:	$postrow['POSTER_AWARDS'] = ( isset($awards_data[$poster_id]) ) ? sizeof($awards_data[$poster_id]) : 0;	//--MOD: Awards MOD --------------------------------##-----[ AFTER, ADD ]------------------------------------------#	//--MOD: Awards MOD --------------------------------	//--add:	if ( isset($awards_data[$poster_id]) )	{		assign_award_icons('postrow', $awards_data[$poster_id]);	}	//--MOD: Awards MOD --------------------------------##-----[ OPEN ]------------------------------------------#styles/subSilver/template/viewtopic_body.html##-----[ FIND ]------------------------------------------#					<!-- BEGIN custom_fields -->						<br /><b>{postrow.custom_fields.PROFILE_FIELD_NAME}:</b> {postrow.custom_fields.PROFILE_FIELD_VALUE}					<!-- END custom_fields -->				</span>##-----[ AFTER, ADD ]------------------------------------------#			<!-- IF postrow.POSTER_AWARDS > 0 -->				<br /><br />				<div class="postdetails" style="text-align: center">				<!-- BEGIN awards -->				<a href="{postrow.awards.U_AWARD}" title="{postrow.awards.AWARD_NAME}" rel="nofollow">{postrow.awards.AWARD_IMAGE}</a>				<!-- END awards -->				</div><br />			<!-- ENDIF -->