Eklenti ekleyemiyorum onun için kod halinde veriyorum:

<?php

// Version: 1.1; Display



function template_main()

{

global $context, $settings, $options, $scripturl, $modSettings, $txt;



	// Show the anchor for the top and for the first message. If the first message is new, say so.

	echo '

<a name="top"></a>

<a name="msg', $context['first_message'], '"></a>', $context['first_new_message'] ? '<a name="new"></a>' : '';







	// Is this topic also a poll?

	if ($context['is_poll'])

	{

		echo '

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 2ex;">

	<tr>

		<td class="titlebg" colspan="2" valign="middle" style="padding-left: 6px;">

			<img src="', $settings['images_url'], '/topic/', $context['poll']['is_locked'] ? 'normal_poll_locked' : 'normal_poll', '.gif" alt="" align="bottom" /> ', $txt['smf43'], '

		</td>

	</tr>

	<tr>

		<td width="5%" valign="top" class="windowbg"><b>', $txt['smf21'], ':</b></td>

		<td class="windowbg">

			', $context['poll']['question'];

		if (!empty($context['poll']['expire_time']))

			echo '

					&nbsp;(', ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': ', $context['poll']['expire_time'], ')';



		// Are they not allowed to vote but allowed to view the options?

		if ($context['poll']['show_results'] || !$context['allow_vote'])

		{

			echo '

			<table>

				<tr>

					<td style="padding-top: 2ex;">

						<table border="0" cellpadding="0" cellspacing="0">';



				// Show each option with its corresponding percentage bar.

			foreach ($context['poll']['options'] as $option)

				echo '

							<tr>

								<td style="padding-right: 2ex;', $option['voted_this'] ? 'font-weight: bold;' : '', '">', $option['option'], '</td>', $context['allow_poll_view'] ? '

								<td nowrap="nowrap">' . $option['bar'] . ' ' . $option['votes'] . ' (' . $option['percent'] . '%)</td>' : '', '

							</tr>';



			echo '

						</table>

					</td>

					<td valign="bottom" style="padding-left: 15px;">';



			// If they are allowed to revote - show them a link!

			if ($context['allow_change_vote'])

				echo '

					<a href="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], ';sesc=', $context['session_id'], '">', $txt['poll_change_vote'], '</a><br />';



			// If we're viewing the results... maybe we want to go back and vote?

			if ($context['poll']['show_results'] && $context['allow_vote'])

				echo '

						<a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], '">', $txt['poll_return_vote'], '</a><br />';



			// If they're allowed to lock the poll, show a link!

			if ($context['poll']['lock'])

				echo '

						<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';



			// If they're allowed to edit the poll... guess what... show a link!

			if ($context['poll']['edit'])

				echo '

						<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';



			echo '

					</td>

				</tr>', $context['allow_poll_view'] ? '

				<tr>

					<td colspan="2"><b>' . $txt['smf24'] . ': ' . $context['poll']['total_votes'] . '</b></td>

				</tr>' : '', '

			</table><br />';

		}

		// They are allowed to vote! Go to it!

		else

		{

			echo '

			<form action="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], '" method="post" accept-charset="', $context['character_set'], '" style="margin: 0px;">

				<table>

					<tr>

						<td colspan="2">';



			// Show a warning if they are allowed more than one option.

			if ($context['poll']['allowed_warning'])

				echo '

							', $context['poll']['allowed_warning'], '

						</td>

					</tr><tr>

						<td>';



			// Show each option with its button - a radio likely.

			foreach ($context['poll']['options'] as $option)

				echo '

							', $option['vote_button'], ' ', $option['option'], '<br />';



			echo '

						</td>

						<td valign="bottom" style="padding-left: 15px;">';



			// Allowed to view the results? (without voting!)

			if ($context['allow_poll_view'])

				echo '

							<a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], ';viewResults">', $txt['smf29'], '</a><br />';



			// Show a link for locking the poll as well...

			if ($context['poll']['lock'])

				echo '

							<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';



			// Want to edit it? Click right here......

			if ($context['poll']['edit'])

				echo '

							<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';



				echo '

						</td>

					</tr><tr>

						<td colspan="2"><input type="submit" value="', $txt['smf23'], '" /></td>

					</tr>

				</table>

				<input type="hidden" name="sc" value="', $context['session_id'], '" />

			</form>';

		}



		echo '

		</td>

	</tr>

