News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Hem Altta Hemde Üste Bolumler Kategoriler Var

Started by Casus-Team.Com, October 01, 2007, 12:37:19 PM

Previous topic - Next topic

Casus-Team.Com

Simple Machines Community Forum > SMF Support > Language Specific Support > Türkçe (Turkish) > Modifikasyonlar > Start new topic

Arkadaşlar Bunun Aynısıda Ustte Var :s Napmam Lazım Alttakini Silmem İçin :S

husmen73 (Gulhin)

İki bölüme konu açmaya hiç gerek yok! Bu yüzden siteden atılabilirsiniz. Lütfen kurallara uyunuz.

Ben olsaydım anlatmak istediğimi şu şekilde anlatırdım,
Mesajların listelendiği sayfada iki tane konu aç butonu var biri altta biri üstte. Alttaki yeni konu aç butonunu silmek istiyorum.
İşte sadece bu! Birkaç kez düşündükten sonra ne söylemek istediğinizi anladım.

MessageIndex.template.php dosyanızı ekleyiniz.
-Kurumsal Kimlik Web Tasarım Hizmeti.
Gülhin Portal Sistemi hakkında yorumlarınızı bekliyorum.
SMF
Referanslar --> http://www.gulhin.com/referanslar-portfoy/
-Web Tasarımı ve Tema Tasarımı Sitesi www.gulhin.com
-TOPLU MAİL GÖNDERİMİ --> http://www.toplumailsms.com
E-Ticaret Sistemi yaptırmak mı istiyorsunuz?

Casus-Team.Com

<?php
// Version: 1.1; MessageIndex

function template_main()
{
global $context$settings$options$scripturl$modSettings$txt;




if (isset($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0))
{
 echo
'<div   style="margin-top: ' $first '0;' '3ex;' '' $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' '''">
 <table class="tborder" border="0" width="100%" cellspacing="1" cellpadding="4" >'
;

echo '

<tr class="titlebg5">
<td class="titlebg5"></td>
<td class="titlebg5" style="text-align:left;">'
$txt[20], '</td>
<td class="titlebg5"><center>'
$txt[22], '</center></td>
<td class="titlebg5"><center>'
$txt[330], '</center></td>
<td class="titlebg5"><center>'
$txt[21], '</center></td>
</tr>'
;
echo '
<tr>
<td colspan="8" class="catbg">'
$txt['parent_boards'], '</td>
</tr>'
;
foreach ($context['boards'] as $board)
{



echo '
<tr>
<td ' 
, !empty($board['children']) ? 'rowspan="1"' '' ' class="windowbg" width="4%" align="center" valign="center"><a href="'$scripturl'?action=unread;board='$board['id'], '.0">';
// If the board is new, show a strong indicator.
            
if ($board['new'])
               echo 
'<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
            
// This board doesn't have new posts, but its children do.
            
elseif ($board['children_new'])
               echo 
'<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
            
// No new posts at all!  The agony!!
            
else
               echo 
'<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" border="0" />';

echo '</a>
</td>
<td class="windowbg2">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
<font style="font-size: 8pt">'
$board['description'], '</font> 


'
;


// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
  $child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
                                                $children[] = $child['new'] ? '<img style="margin-right:5px;" src="' $settings['images_url'] . '/subon.gif" alt="' $txt[333] . '"/><b>' $child['link'] . '</b>' '<img style="margin-right:5px;" src="' $settings['images_url'] . '/suboff.gif" alt="' $txt[334] . '"/>' $child['link']; }

echo '
<table style="10px;"width="100%" cellspacing="0" cellpadding="0"border="0">
<tr>
<br><font style="font-size: 8pt;"><i><b>'
$txt['parent_boards'], ':</b></i></font><td class="middletext" valign="middle"align="center">';
                        $child_counter 0;



echo '
</td>
<td class="smalltext" valign="middle">'
;
for(; $child_counter count($children); $child_counter++)
echo $children[$child_counter], '&nbsp;&nbsp;&nbsp;';
echo '
</td>
</tr>
</table>'
;
}
// Show some basic information about the number of posts, etc.
if ($context['user']['is_logged'])
{
echo '
</td>
<td class="windowbg" valign="middle" width="29%">
<span class="smalltext">'
;

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<DIV align="left" valign="top"  style="CLEAR: both"><img src="'
$settings['images_url'], '/post/xx.gif"/>
                                                <font style="font-size:8pt">'
$txt['smf88'], ' <b>'$board['last_post']['link'], '</b></font><br><font style="font-size: 8pt;  ">
                                               </div><DIV style="FLOAT: left"> '
$txt[525], ' '$board['last_post']['member']['link'] , '                                         
                                                 </div><DIV align=right>'
$txt[30], ' '$board['last_post']['time'], '  <a href="'$board['last_post']['href'], '">
                                                <img alt"Son Yazılan Mesaja Git"  src="'
$settings['images_url'], '/lastpost.gif"  border="0" /></a></font></div>' ;
echo '
</span>
</td>'
;
}
else
{
echo'
<td class="windowbg2" valign="middle" width="22%">
<span class="normaltext"><i>Üyelere Özel</i></span></td>'
;
}
echo'
        <td class="windowbg2" valign="middle" align="center" width="6%">'
$board['topics'], '</td>
                <td class="windowbg" valign="middle" align="center" width="7%">'
$board['posts'], '</td>';




}
echo
' </table></div>';
}

