|
|
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
- <?php
- /*
- ì§@¡G ¤£¸Ô
- ½s¿è¡G http://bnb.fdchost.com/
- */
- $shownums = 5;//ºt¥ÜÓ¼Æ6¥H¤º.
- $searchnums = 18;//·j¯ÁÁ`¼Æ.
- $cachelife = 0;//½w¦s®É¶¡.
- $orderby = 'dateline';//·j¯Á¶¶§Ç:«ö¤é´Ádateline.«öÂsÄý¦¸¼Ædownloads.ÀH¾÷rand.
- $cachename = 'showpic';//½w¦s¦W.Y»P¦ó´¡¥ó½Ä¬ð½Ð×§ï,¥un¤£½Ä¬ð¤£·|¼vÅT¨Ï¥Î.
- $searchfid = '';//·j¯Áfid½d³ò.¤£¨î¯dªÅ.½Ð¥Î³r¸¹¬Û¹j,¦p'1,2,3'.
- if((@!include('forumdata/cache/cache_'.$cachename.'.php')) || $expiration < time() || $cacheshownums != $shownums || $cachesearchnums != $searchnums || $cachecachelife != $cachelife || $cacheorderby != $orderby || $cachecachename != $cachename || $cachesearchfid != $searchfid) {
- require_once './include/common.inc.php';
- $orderby = $orderby != 'rand' ? 'attach.'.$orderby : 'rand()';
- $fids = $searchfid ? 'AND '."t.fid IN ($searchfid)" : '';
- $data = array();
- $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");
- while ($pic = $db->fetch_array($query)) {
- $data['pic'][$pic[aid]]['showpicpics'] = $attachurl.'/'.$pic['attachment'];
- $data['pic'][$pic[aid]]['showpiclinks'] = "viewthread.php?tid=$pic[tid]";
- $data['pic'][$pic[aid]]['showpictexts'] = str_replace('\'', ' ',$pic['subject']);
- }
- $data['expiration'] = $cachelife + time();
- $data['cacheshownums'] = $shownums;
- $data['cachesearchnums'] = $searchnums;
- $data['cachecachelife'] = $cachelife;
- $data['cacheorderby'] = $orderby;
- $data['cachecachename'] = $cachename;
- $data['cachesearchfid'] = $searchfid;
- require_once DISCUZ_ROOT.'./include/cache.func.php';
- writetocache($cachename, '', getcachevars($data));
- include(DISCUZ_ROOT.'./forumdata/cache/cache_'.$cachename.'.php');
- }
- shuffle($pic);
- $i = 0;
- $j = 0;
- while ($j < $shownums && isset($pic[$i])) {
- if(is_readable($pic[$i]['showpicpics'])) {
- $showpicpics .= $comma.$pic[$i]['showpicpics'];
- $showpiclinks .= $comma.$pic[$i]['showpiclinks'];
- $showpictexts .= $comma.$pic[$i]['showpictexts'];
- $comma = '|';
- $j++;
- }
- $i++;
- }
- ?>
-
- var swf_width=255
- var swf_height=175
- var config='5|0xffffff|0x0099ff|50|0xffffff|0x0099ff|0x000000'
- var files='<?=$showpicpics?>'
- var links='<?=$showpiclinks?>'
- var texts='<?=$showpictexts?>'
- 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 +'" />');
- document.write('<param name="movie" value="http://fun.more.jcisio.com/flash/Music/Westlife--Miss-you.swf" />');
- document.write('<param name="quality" value="high" />');
- document.write('<param name="menu" value="false" />');
- document.write('<param name="wmode" value="opaque" />');
- document.write('<param name="FlashVars" value="config='+config+'&bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'" />');
- 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" />');
- document.write('</object>');
Sao chép mã
Mình nghi ngờ đoạn này có vấn đề:
- 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 |
|