</table>';

	}





	// Does this topic have some events linked to it?

	if (!empty($context['linked_calendar_events']))

	{

		echo '

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 3ex;">

		<tr>

				<td class="titlebg" valign="middle" align="left" style="padding-left: 6px;">

						', $txt['calendar_linked_events'], '

				</td>

		</tr>

		<tr>

				<td width="5%" valign="top" class="windowbg">

						<ul>';

		foreach ($context['linked_calendar_events'] as $event)

			echo '

								<li>

									', ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: red;">*</a> ' : ''), '<b>', $event['title'], '</b>: ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '

								</li>';

		echo '

						</ul>

				</td>

		</tr>

</table>';

	}



	echo '

<table width="100%" cellpadding="0" cellspacing="4" border="0">

					</td>

					<td align="left" style="font-size: smaller;">';



	$buttonArray = array();

	if ($context['can_reply'])

		$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';

	



	

	echo implode($context['menu_separator'], $buttonArray);





	echo '</td>

<td align="right" style="padding-right: 1ex;">

<td align="right" class="middletext">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><b>' . $txt['topbottom4'] . '</b></a>' : '', '</td>





				</tr>

			</table>

		</td>

	</tr>

</table>';

//Konu içi seçenekler by Turklord

echo'

<div class="tborder" id="threadtools_menu" style="display:none">

	<table cellpadding="4" cellspacing="1" border="0">

		<tr><td style="border-top:1px solid #ffffff;"   class="yararli_link">Seçenekler<a name="turklord"></a></td></tr>';

		echo'

		<tr vAlign=bottom><td style="border-top:1px solid #ffffff;" valign="middle"  class="vbmenu_option"><img src="' . $settings['images_url'] . '/printer.gif">&nbsp;<a href="' . $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0" target="_blank" alt="' . $txt[465] . '">' .$txt[465] . '</a></td></tr>';

		if ($context['user']['is_guest'])

		echo'

		<tr vAlign=bottom><td style="border-top:1px solid #ffffff;" valign="middle"  class="vbmenu_option"><img src="' . $settings['images_url'] . '/subscribe.gif">&nbsp;<a href="', $scripturl, '?action=register">Forumu kullanmak için üye olun</a></td></tr>';

		

		if ($context['can_send_topic'])

		{

		echo'	<tr><td style="border-top:1px solid #ffffff;"  valign="middle" class="vbmenu_option"><img src="' . $settings['images_url'] . '/sendtofriend.gif">&nbsp;<a href="' . $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0" alt="' . $txt[707] . '">Bu konuyu gönder</a></td></tr>';		

		}

		if ($context['can_add_poll'])

		{

		echo'<tr vAlign=bottom><td style="border-top:1px solid #ffffff;" valign="middle"  class="vbmenu_option"><img src="' . $settings['images_url'] . '/addpoll.gif">&nbsp;<a href="' . $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">Bu konuya anket ekle</a></td></tr>';

		}

		if ($context['can_mark_notify'])

		{

		echo'<tr><td style="border-top:1px solid #ffffff;"  valign="middle" class="vbmenu_option"><img src="' . $settings['images_url'] . '/subscribe.gif">&nbsp;<a href="' . $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');" alt="' . $txt[131] . '">' . $txt[131] . '</a></td></tr>';

		}





echo'

	</table>

</div>';



//Konu içi arama by Turklord

echo'

	<div class="tborder" id="threadsearch_menu" style="display:none">

	

		<table cellpadding="4" cellspacing="1" border="0">

		<tr>

			<td class="yararli_link">Arama</td>

		</tr>

		<tr>

			<td class="windowbg" title="">