echo'<br>';
//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="catbg">Seçenekler<a name="turklord"></a></td></tr>'
;
  
if ($context['user']['is_guest'])
echo'
<tr><td style="border-top:1px solid #ffffff;"   class="vbmenu_option"><a href="'
$scripturl'?action=register">Forumu kullanmak için üye olun</a></td></tr>';
if ($context['can_post_new'])
{
echo'<tr><td style="border-top:1px solid #ffffff;"   class="vbmenu_option"><a href="' $scripturl '?action=post;board=' $context['current_board'] . '.0">Yeni Konu</a></td></tr>';
}
if ($context['can_post_poll'])
{
echo'<tr><td style="border-top:1px solid #ffffff;"   class="vbmenu_option"><a href="' $scripturl '?action=post;board=' $context['current_board'] . '.0;poll">Yeni Anket</a></td></tr>';
}
if ($context['user']['is_logged'] && $settings['show_mark_read'])

{
echo'<tr><td style="border-top:1px solid #ffffff;"   class="vbmenu_option"><a href="' $scripturl '?action=markasread;sa=board;board=' $context['current_board'] . '.0;sesc=' $context['session_id'] . '" alt="' $txt[300] . '">Konuları okunmuş say</a></td></tr>';
}
if ($context['can_mark_notify'])
{
echo' <tr><td style="border-top:1px solid #ffffff;"   class="vbmenu_option"><a href="' $scripturl '?action=notifyboard;sa=' . ($context['is_marked_notify'] ? 'off' 'on') . ';board=' $context['current_board'] . '.' $context['start'] . ';sesc=' $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_board'] : $txt['notification_enable_board']) . '\');">Bu forumdan haberdar et</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="catbg">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>'
;



if (!empty($options['show_board_desc']) && $context['description'] != '')
{
echo '
<table width="100%" cellpadding="6" cellspacing="1" border="0" class="tborder" style="padding: 0; margin-bottom: 2ex;">
<tr>
<td class="titlebg2" width="100%" height="24" style="border-top: 0;">
<small>'
$context['description'], '</small>
</td>
</tr>
</table>'
;
}


// They can only mark read if they are logged in and it's enabled!
if (!$context['user']['is_logged'] || !$settings['show_mark_read'])
unset($normal_buttons['markread']);

if (!$context['no_topic_listing'])
{
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left" style="padding-right: 1ex;">
<table cellpadding="0" cellspacing="0">
<tr>'
;

if(
theme_show_buttons()){
echo '
<td align="left">'
theme_show_buttons(), '</td>';
}
echo
'
</tr></table>
<td align="right"  class="middletext2">'
$txt[139], ': '$context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '&nbsp;&nbsp;<a href="#bot"><b>' $txt['topbottom5'] . '</b></a>' '''</td>
</tr>
</table>'
;
// If Quick Moderation is enabled start the form.
if (!empty($options['display_quick_mod']) && !empty($context['topics']))
echo '
<form action="'
$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], '" method="post" name="quickModForm" id="quickModForm" style="margin: 0;">';

echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' '''>
<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">
&nbsp;</td>
<td align=right" class="titlebg" id="threadtools" nowrap="nowrap">
<a href="' 
$scripturl '#Turklord" accesskey="3">Seçenekler</a>
<script type="text/javascript"> vbmenu_register("threadtools"); </script>
</td>

<td align=right" class="titlebg" id="threadsearch" nowrap="nowrap">
<a href="' 
$scripturl '#Turklord">Arama</a>
<script type="text/javascript"> vbmenu_register("threadsearch"); </script>
</td>
</tr>'
;

echo '
</table>'
;
echo
'
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="bordercolor">
<tr>'
;

// Are there actually any topics to show?
if (!empty($context['topics']))
{
echo '
<td width="9%" colspan="2" class="titlebg">&nbsp;</td>

<td class="titlebg"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=subject'$context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[70], $context['sort_by'] == 'subject' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" />' '''</a></td>



<td class="titlebg" width="4%" align="center"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=replies'$context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[110], $context['sort_by'] == 'replies' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" />' '''</a></td>

<td class="titlebg" width="4%" align="center"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=views'$context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[301], $context['sort_by'] == 'views' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" />' '''</a></td>

<td class="titlebg" width="22%"><a href="'
$scripturl'?board='$context['current_board'], '.'$context['start'], ';sort=last_post'$context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ';desc' '''">'$txt[111], $context['sort_by'] == 'last_post' ' <img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" />' '''</a></td>';

// Show a "select all" box for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
echo '
<td class="catbg3" width="24" valign="middle" align="center">
<input type="checkbox" onclick="invertAll(this, this.form, \'topics[]\');" class="check" />
</td>'
;
// If it's on in "image" mode, don't show anything but the column.
elseif (!empty($options['display_quick_mod']))
echo '
<td class="catbg3" width="4%" valign="middle" align="center"></td>'
;
}
// No topics.... just say, "sorry bub".
else
echo '
<td class="catbg3" width="100%" colspan="7"><b>'
$txt[151], '</b></td>';

echo '
</tr>'
;

if (!empty($settings['display_who_viewing']))
{
echo '
<tr class="windowbg2">
<td colspan="' 
, !empty($options['display_quick_mod']) ? '8' '7' '"><small>';
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' 'count($context['view_members']) == $txt['who_member'] : $txt[19];
else
echo empty($context['view_members_list']) ? '0 ' $txt[19] : implode(', '$context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' ' (+ ' $context['view_num_hidden'] . ' ' $txt['hidden'] . ')');
echo $txt['who_and'], $context['view_num_guests'], ' '$context['view_num_guests'] == $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '
</small></td>
</tr>'
;
}

$stickybar false;
$normalbar false;

foreach(
$context['topics'] as $topic)
{
if(
$topic['is_sticky'] && !$stickybar)
{
echo
'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' '8''"><b> Sabit Konular</b></td></tr>';
$stickybar true;
}
else if(!
$topic['is_sticky'] && $stickybar && !$normalbar)
{
echo
'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' '8''"><b> Normal Konular</b></td></tr>';
$normalbar true;
}
// Do we want to seperate the sticky and lock status out?
if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false)
$topic['class'] = substr($topic['class'], 0strrpos($topic['class'], '_sticky'));
if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'locked') !== false)
$topic['class'] = substr($topic['class'], 0strrpos($topic['class'], '_locked'));

echo '
<tr>
<td class="windowbg2" valign="middle" align="center" width="5%">
<img src="'
$settings['images_url'], '/topic/'$topic['class'], '.gif" alt="" />
</td>
<td class="windowbg2" valign="middle" align="center" width="4%">
<img src="'
$topic['first_post']['icon_url'], '" alt="" />
</td>
<td class="windowbg' 
$topic['is_sticky'] ? '' '' '" valign="middle" ', (!empty($topic['quick_mod']['remove']) ? 'id="topic_' $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' $topic['id'] . '\', \'' $topic['first_post']['id'] . '\', \'' $context['session_id'] . '\');"' ''), '>';

if (!empty($settings['seperate_sticky_lock']))
echo '
$topic['is_locked'] ? '<img src="' $settings['images_url'] . '/icons/quick_lock.gif" align="right" alt="" id="lockicon' $topic['first_post']['id'] . '" style="margin: 0;" />' '' '
$topic['is_sticky'] ? '<img src="' $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" id="stickyicon' $topic['first_post']['id'] . '" style="margin: 0;" />' '';

// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a href="'
$topic['new_href'], '" id="newicon' $topic['first_post']['id'] . '"><b>'$topic['first_post']['link'], '</b></a>
'
;

else
echo '
'
$topic['is_sticky'] ? '' '' '<span id="msg_' $topic['first_post']['id'] . '">'$topic['first_post']['link'], '</span>'$topic['is_sticky'] ? '' '';

echo '
<small id="pages' 
$topic['first_post']['id'] . '">'$topic['pages'], '</small>';


echo'<br><font style="font-size: 8pt">'$topic['first_post']['member']['link'], '</font>

</td>

<td class="windowbg2' 
$topic['is_sticky'] ? '' '' '" valign="middle" width="4%" align="center">
'
$topic['replies'], '
</td>
<td class="windowbg' 
$topic['is_sticky'] ? '' '' '" valign="middle" width="4%" align="center">
'
$topic['views'], '
</td>
<td class="windowbg2" valign="middle" width="22%">
<a href="'
$topic['last_post']['href'], '"><img src="'$settings['images_url'], '/icons/last_post.gif" alt="'$txt[111], '" title="'$txt[111], '" style="float: right;" /></a>
<span class="smalltext">
'
$topic['last_post']['time'], '<br />
'
$txt[525], ' '$topic['last_post']['member']['link'], '
</span>
</td>'
;

// Show the quick moderation options?
if (!empty($options['display_quick_mod']))
{
echo '
<td class="windowbg' 
$topic['is_sticky'] ? '3' '' '" valign="middle" align="center" width="4%">';
if ($options['display_quick_mod'] == 1)
echo '
<input type="checkbox" name="topics[]" value="'
$topic['id'], '" class="check" />';
else
{
// Check permissions on each and show only the ones they are allowed to use.
if ($topic['quick_mod']['remove'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=remove;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_remove.gif" width="16" alt="'$txt[63], '" title="'$txt[63], '" /></a>';

if ($topic['quick_mod']['lock'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=lock;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_lock.gif" width="16" alt="'$txt['smf279'], '" title="'$txt['smf279'], '" /></a>';

if ($topic['quick_mod']['lock'] || $topic['quick_mod']['remove'])
echo '<br />';

if ($topic['quick_mod']['sticky'])
echo '<a href="'$scripturl'?action=quickmod;board='$context['current_board'], '.'$context['start'], ';actions['$topic['id'], ']=sticky;sesc='$context['session_id'], '" onclick="return confirm(\''$txt['quickmod_confirm'], '\');"><img src="'$settings['images_url'], '/icons/quick_sticky.gif" width="16" alt="'$txt['smf277'], '" title="'$txt['smf277'], '" /></a>';

if ($topic['quick_mod']['move'])
echo '<a href="'$scripturl'?action=movetopic;board='$context['current_board'], '.'$context['start'], ';topic='$topic['id'], '.0"><img src="'$settings['images_url'], '/icons/quick_move.gif" width="16" alt="'$txt[132], '" title="'$txt[132], '" /></a>';
}
echo '</td>';
}
echo '
</tr>'
;
}

if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == && !empty($context['topics']))
{
echo '
<tr class="catbg">
<td colspan="8" align="right">
<select name="qaction"'
$context['can_move'] ? ' onchange="this.form.moveItTo.disabled = (this.options[this.selectedIndex].value != \'move\');"' '''>
<option value="">--------</option>
'
$context['can_remove'] ? '<option value="remove">' $txt['quick_mod_remove'] . '</option>' '''
'
$context['can_lock'] ? '<option value="lock">' $txt['quick_mod_lock'] . '</option>' '''
'
$context['can_sticky'] ? '<option value="sticky">' $txt['quick_mod_sticky'] . '</option>' '''
'
$context['can_move'] ? '<option value="move">' $txt['quick_mod_move'] . ': </option>' '''
'
$context['can_merge'] ? '<option value="merge">' $txt['quick_mod_merge'] . '</option>' '''
<option value="markread">'
$txt['quick_mod_markread'], '</option>
</select>'
;

if ($context['can_move'])
{
echo '
<select id="moveItTo" name="move_to" disabled="disabled">'
;

foreach ($context['jump_to'] as $category)
foreach ($category['boards'] as $board)
{
if (!$board['is_current'])
echo '
<option value="'
$board['id'], '"', !empty($board['selected']) ? ' selected="selected"' '''>'str_repeat('-'$board['child_level'] + 1), ' '$board['name'], '</option>';
}
echo '
</select>'
;
}
echo '
<input type="submit" value="'
$txt['quick_mod_go'], '" onclick="return document.topicForm.qaction.value != \'\' &amp;&amp; confirm(\''$txt['quickmod_confirm'], '\');" />
</td>
</tr>'
;
}

echo '
</table>
</div>
<a name="bot"></a>'
;

// Finish off the form - again.
if (!empty($options['display_quick_mod']) && !empty($context['topics']))
echo '
<input type="hidden" name="sc" value="' 
$context['session_id'] . '" />
</form>'
;

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

<td align="left" style="padding-right: 1ex;">
<table cellpadding="0" cellspacing="3">
<tr>
<td >'
;

if(theme_show_buttons()){
echo '<br><td align="left">'theme_show_buttons(), '</td>';
}

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

</tr>
</table>'
;
}


// Show breadcrumbs at the bottom too?
echo '
<br />'
;

echo 
'
<div class="tborder">
<table cellpadding="8" cellspacing="0" width="100%" class="windowbg2">
<tr>'
;

if (!$context['no_topic_listing'])
echo '
<td style="padding-top: 2ex; color: #000000;" class="smalltext">'
, !empty($modSettings['enableParticipation']) ? '
<img src="' 
$settings['images_url'] . '/topic/my_normal_post.gif" alt="" align="middle" /><font color="#91aadf"> ' $txt['participation_caption'] . '</font><br />' '''
<img src="' 
$settings['images_url'] . '/topic/normal_post.gif" alt="" align="middle" /><font color="#91aadf"> ' $txt[457] . '</font><br />
<img src="' 
$settings['images_url'] . '/topic/hot_post.gif" alt="" align="middle" /><font color="#91aadf"> ' $txt[454] . '</font><br />
<img src="' 
$settings['images_url'] . '/topic/veryhot_post.gif" alt="" align="middle" /><font color="#91aadf"> ' $txt[455] . '</font>
</td>
<td valign="top" style="padding-top: 2ex; color: #000000;" class="smalltext">
<img src="' 
$settings['images_url'] . '/icons/quick_lock.gif" alt="" align="middle" /><font color="#91aadf"> ' $txt[456] . '</font><br />' . ($modSettings['enableStickyTopics'] == '1' '
<img src="' 
$settings['images_url'] . '/icons/quick_sticky.gif" alt="" align="middle" /><font color="#91aadf"> ' $txt['smf96'] . '</font><br />' '') . ($modSettings['pollMode'] == '1' '
<img src="' 
$settings['images_url'] . '/topic/normal_poll.gif" alt="" align="middle" /><font color="#91aadf"> ' $txt['smf43'] : '') . '</font>
</td>'
;

echo '
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" valign="middle">
<form action="'
$scripturl'" method="get" name="jumptoForm">
<span class="smalltext"><label for="jumpto">' 
$txt[160] . '</label>:</span>
<select name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 &amp;&amp; this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf(\'?\') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != \'?\' ? 0 : 1);">
<option value="">' 
$txt[251] . ':</option>';

// Show each category - they all have an id, name, and the boards in them.
foreach ($context['jump_to'] as $category)
{
// Show the category name with a link to the category. (index.php#id)
echo '
<option value="" disabled="disabled">-----------------------------</option>
<option value="#'
$category['id'], '">'$category['name'], '</option>
<option value="" disabled="disabled">-----------------------------</option>'
;

/* Now go through each board - they all have:
id, name, child_level (how many parents they have, basically...), and is_current. (is this the current board?) */
foreach ($category['boards'] as $board)
{
// Show some more =='s if this is a child, so as to make it look nice.
echo '
<option value="?board='
$board['id'], '.0"'$board['is_current'] ? ' selected="selected"' '''> 'str_repeat('=='$board['child_level']), '=> '$board['name'], '</option>';
}
}

echo '
</select>&nbsp;
<input type="button" value="'
$txt[161], '" onclick="if (this.form.jumpto.options[this.form.jumpto.selectedIndex].value) window.location.href = \''$scripturl'\' + this.form.jumpto.options[this.form.jumpto.selectedIndex].value;" />
</form>
</td>
</tr>
</table>
</div>'
;

// Javascript for inline editing.
echo '
<script language="JavaScript" type="text/javascript" src="' 
$settings['default_theme_url'] . '/xml_board.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

// Hide certain bits during topic edit.
hide_prefixes.push("lockicon", "stickyicon", "pages", "newicon");

// Use it to detect when we\'ve stopped editing.
document.onmousedown = mouse_down;

var mouse_on_div;
function mouse_down(e)
{
if (in_edit_mode == 1 && mouse_on_div == 0)
modify_topic_save("'
$context['session_id'], '");
}

// For templating, shown when an inline edit is made.
function modify_topic_show_edit(subject)
{
// Just template the subject.
setInnerHTML(cur_subject_div, \'<input type="text" name="subject" value="\' + subject + \'" size="60" style="width: 99%;"  maxlength="80" /><input type="hidden" name="topic" value="\' + cur_topic_id + \'" /><input type="hidden" name="msg" value="\' + cur_msg_id.substr(4) + \'" />\');
}

// And the reverse for hiding it.
function modify_topic_hide_edit(subject)
{
// Re-template the subject!
setInnerHTML(cur_subject_div, \'<a href="'
$scripturl'?topic=\' + cur_topic_id + \'.0">\' + subject + \'</a>\');
}

// ]]></script>'
;
}

function 
theme_show_buttons() //Electron Change
{
global $context$settings$options$txt$scripturl;

$buttonArray = array();

// Are they allowed to post new topics?
if ($context['can_post_new'])
$buttonArray[] = '<a href="' $scripturl '?action=post;board=' $context['current_board'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new_topic.gif" alt="' $txt[33] . '" border="0" />' $txt[33]) . '</a>';

// How about new polls, can the user post those?
if ($context['can_post_poll'])
$buttonArray[] = '<a href="' $scripturl '?action=post;board=' $context['current_board'] . '.0;poll">' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new_poll.gif" alt="' $txt['smf20'] . '" border="0" />' $txt['smf20']) . '</a>';


return implode($context['menu_separator'], $buttonArray);
}
?>



Yağız...

Admin > Kullanilan Tema > Satır içi kısayolları etkinleştir


Advertisement: