صفحة 1 من 1

[?? ????]??????? ?????? ??? ?????? ?? ?? ????? ??? ???

مرسل: الأربعاء يوليو 18, 2007 2:41 pm
بواسطة sean2007
?????? ????? ???? ? ????? ??? ? ????? ???? ??????? ? ???? ???? ?? ???? ??? ???? ???? ???? 4 ????? ???? ???? ? ???
??? ???? ???? ????? ????? ??? ??????? ????? ?? ??? ?? ?????? ??????? ??? ?????? ?? ??????? ?????? ?? left ??? ??????? ? right ???? ?? ??? ??????? ??? ??? ???? ??? ???? ?? view_topic.php ???? ????? ???? ???? ????? ?? ???????? ?? ?????? ?????? ? ????? ?????? ????? ??? ?? ??? ???? ?? ????? ?????? ??????? ?????? ?? ??????

كود: تحديد الكل

[ FIND ]------------------------------------------ 
#
		'U_POST_ID' => $postrow[$i]['post_id'])
	);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	//Medal MOD
	if ( $board_config['allow_medal_display'] )
	{
		$order = ( $board_config['medal_display_order'] ) ? "RAND()" : "m.medal_name";

		$template->assign_block_vars('postrow.medal', array());

		$sql = "SELECT m.medal_id, m.medal_name, m.medal_image
			FROM " . MEDAL_TABLE . " m, " . MEDAL_USER_TABLE . " mu
			WHERE mu.user_id = '" . $poster_id . "'
			AND m.medal_id = mu.medal_id
			ORDER BY " . $order;
	
		if ($result = $db->sql_query($sql))
		{
			$rowset = array();
			while ($row = $db->sql_fetchrow($result))
			{
				$rowset[$row['medal_image']]['medal_name'] = $row['medal_name'];
				if ($rowset[$row['medal_image']]['medal_name'] == $row['medal_name'])
				$rowset[$row['medal_image']]['medal_count'] += 1;
			}

			// Check Medal config in ACP
			$medal_rows = $board_config['medal_display_row'];
			$medal_cols = $board_config['medal_display_col'];
			$medal_width = ( $board_config['medal_display_width'] ) ? 'width="'.$board_config['medal_display_width'].'"' : '';
			$medal_height = ( $board_config['medal_display_height'] ) ? 'height="'.$board_config['medal_display_height'].'"' : '';
	
			if ($medal_list)
			{
				$split_row = $medal_cols - 1;

				$s_colspan = 0;
				$row = 0;
				$col = 0;

				while (list($medal_image, $medal) = @each($rowset))
				{
					if (!$col)
			       		{ 
						$template->assign_block_vars('postrow.medal.medal_row', array()); 
					}

					$template->assign_block_vars('postrow.medal.medal_row.medal_col', array(
						'MEDAL_IMAGE' => $phpbb_root_path . $medal_image,
						'MEDAL_WIDTH' => $medal_width,
						'MEDAL_HEIGHT' => $medal_height,
						'MEDAL_NAME' => $medal['medal_name'],
						'MEDAL_COUNT' => '('. $lang['Medal_amount'] . $medal['medal_count']. ')')
					);

					$s_colspan = max($s_colspan, $col + 1);

					if ($col == $split_row)
					{
						if ($row == $medal_rows - 1) 
						{ 
							break; 
						}
						$col = 0;
						$row++;
					}
					else 
					{ 
						$col++; 
					}
				}
			}
		}
		$db->sql_freeresult($result);
	}
? ????? ???

مرسل: الأربعاء يوليو 18, 2007 3:38 pm
بواسطة sean2007
??? ???? ???? ????? ? ?? left ?? viewtopic_body.php ? ????? ??? ??????? ???????? ??? ????? ????? ?????? ???????