<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">



				<div class="middletext"><input type="text" name="search" value="" size="25" tabindex="1001"/>



				

			<input type="submit" class="button" value="Git" tabindex="1004" /></div>

			<input type="hidden" name="advenced" value="0"  size="25" tabindex="1001">

			</td>

		</tr>

		

			<tr>			<td style="border-top:1px solid #ffffff;border-bottom:1px solid #ffffff;"    class="vbmenu_option"><a href="', $scripturl, '?action=search;advanced" accesskey="4" rel="nofollow">Gelismis Arama Yap</a></td>

		</tr>

		</table>

		</form>

	</div>';



	// Show the topic information - icon, subject, etc.

	echo '



<div class="tborder" >

<table width="100%" cellpadding="5" cellspacing="1" border="0" style="border-bottom: 0;">

		<tr>

								

				<td class="catbg" valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">

						<font style="font-size: 8pt;">', $txt[118], ': ', $context['subject'], ' &nbsp;(', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')

				</font></td>

<td class="vbmenu_control" id="threadtools" nowrap="nowrap">

		<a href="' . $scripturl . '#Turklord" accesskey="3">Seçenekler</a>

		<script type="text/javascript"> vbmenu_register("threadtools"); </script>

	</td>

	

		<td class="navwrap" id="threadsearch" nowrap="nowrap">

			<a href="' . $scripturl . '#Turklord">Arama</a>

			<script type="text/javascript"> vbmenu_register("threadsearch"); </script>

		</td>

		</tr>';

	if (!empty($settings['display_who_viewing']))

	{

		echo '

		<tr>

				<td colspan="3" class="smalltext">';



		// Show just numbers...?

		if ($settings['display_who_viewing'] == 1)

				echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];

		// Or show the actual people viewing the topic?

		else

			echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');



		// Now show how many guests are here too.

		echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '

				</td>

		</tr>';

	}



	echo '

</table>';



	echo '



