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

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

[Hỏi đáp] Làm sao để hiện Flash trên toplist của bản 6.0

[Lấy địa chỉ]

Viết tâm trạng

Đăng lúc 15-11-2009 09:59 PM | 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
Mình thì không muốn thay đổi phiên bản của Discuz mình rất thích bản 6.0Nhưng không hiểu sao mình đã cài thành công toplist nhưng lại mắc phải 1 vấn đề đó là nó không chịu hiện thị Flash, mặc dù mình đã mò mẫn thay đổi đủ thứ trong phần pic.php nhưng nó vẫn im lìm không nhúc nhíc.
Bạn nào đã từng cài toplist 6.0 thành công thì xin giúp mình nhé> c
Cảm ơn rất nhiều:
Đây là trang của mình:
http://tunglinhonline.com
còn đây là code trong file pic.php
  1. <?php
  2. /*
  3. ­ì§@¡G ¤£¸Ô
  4. ½s¿è¡G http://bnb.fdchost.com/
  5. */

  6. $shownums        = 5;//ºt¥Ü­Ó¼Æ6¥H¤º.
  7. $searchnums        = 18;//·j¯ÁÁ`¼Æ.
  8. $cachelife        = 0;//½w¦s®É¶¡.
  9. $orderby        = 'dateline';//·j¯Á¶¶§Ç:«ö¤é´Ádateline.«öÂsÄý¦¸¼Ædownloads.ÀH¾÷rand.
  10. $cachename        = 'showpic';//½w¦s¦W.­Y»P¦ó´¡¥ó½Ä¬ð½Ð­×§ï,¥u­n¤£½Ä¬ð¤£·|¼vÅT¨Ï¥Î.
  11. $searchfid        = '';//·j¯Áfid½d³ò.¤£­­¨î¯dªÅ.½Ð¥Î³r¸¹¬Û¹j,¦p'1,2,3'.

  12. if((@!include('forumdata/cache/cache_'.$cachename.'.php')) || $expiration < time() || $cacheshownums != $shownums || $cachesearchnums != $searchnums || $cachecachelife != $cachelife || $cacheorderby != $orderby || $cachecachename != $cachename || $cachesearchfid != $searchfid) {
  13.         require_once './include/common.inc.php';
  14.         $orderby = $orderby != 'rand' ? 'attach.'.$orderby : 'rand()';
  15.         $fids = $searchfid ? 'AND '."t.fid IN ($searchfid)" : '';
  16.         $data = array();
  17.         $query = $db->query("SELECT attach.aid, attach.attachment, t.tid, t.fid, t.subject FROM {$tablepre}attachments attach LEFT JOIN {$tablepre}threads t ON t.tid=attach.tid WHERE attach.readperm='0' AND displayorder>='0' AND filetype='image/pjpeg' $fids GROUP BY attach.tid ORDER BY $orderby DESC LIMIT $searchnums");
  18.         while ($pic = $db->fetch_array($query)) {
  19.                 $data['pic'][$pic[aid]]['showpicpics'] = $attachurl.'/'.$pic['attachment'];
  20.                 $data['pic'][$pic[aid]]['showpiclinks'] = "viewthread.php?tid=$pic[tid]";
  21.                 $data['pic'][$pic[aid]]['showpictexts'] = str_replace('\'', ' ',$pic['subject']);
  22.         }
  23.         $data['expiration'] = $cachelife + time();
  24.         $data['cacheshownums'] = $shownums;
  25.         $data['cachesearchnums'] = $searchnums;
  26.         $data['cachecachelife'] = $cachelife;
  27.         $data['cacheorderby'] = $orderby;
  28.         $data['cachecachename'] = $cachename;
  29.         $data['cachesearchfid'] = $searchfid;
  30.         require_once DISCUZ_ROOT.'./include/cache.func.php';
  31.         writetocache($cachename, '', getcachevars($data));
  32.         include(DISCUZ_ROOT.'./forumdata/cache/cache_'.$cachename.'.php');
  33. }

  34. shuffle($pic);
  35. $i = 0;
  36. $j = 0;
  37. while ($j < $shownums && isset($pic[$i])) {
  38.         if(is_readable($pic[$i]['showpicpics'])) {
  39.                 $showpicpics .= $comma.$pic[$i]['showpicpics'];
  40.                 $showpiclinks .= $comma.$pic[$i]['showpiclinks'];
  41.                 $showpictexts .= $comma.$pic[$i]['showpictexts'];
  42.                 $comma = '|';
  43.                 $j++;
  44.         }
  45.         $i++;
  46. }
  47. ?>
  48.        
  49. var swf_width=255       
  50. var swf_height=175
  51. var config='5|0xffffff|0x0099ff|50|0xffffff|0x0099ff|0x000000'
  52. var files='<?=$showpicpics?>'
  53. var links='<?=$showpiclinks?>'
  54. var texts='<?=$showpictexts?>'
  55. document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'" />');
  56. document.write('<param name="movie" value="http://fun.more.jcisio.com/flash/Music/Westlife--Miss-you.swf" />');
  57. document.write('<param name="quality" value="high" />');
  58. document.write('<param name="menu" value="false" />');
  59. document.write('<param name="wmode" value="opaque" />');
  60. document.write('<param name="FlashVars" value="config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'" />');
  61. document.write('<embed src="http://fun.more.jcisio.com/flash/Music/Westlife--Miss-you.swf" wmode="opaque" FlashVars="config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" Pluginspage="http://www.macromedia.com/go/getflashplayer" />');
  62. document.write('</object>');
Sao chép mã



Mình nghi ngờ đoạn này có vấn đề:
  1. document.write('<embed src="http://fun.more.jcisio.com/flash/Music/Westlife--Miss-you.swf" wmode="opaque" FlashVars="config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
Sao chép mã



Cảm ơn các bạn
  • 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 15-11-2009 10:47 PM | Xem tất
    file này đã đc sửa đẻ chạy flash music rồi
    đẻ up file pic gốc nhé xem có sài đc ko

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

    thửu dùng bản này đẹp hơn này
    http://www.discuzthai.com/thread-1774-1-1.html
    reg nick mà xem hướng dẫn nhé
    vào goolge translate chỗ nào ko hiểu
    lười đưa sang quá

    refreshtoplist2.5 patch 080820.rar

    48.14 KB, Lượt tải về: 1

    Cảm ơn

    Số người tham gia 1Danh vọng +2 Tiền +2 Thanks +1 Thu lại Lý do
    doiratcuchuoi + 2 + 2 + 1

    Xem tất cả

     Tác giả| Đăng lúc 15-11-2009 11:42 PM | Xem tất
    Cảm ơn bạn nha để mình test thử xem sao, Hy vọng nó sẽ chạy ngon lành
    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 10:03 PM , Processed in 0.027544 second(s), 26 queries .

    Powered by Discuz! X3.4

    © 2001-2013 Comsenz Inc.

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