Forgot password?

Ẩn quảng cáo - Esc

Thích bài này? Bài trướcBài sau

๖ۣۜTiger®

Thu Jan 05, 2012 4:04 pm

#1
  • ๖ۣۜTiger®

๖ۣۜTiger®



Thành viên tích cực
http://www.tnhketnoi.com
Thành viên tích cực
Gia Nhập Gia Nhập : 10/09/2011
Bài Viết Bài Viết : 681
Điểm Thưởng Điểm Thưởng : 10014
Cám Ơn Cám Ơn : 44
Info : sống và sống
Xem bài viết mới cùng chuyên mục (mới đã sửa)  Empty Xem bài viết mới cùng chuyên mục (mới đã sửa)

Demo:[You must be registered and logged in to see this image.]
Hướng dẫn:Bước 1: Ganeral - Messages and e-mails - Configuration:
Điền vào 3 vị trí sau:
Define another name for Stickies : Chú ý
Define another name for Announcements : Thông báo
Customize a global announcement name : Thông báo khẩn
Bước 2: Display - Templates - Ganeral - Topics_list_box:
thay toàn bộ bằng:
Code:
    <!-- BEGIN topics_list_box --><!-- BEGIN row --><!-- BEGIN header_table --><!-- BEGIN multi_selection -->
    <script type="text/javascript">
    function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
      var all_checked = true;
      for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
          if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
            all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
          }
      }
      document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
    }
    function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
      for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
          if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
            document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
          }
      }
    }
    </script>
    <!-- END multi_selection -->

    <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
      <tr>
          <th colspan="{topics_list_box.row.header_table.COLSPAN}" align="center" nowrap="nowrap"> {topics_list_box.row.L_TITLE} </th>
          <th align="center" nowrap="nowrap" width="80"> {topics_list_box.row.L_REPLIES} </th>
          <th align="center" nowrap="nowrap" width="100"> {topics_list_box.row.L_AUTHOR} </th>
          <th align="center" nowrap="nowrap" width="50"> {topics_list_box.row.L_VIEWS} </th>
          <th align="center" nowrap="nowrap" width="150"> {topics_list_box.row.L_LASTPOST} </th>
          <!-- BEGIN multi_selection -->
          <th align="center" nowrap="nowrap" width="20"><input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /></th>
      <!-- END multi_selection -->
      </tr>
   
      <!-- END header_table --><!-- BEGIN header_row -->
      <tr>
          <td class="row3" colspan="{topics_list_box.row.COLSPAN}"><span class="gensmall"> <b>{topics_list_box.row.L_TITLE}</b></span></td>
      </tr>
    <!-- END header_row -->

    <!-- BEGIN topic -->
    {topics_list_box.row.END_TABLE_STICKY}
      <tr>
          <!-- BEGIN single_selection -->
          <td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20"><input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
          <!-- END single_selection -->
          <td class="{topics_list_box.row.ROW_FOLDER_CLASS}" align="center" valign="middle" width="20"><img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" /></td>
          <!-- BEGIN icon -->
          <td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20">{topics_list_box.row.ICON}</td>
          <!-- END icon -->
          <td class="{topics_list_box.row.ROW_CLASS}" onmouseover='this.className="row2"' onmouseout='this.className="{topics_list_box.row.ROW_CLASS}"' width="100%">
            <div class="topictitle">
                {topics_list_box.row.NEWEST_POST_IMG}{topics_list_box.row.PARTICIPATE_POST_IMG}{topics_list_box.row.TOPIC_TYPE}
                <h2 class="topic-title">
                  <div class="mkutop"><a href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></div>
                </h2>
            </div>
            <!-- BEGIN switch_description -->
            <span class="genmed">
                <br />
                {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
            </span>
            <!-- END switch_description -->
            <span class="gensmall">{topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span>
            <span class="gensmall">{topics_list_box.row.GOTO_PAGE}<!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE} <!-- END nav_tree --></span>
          </td>

          <td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.REPLIES}</span></td>
          <td class="row3" align="center" valign="middle"><div class="mkutgi"><span class="name"><strong>{topics_list_box.row.TOPIC_AUTHOR}</strong></span></div></td>
          <td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.VIEWS}</span></td>
          <td class="row3Right" onmouseover='this.className="row1"' onmouseout='this.className="row3Right"' align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topics_list_box.row.LAST_POST_TIME}<br /><div class="mkugcuoi">{topics_list_box.row.LAST_POST_AUTHOR} </div>{topics_list_box.row.LAST_POST_IMG}</span></td>
    <!-- BEGIN multi_selection -->
          <td class="row2" align="center" valign="middle"><span class="postdetails"><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></span></td>
      <!-- END multi_selection -->
      </tr>
      <!-- END topic --><!-- BEGIN no_topics -->
      <tr>
          <td class="row1" colspan="{topics_list_box.row.COLSPAN}" align="center" valign="middle" height="30"><span class="gen">{topics_list_box.row.L_NO_TOPICS}</span></td>
      </tr>
      <!-- END no_topics --><!-- BEGIN bottom -->
      <tr>
          <td class="catBottom" colspan="{topics_list_box.row.COLSPAN}" valign="middle">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td class="pagination"> <span class="gensmall">{PAGINATION}</span></td>
                  <td align="right"><a href="#top">{L_BACK_TO_TOP}</a> </td>
                </tr>
            </table>
          </td>
      </tr>
    <!-- END bottom --><!-- BEGIN footer_table -->
    </table><!-- END footer_table --><!-- BEGIN spacer --><br class="gensmall" /><!-- END spacer --><!-- END row --><!-- END topics_list_box -->

