Home Webboard ArticlesKnowledges  

ตอบ

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
ชื่อ:
อีเมล์:
หัวข้อ:
ไอค่อนข้อความ:

ใส่รูปในกระทู้ คลิก >>
Verification:
ธงชาติไทยมีกี่สี ตอบเป็นเลขอารบิก:

shortcuts: กด alt+s เพื่อตั้งกระทู้ หรือ alt+p แสดงตัวอย่าง


สรุปหัวข้อ

ข้อความโดย: คนหลงทาง
« เมื่อ: 30, มีนาคม 2009, 11:30:31 PM »

mod http:custom.simplemachines.org/mods/index.php?mod=1497

/Themes/default/languages/Modifications.english.php

ค้นหา
โค๊ด: [Select]
?>

ใส่ก่อนค้นหา
โค๊ด: [Select]
$txt['tab_replies'] = 'Replies';
$txt['tab_unread'] = 'Unread';


./Themes/default/index.template.php

ค้นหา
โค๊ด: [Select]
if ($context['current_action'] == 'search2')
$current_action = 'search';

ใส่ก่อนที่ค้นหา
โค๊ด: [Select]
if ($context['current_action'] == 'unreadreplies')
      $current_action = 'unreadreplies';
  if ($context['current_action'] == 'unread')
      $current_action = 'unread';

ค้นหา
โค๊ด: [Select]
// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

ใส่หลังที่ค้นหา

โค๊ด: [Select]
// Show the [replies] button
if ($context['user']['is_logged'])
echo ($current_action == 'unreadreplies' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'unreadreplies' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=unreadreplies">' , $txt['tab_replies'] , '</a>
</td>' , $current_action == 'unreadreplies' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// Show the [unread] button
if ($context['user']['is_logged'])
echo ($current_action == 'unread' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'unread' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=unread;all;start=0">' , $txt['tab_unread'] , '</a>
</td>' , $current_action == 'unread' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


ค้นหา
โค๊ด: [Select]
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
', $txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}


วางทับที่ค้นหา
โค๊ด: [Select]
// I'm a random comment, YAY! (don't delete me)
ค้นหา
โค๊ด: [Select]
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else

วางทับ
โค๊ด: [Select]
// Send the guest a lovely greeting!

Sitemap 1 2 3 4 5 6 7 8 9 10 
Back to top