Diễn đàn Trái Tim Yên Bái 2024

 Quên mật khẩu
 Đăng ký
Xem: 2388|Trả lời: 9
Thu gọn cột thông tin

Mod hiện 5 bài viết mới nhất dưới mỗi Box Dz 7.1

[Lấy địa chỉ]
  • Tâm trạng hàng ngày
    Suy ngẫm
    22-4-2024 05:18 PM
  • Đã viết: 4 ngày

    [LV.2]Spam 2

    Đăng lúc 14-11-2009 10:55 AM | Xem tất |Chế độ đọc

    Mời bạn đăng ký để giao lưu kết bạn nhé <3

    Bạn phải đăng nhập để xem được nội dung, nếu bạn chưa có tài khoản? hãy Đăng ký

    x

                                   
    Đăng nhập/Đăng ký mở rộng

    Resource Name: Home straight row of landscaping For DZ 7.1.

    Version: Discuz!7.1


    Language codes: GBK UTF-8



    Open the file include / index_classics.inc.php search.
    1. $newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
    Sao chép mã
    Thêm dưới
    1. //Post call the beginning
    2. $hack_cut_str =60; // Modify the title here, the length of
    3. $fids = array();
    4. if (file_exists("./forumdata/cache/cache_forums.php")){
    5.         require_once "./forumdata/cache/cache_forums.php";
    6.         if (is_array($_DCACHE['forums'])){
    7.                foreach ($_DCACHE['forums'] as $k => $v){
    8.                         if (!strstr(',sub,forum,',','.$v['type'].',')) continue;
    9.                         $fids[$k] = 5; // Here is the first call at the number of articles behind the needs and the same settings.
    10.                 }
    11.         }
    12. }
    13. if (count($fids) < 1){
    14.         $query = $db->query("SELECT fid FROM {$tablepre}forums WHERE type='forum' OR type='sub'");
    15.         while ($row = $db->fetch_array($query)){
    16.                 $fids[$row['fid']] = 5; // Here is the second call at the number of needs and the same as the previous settings.
    17.         }
    18. }
    19. $limit_counts = 0;
    20. foreach ($fids as $k => $v){
    21.         $sql .= "(SELECT t.*, f.name FROM {$tablepre}threads t LEFT JOIN {$tablepre}forums f ON f.fid = t.fid WHERE t.fid='$k' ORDER BY t.dateline DESC LIMIT $v) UNION ";
    22. }
    23. if ($sql){
    24.         $sql = substr($sql,0,strlen($sql)-6);
    25. }
    26. $query = $db->query($sql);
    27. while ($row = $db->fetch_array($query)){
    28.         $row['view_subject'] = cutstr($row['subject'],$hack_cut_str);
    29.         $row['date']= gmdate("$dateformat", $row['dateline'] + $timeoffset * 3600);
    30.         if($row['highlight']) {
    31.                         $string = sprintf('%02d', $row['highlight']);
    32.                         $stylestr = sprintf('%03b', $string[0]);
    33.                         $row['highlight'] = 'style="';
    34.                         $row['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
    35.                         $row['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
    36.                         $row['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
    37.                         $row['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
    38.                         $row['highlight'] .= '"';
    39.         } else {
    40.                         $row['highlight'] = '';
    41.         }
    42.         ${'new_no'.$row['fid'].'_threadlist'}[] = $row;
    43. }
    44. //Call the end of the post
    Sao chép mã
    Open the file templates / default / css_common.htm search.
    1. .list th { background: url({IMGDIR}/forum.gif) 5px 10px no-repeat; padding-left: 45px !important; }
    Sao chép mã
    Thay bằng
    1. .list th { background: url({IMGDIR}/forum.gif) 3px 17px no-repeat; padding-left: 15px !important; }
    Sao chép mã
    Open the file templates / default / discuz.htm search.
    1. <tbody id="forum$forum[fid]">
    2. tới
    3. $cat['endrows']
    Sao chép mã
    Thay bằng
    1. <tbody id="forum$forum[fid]">
    2. <tr>
    3. <td>
    4. $forum[icon]
    5. <div class="left">
    6. <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank" {/if}>$forum[name]</a> <font class="smalltext"><!--{if $forum[todayposts]}-->T: <font color="#FF3399">$forum[todayposts]</font><img src="{IMGDIR}/new.gif" align="absmiddle"><!--{else}-->T: <font color="#FF3399">0</font><!--{/if}--> P: <font color="#00CCFF">$forum[threads]</font> R: <font color="#99CC00">$forum[posts]</font></font> <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><img src="{IMGDIR}/moderator.gif" title="Forum Moderator" style="cursor:pointer" /> <em class="moderators" id="coll_1" style="display:none">$forum[moderators]</em><!--{/if}--><!--{/if}--></h2>
    7. <!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
    8. <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
    9. </div>
    10. </td>
    11. <th class="forumlast"{$forum[folder]}>
    12. <!--{if $forum['permission'] == 1}-->
    13. {lang private_forum}
    14. <!--{else}-->
    15. <!--{if $forum['redirect']}-->
    16. <a href="forumdisplay.php?fid=$forum[fid]">{lang url_link}</a>
    17. <!--{elseif is_array($forum['lastpost'])}-->
    18. <p> <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 26)}</a></p>
    19. <cite><!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>
    20. <!--{else}-->
    21. {lang never}
    22. <p>{lang never}</p>
    23. <!--{/if}-->
    24. <!--{/if}-->
    25. </td>
    26. </tr>
    27. </tbody>
    28. <!--{/loop}-->
    29. <!--{else}-->
    30. <tr class="narrowlist">
    31. <!--{loop $cat['forums'] $forumid}-->
    32. <!--{eval $forum=$forumlist[$forumid];}-->
    33. <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
    34. </tr></tbody>
    35. <!--{if $forum['orderid'] < $cat['forumscount']}-->
    36. <tbody><tr>
    37. <!--{/if}-->
    38. <!--{/if}-->
    39. <td width="$cat[forumcolwidth]" style="vertical-align: top; background-image: none; padding:8px !important;">
    40. <div style="width:100%; "><div style="float:left; "><h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank" {/if}>$forum[name]</a></h2></div><div style="float:right; "><!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><img src="{IMGDIR}/moderator.gif" title="Mod" style="cursor:pointer" /> <em class="moderators" id="coll_2" style="display:none">$forum[moderators]</em><!--{/if}--><!--{/if}-->
    41. <!--{if $forum[todayposts]}-->
    42. <!--{else}-->
    43. <!--{/if}--></div></div>
    44. <br>$forum[icon]
    45. <!--{if $forum[description]}--><div style="width:100%; ">$forum[description]</div><!--{/if}-->
    46. <!--{if $forum['subforums']}--><div style="width:100%; ">{lang forum_subforums}: $forum['subforums']</div><!--{/if}-->
    47. <!--{if $forum[todayposts]}-->Today: <font color="#FF3399">$forum[todayposts]</font><img src="{IMGDIR}/new.gif" align="absmiddle"><!--{else}-->Today: <font color="#FF3399">0</font><!--{/if}--> Post: <font color="#00CCFF">$forum[threads]</font> Reply: <font color="#99CC00">$forum[posts]</font></font><br /><br />
    48. <ul style="background-image: url(images/listbg_li.gif); padding:1px 2px 0px 10px; list-style-type: none; line-height: 20px; clear: both; margin:8px 0; ">
    49. <!--{loop ${"new_no".$forum[fid]."_threadlist"} $row}-->
    50. <div style="overflow: hidden; height:20px; width:100%"><small style="float:right; color:#9C8B88; margin: 0 0 0 5px">$row['date']</small><a href="viewthread.php?tid=$row[tid]" title="$row[subject]" target='_self'>$row[view_subject]</a></div>
    51. <!--{/loop}-->
    52. </ul>
    53. </td>
    54. <!--{/loop}-->
    55. $cat['endrows']
    Sao chép mã
    Open the file templates / default / forumdisplay_subforum.htm search.
    1. <!--{if !$forum['forumcolumns']}-->
    2. จนถึง
    3. <!--{loop $sublist $sub}-->
    Sao chép mã
    Thay bằng
    1. <!--{if !$forum['forumcolumns']}-->
    2. <!--{loop $sublist $sub}-->
    3. <tbody>
    4. <tr>
    5. <td>
    6. $sub[icon]
    7. <div class="left">
    8. <h2><a href="forumdisplay.php?fid=$sub[fid]" {if $sub[redirect]}target="_blank"{/if}>$sub[name]</a> <font class="smalltext"><!--{if $sub[todayposts] && !$sub['redirect']}-->Today: <font color="#FF3399">$forum[todayposts]</font><img src="{IMGDIR}/new.gif" align="absmiddle"><!--{else}-->Today: <font color="#FF3399">0</font><!--{/if}--> Topic: <font color="#00CCFF">$forum[threads]</font> Reply: <font color="#99CC00">$forum[posts]</font></font> <!--{if $sub['moderators']}--><!--{if $moddisplay == 'flat'}--><img src="{IMGDIR}/moderator.gif" title="Moderator" style="cursor:pointer" /> <em class="moderators" id="coll_3" style="display:none">$forum[moderators]</em><!--{/if}--><!--{/if}--></h2>
    9. <!--{if $sub[description]}--><p>Des: $sub[description]</p><!--{/if}-->
    10. <!--{if $sub['subforums']}--><p>{lang forum_subforums}: $sub['subforums']</p><!--{/if}-->
    11. </div>
    12. </td>
    13. <th class="forumlast"{$forum[folder]}>
    14. <!--{if $sub['permission'] == 1}-->
    15. {lang private_forum}
    16. <!--{else}-->
    17. <!--{if $sub['redirect']}-->
    18. <a href="forumdisplay.php?fid=$sub[fid]">{lang url_link}</a>
    19. <!--{elseif is_array($sub['lastpost'])}-->
    20. <p>Chủ đề mới: <a href="redirect.php?tid=$sub[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($sub[lastpost][subject], 20)}</a></p>
    21. <cite><!--{if $sub['lastpost']['author']}-->Tác giả: $sub['lastpost']['author']<!--{else}-->Tác giả: {lang anonymous}<!--{/if}--> - $sub[lastpost][dateline]</cite>
    22. <!--{else}-->
    23. Chủ đề mới: {lang never}
    24. <p>Tác giả: {lang never}</p>
    25. <!--{/if}-->
    26. <!--{/if}-->
    27. </td>
    28. </tr>
    29. </tbody>
    30. <!--{/loop}-->
    31. <!--{else}-->
    32. <tr class="narrowlist">
    33. <!--{loop $sublist $sub}-->
    Sao chép mã
    Upload ảnh đính kèm vào images
    images.rar (9.25 KB, Lượt tải về: 33)
    Đăng lúc 14-11-2009 12:00 PM | Xem tất
    Mod này rất hay nhưng cẩn thận một chút, có vài lỗi nhỏ khi view ở IE6
    Các bạn check thử demo site mình đang test xem sao nhé :
    http://www.nktshop.com/bbs/

    Mình đang làm một flash player mới cho discuz ai có nhã hứng cùng tham gia nhé. Sử dụng nguồn của longtail test chạy ổn trên cả IE all version và FF

    Đánh giá

    Em nghĩ mình bác thừa sức làm rồi ^^  Đăng lúc 25-12-2009 09:32 PM
    Flash player nếu làm nên thường xuyên cập nhật phiên bản mới từ longtail, sử dụng swfobject.js cho kết quả tốt nhất.  Đăng lúc 25-12-2009 09:32 PM
  • Tâm trạng hàng ngày
    Suy ngẫm
    22-4-2024 05:18 PM
  • Đã viết: 4 ngày

    [LV.2]Spam 2

     Tác giả| Đăng lúc 14-11-2009 12:08 PM | Xem tất
    Các bạn cứ test đi. Có gì hay chia sẻ lên nhé
    Đăng lúc 14-11-2009 05:10 PM | Xem tất
    .......thanks for share............
    Đăng lúc 9-12-2009 08:42 AM | Xem tất
    Tèo ! em hack như trên --> cu tèo luôn chán quá'
    Đăng lúc 23-12-2009 02:44 PM | Xem tất
    Cái TUT này hơi phức tạp, mình làm thì chỉ thêm 3 dòng vào discuz.html thôi

    Đánh giá

    nghỉ :danhdit:  Đăng lúc 26-12-2009 01:33 PM
    Rep  Đăng lúc 25-12-2009 09:29 PM
    Ko share đi còn nói  Đăng lúc 23-12-2009 03:34 PM
    Đăng lúc 25-12-2009 09:28 PM | Xem tất
    TUT này phức tạp nhưng đúng ý đồ của người share, bạn zobibobo nghĩ sao thì nghĩ.
    Còn cách của mình làm để viết TUT dễ hiểu cũng phải mất thời gian. Với những bạn biết code thì ok, còn những bạn không biết code thì dễ xảy ra lỗi, mà mình thì không có thời gian support nổi. Đó là lí do vì sao mình ít khi share mod khi nó chưa thực sự dễ cài đặt.
    Đăng lúc 26-12-2009 05:35 PM | Xem tất
    TUT này phức tạp nhưng đúng ý đồ của người share, bạn zobibobo nghĩ sao thì nghĩ.
    C ...
    Trích từ yugiohhh vào lúc 25-12-2009 09:28 PM


    Hô, mình nói vậy thôi chứ ko ý gì, anh em trao đổi nhau là chính, ai giỏi viết TUT thích share hay ko là quyền lợi mỗi người mà
    Đăng lúc 9-2-2010 03:51 PM | Xem tất
    hì thanK! tetst thữ cái  
    Đăng lúc 31-3-2010 03:16 PM | Xem tất
    Cái này được nè! Mình đăng kiếm! Cám ơn nhiều!
    Bạn phải đăng nhập mới được đăng bài Đăng nhập | Đăng ký

    Quy tắc điểm

    Đóng

    Thông báoTrước /1 Sau

    Phòng tối|Lưu trữ|Diễn đàn Yên Bái 2024 Community Guidelines |

    GMT+7, 6-12-2026 02:59 AM , Processed in 0.027033 second(s), 31 queries .

    Powered by Discuz! X3.4

    © 2001-2013 Comsenz Inc.

    Trả lời nhanh Lên trên Trở lại danh sách