Bước 3: Display - Templates - Ganeral - Viewtopic_body:
Tìm đoạn này

Code:
    <!-- BEGIN promot_trafic -->
    ...
    <!-- END promot_trafic -->

và thay bằng:
Code:
    <!-- BEGIN promot_trafic --><table class="tborder class="forumline row3" width="100%" border="0" cellspacing="1" cellpadding="5"><tr><th colspan="2" align="left"><a style="float:right" href="#top"><img id="collapseimg_forumhome_activeusers" src="http://r22.imgfast.net/users/2211/12/43/96/album/collap10.gif" alt="" border="0" /></a><span class="gensmall"> <img src="http://2img.net/i/fa/empty.gif" alt="" border="0" />Những bài viết mới cùng chuyên mục  <img src="http://i21.servimg.com/u/f21/15/61/17/20/newnew10.gif" alt="" border="0" /></span></th></tr><tr class="post"><td class="row1" valign="top" width="100%" colspan="2">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color:#FFFFFF;">
    <script>
    $(document).ready(function(){
    $(function() {
    $('<span class="bv" />').load('/f{FORUM_ID}-forum .mkutop', {limit: 5}, function() {
    jQuery(this).hide()
    .appendTo('.baiviet')
    .fadeIn(1);
    });
    return false;
    });
    $(function() {
    $('<span class="bv" />').load('/f{FORUM_ID}-forum .mkutgi', {limit: 5}, function() {
    jQuery(this).hide()
    .appendTo('.tacgia')
    .fadeIn(1);
    });
    return false;
    });
    $(function() {
    $('<span class="bv" />').load('/f{FORUM_ID}-forum .mkugcuoi', {limit: 5}, function() {
    jQuery(this).hide()
    .appendTo('.guicuoi')
    .fadeIn(1);
    });
    return false;
    });
    });
    </script><tr><td><img src="http://2img.net/i/fa/empty.gif" alt="" border="0" /> </td><td class="altthinh" align="left" valign="top" align="center" width="57%" height="11px"><font style="font-family: Tahoma; font-size: 11px"><i>Tên bài viết</i></font></td><td class="altthinh" align="left" height="11px" width="20%"><font style="font-family: Tahoma; font-size: 11px"><i>Tác giả</i></font></td><td class="altthinh" align="left" height="11px"><font style="font-family: Tahoma; font-size: 11px"><i>Người gửi cuối</i></font></td></tr>
    <tr valign="top"><td style="border-top: 0px none; padding: 0px; background: url('http://i61.servimg.com/u/f61/15/61/17/20/list15.gif') no-repeat center top; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-family:Tahoma,Verdana,Arial,Helvetica,sans-serif" width="20"> </td>
    <td width="57%" style="border-top: 0px none; padding: 0px; line-height: 20px; background-repeat: repeat; font-family:Tahoma,Verdana,Arial,Helvetica,sans-serif" align="left" background="http://i61.servimg.com/u/f61/15/61/17/20/listbg15.gif">
    <font style="font-family: Tahoma; font-size: 11px"><div class="baiviet" style="overflow:hidden; height:157px;"></div></font>
    </td><td width="20%" align="left" style="border-top: 0px none; padding: 0px; line-height: 20px; background-repeat: repeat; font-family:Tahoma,Verdana,Arial,Helvetica,sans-serif" align="left" background="http://i61.servimg.com/u/f61/15/61/17/20/listbg15.gif">
    <font style="font-family: Tahoma; font-size: 11px"><div class="tacgia" style="overflow:hidden;  height:157px;"></div></font>
    </td><td width="20%" align="left" style="border-top: 0px none; padding: 0px; line-height: 20px; background-repeat: repeat; font-family:Tahoma,Verdana,Arial,Helvetica,sans-serif" align="left" background="http://i61.servimg.com/u/f61/15/61/17/20/listbg15.gif">
    <font style="font-family: Tahoma; font-size: 11px"><div class="guicuoi" style="overflow:hidden;  height:157px;"></div></font>
    </td></tr></table></td></tr></table><!-- END promot_trafic -->
Trả lời chủ đề này

Reply by Facebook
Điện thoại: 01692521505 - Email: phutu01@gmail.com - Yahoo: ad_phutu@yahoo.com - Bảng báo giá