<form action="', $scripturl, '?action=quickmod2;topic=', $context['current_topic'], '.', $context['start'], '" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return in_edit_mode == 1 ? modify_save(\'' . $context['session_id'] . '\') : confirm(\'' . $txt['quickmod_confirm'] . '\');">';



	// These are some cache image buttons we may want.

	$reply_button = create_button('quote.gif');

	$modify_button = create_button('modify.gif');

	$remove_button = create_button('delete.gif');

	$split_button = create_button('split.gif');



// Time to display all the posts

	echo '



<table cellpadding="0" cellspacing="0" border="0" width="100%" class="bordercolor">';



	// Get all the messages...

	while ($message = $context['get_message']())

	{

		echo '

	<tr><td style="padding: 0px 1px 0px 1px;">';



		// Show the message anchor and a "new" anchor if this message is new.

		if ($message['id'] != $context['first_message'])

			echo '

		<a name="msg', $message['id'], '"></a>', $message['first_new'] ? '<a name="new"></a>' : '';

// Show information about the poster of this message.

		echo '

		<table width="100%" cellpadding="0" cellspacing="0" border="0">

            <tr class="titlebg"><td height="30" width="100%" ><div class="smalltext">« <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' »</div></td>

            <tr><td class="windowbg2">';



				echo '
				<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;" class="windowbg2">
					<tr>
      <td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg', '" valign="top" width="16%" rowspan="2">
	  <div class="vipprofil" align="center">
', $message['member']['group'] == 'Banned' ? '<span style="text-decoration:line-through">' : '' ,'
							<b>', $message['member']['link'], '</b></span></div>
							<span class="smalltext">';

		// Show the member's custom title, if they have one.
		if (isset($message['member']['title']) && $message['member']['title'] != '')
			echo '
								<div class="vipprofil" align="center">', $message['member']['title'], '<br /></div>';

		// Show the member's primary group (like 'Administrator') if they have one.
		if (isset($message['member']['group']) && $message['member']['group'] != '')
			echo '
								<div class="vipprofil" align="center">', $message['member']['group'], '<br /></div>';

		// Don't show these things for guests.
		if (!$message['member']['is_guest'])
		{
			// Show the post group stars
			if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
		
			echo '
								<div class="vipprofil" align="center">', $message['member']['group_stars'], '<br /></div>';

			// Show avatars, images, etc.?
			if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
				echo '
								<div class="vipprofil" align="center"><div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div></div>';

	
						// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
			if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
				echo '
						<div class="vipprofil"><font color="black"><b>Üye Grubu : </b></font>', $message['member']['post_group'], '<br /></div>';
			
	// Calculate their age! Hopefully they are not too old ;)
	if (!empty($message['member']['birth_date']))
	{
		if ($message['member']['birth_date'] != '0000-00-00')
		{
			list ($birth_year, $birth_month, $birth_day) = sscanf($message['member']['birth_date'], '%d-%d-%d');
			$datearray = getdate(forum_time());
			$message['member'] += array(
				'age' => empty($birth_year) ? $txt[470] : $datearray['year'] - $birth_year - (($datearray['mon'] > $birth_month || ($datearray['mon'] == $birth_month && $datearray['mday'] >= $birth_day)) ? 0 : 1),
				'today_is_birthday' => $datearray['mon'] == $birth_month && $datearray['mday'] == $birth_day
			);
		}
	}

	// Yas
	if (!empty($message['member']['age']))
	echo '

<div class="vipprofil"><font color="black"><b>Yaş : </b></font> ', $message['member']['age'], '<br /></div>';		
			
			
// Show the member's gender icon?
			if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
				echo '
								<div class="vipprofil"><font color="black"><b>Cinsiyet : </b></font>', $message['member']['gender']['image'], '<br /></div>';

				
// Uye nereden
echo '
								<div class="vipprofil"><font color="black"><b>Nerden : </b></font> ', $message['member']['location'], '<br /></div>';
		
// Kayit tarihi
echo '
                 <div class="vipprofil"><font color="black"><b>Kayıt Tarihi : </b></font> ', $message['member']['registered'], '<br />
                        </div>';
		
		
// Show how many posts they have made.
			echo '
								<div class="vipprofil"><font color="black"><b>Mesaj Sayısı : </b></font>', $message['member']['posts'], '<br />
						</div>';								
								
										


			// Is karma display enabled?  Total or +/-?
			if ($modSettings['karmaMode'] == '1')
				echo '
								<div class="vipprofil"><b>Rep Gücü : </b>', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br /></div>';
			elseif ($modSettings['karmaMode'] == '2')
				echo '
								<br />
								', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';

			// Is this user allowed to modify this member's karma?
			if ($message['member']['karma']['allow'])
				echo '<div class="vipprofil" align="center">
								<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
								<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a><br /></div>';



			// Show their personal text?
			if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
				echo '
								<div class="vipprofil"><b>Kişisel Mesaj : </b>', $message['member']['blurb'], '<br />
								</div>';

		// Show online and offline buttons?
			if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
				echo '
								<div class="vipprofil" align="center">', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br></div>';						
								
	

	
			// This shows the popular messaging icons.
			echo '<div class="vipprofil" align="center">
								', $message['member']['icq']['link'], '
								', $message['member']['msn']['link'], '
								', $message['member']['aim']['link'], '
								', $message['member']['yim']['link'], '<br />';

			// Show the profile, website, email address, and personal message buttons.
			if ($settings['show_profile_buttons'])
			{
				// Don't show the profile button if you're not allowed to view the profile.
				if ($message['member']['can_view_profile'])
					echo '
								<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';

				// Don't show an icon if they haven't specified a website.
				if ($message['member']['website']['url'] != '')
					echo '
								<a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';

				// Don't show the email address if they want it hidden.
				if (empty($message['member']['hide_email']))
					echo '
								<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

				// Since we know this person isn't a guest, you *can* message them.
				if ($context['can_send_pm'])
					echo '
								<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a></div>';
			}
		}
		// Otherwise, show the guest's email.
		elseif (empty($message['member']['hide_email']))
			echo '
								<br />
								<br />
								<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

if (empty($message['member']['options']['ruh halim_tab'])) {
                  $message['member']['options']['ruh halim_tab']='Saskin';
              }
              echo '
                 
  <b>Ruh Halim:</b> 
  <img src="', $settings['default_images_url'], '/', $message['member']['options']['ruh halim_tab'], '.gif" /> 
  ';  

		// Done with the information about the poster... on to the post itself.

		echo '

							</div>



<br/>



						</td>

						<td  valign="top" width="85%" height="100%">

							<table width="100%"  border="0"><tr>

								<td style="font-weight: bold; text-align: left;" id="subject_', $message['id'], '" align="left" valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a>

																

										<a href="', $message['href'], '">', $message['subject'], '</a>

									</td>';



		// Show the post itself, finally!

		echo '

								</td>

							</tr></table>

							<hr width="100%" size="1" class="hrcolor" /> 
  
							<div  class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '

							<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '

						</td>

					</tr>';



		// Now for the attachments, signature, ip logged, etc...

		echo '

					<tr>

						<td valign="bottom"  class="smalltext" width="85%">

							<table width="100%" border="0" style="table-layout: fixed;"><tr>

								<td  colspan="2" class="smalltext" width="100%">';



		// Assuming there are attachments...

		if (!empty($message['attachment']))

		{

			echo '

									<hr width="100%" size="1" class="hrcolor" />

									<div style="overflow: auto; width: 100%;">';

			foreach ($message['attachment'] as $attachment)

			{

				if ($attachment['is_image'])

				{

					if ($attachment['thumbnail']['has_thumb'])

						echo '

									<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';

					else

						echo '

									<img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><br />';

				}

				echo '

										<a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" />&nbsp;' . $attachment['name'] . '</a> (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';

			}



			echo '

									</div>';

		}



		echo '

								</td>

							</tr><tr>

								<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">';



		// Show "« Last Edit: Time by Person »" if this post was edited.

		if ($settings['show_modify'] && !empty($message['modified']['name']))

			echo '

									« <i>', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], '</i> »';



		echo '

								</td>

								<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">';



		// Maybe they want to report this post to the moderator(s)?

		if ($context['can_report_moderator'])

			echo '

									<a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['rtm1'], '</a> &nbsp;';

		echo '

									<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />';



		// Show the IP to this user for this post - because you can moderate?

		if ($context['can_moderate_forum'] && !empty($message['member']['ip']))

			echo '

									<a href="', $scripturl, '?action=trackip;searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';

		// Or, should we show it because this is you?

		elseif ($message['can_see_ip'])

			echo '

									<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $message['member']['ip'], '</a>';

		// Okay, are you at least logged in?  Then we can show something about why IPs are logged...

		elseif (!$context['user']['is_guest'])

			echo '

									<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt[511], '</a>';

		// Otherwise, you see NOTHING!

		else

			echo '

									', $txt[511];





		echo '

								</td>

							</tr></table>

';
	
 

if ($context['first_message']==$message['id'])
               {
                   echo '<!-- Seo4SMF Social Bookmark -->';
               }

		// Show the member's signature?

		if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))

			echo '

							<hr width="100%" size="1" class="hrcolor" />

							<div class="signature">', $message['member']['signature'], '</div>';

echo'





<DIV class="tborder" id=postmenu_1_menu style="DISPLAY: none">

<TABLE cellSpacing=1 cellPadding=4 border=0>



  <TR>

    <TD class=yararli_link>', $message['member']['link'], '</TD></TR>

  <TR>

    <TD class=vbmenu_option><a href="', $scripturl, '?action=profile;u=',$message['member']['id'], '">Açık Profil