Manyou³ÏÑû¿ª·¢Õß¼ÓÃË | ³£¼ûÎÊÌâ
¡¶Õ¾³¤¡·¾ãÀÖ²¿¹Ù·½Èº¹«²¼ ³ÇÊÐÁªÂçÔ±»ú»á¶à¶à
Á¢¼´Ãâ·ÑÏÂÔØ Discuz!7.0.0 Õýʽ°æ
°²×°Éý¼¶Ö¸ÄÏ | Óû§ÊÖ²á | ÐÂÊÖ½¨Õ¾Ñ§ÌÃ
»ùÓÚ.net¼Ü¹¹µÄDiscuz!NT2.6Õýʽ°æ·¢²¼
Comsenz¹«Ë¾2009ÄêÕÐÏÍÄÉÊ¿£¬ÆÚ´ýÄúµÄ¼ÓÃË
Discuz!ÊÕ·Ñ·þÎñÄÚÈݼ°¼Û¸ñ
7ÔÂÖØÇì¡¢³É¶¼¡¢Î÷°²ÈýµØÉçÇøÔËÓªÊµÕ½ÌØÑµËÙ±¨Ãû
Discuz!/UCHome רÓùٷ½ÐéÄâÖ÷»ú
ÄÁ³¡Ð·þÒ»ÆðÁªÔË£º¶¹½¬»úÃâ·Ñ´ø»Ø¼Ò
»ùÓÚDiscuz!µÄÃâ·ÑÂÛ̳¿Õ¼ä5D6D
¿µÊ¢´´Ïë¡¶Õ¾³¤¡·¾ãÀÖ²¿18³ÇÊл¥¶¯Ö®Âñ¨Ãûing
·µ»ØÁÐ±í »Ø¸´ ·¢Ìû

ÉÏ´«ÒôÀÖ¼°ÊÓÆµÀàµÄ¸½¼þÔÚÏß²¥·Å For D6Õýʽ°æ By Oytktk(¾¸ìª)

-




[Ô­´´]ÉÏ´«ÒôÀÖ¼°ÊÓÆµÀàµÄ¸½¼þÔÚÏß²¥·Å For D6Õýʽ°æ By Oytktk(¾¸ìª)
²å¼þÃû³Æ£º ÉÏ´«ÒôÀÖ¼°ÊÓÆµÀàµÄ¸½¼þÔÚÏß²¥·Å
ÊÊÓð汾£º D6Õýʽ°æ
ÓïÑÔ±àÂ룺 GBK
²å¼þ×÷Õߣº Oytktk(¾¸ìª)
Ч¹ûÑÝʾ£º http://bbs.bizhs.com/viewthread.php?tid=84
²å¼þ¹¦ÄÜ£º ÈÃÉÏ´«ÉÏÀ´µÄ¿ÉÒÔ²¥·ÅÀàÐ͵ĸ½¼þÖ±½Ó²¥·Å, ²¢ÓëÂÛ̳°²È«ÉèÖÃÒÔ¼°³öÊÛºÍÔĶÁȨÏÞ¹Ò¹´.
          Ö§³ÖµÄÀà±ðÓÐ3Àà:   'avi', 'wmv', 'mpg', 'wav', 'wma', 'mp3', 'mid', 'rm', 'rmvb', 'flash'

[°²×°·½·¨]:

1.include\attachment.func.php

²éÕÒ:
  1. $attach['attachimg'] = $showimages && $attachimgpost && $attach['isimage'] && (!$attach['readperm'] || $readaccess >= $attach['readperm']) ? 1 : 0;
¸´ÖÆ´úÂë
ÏÂÃæ¼Ó:
  1. //=========Start  ÉÏ´«ÒôÀÖ¼°ÊÓÆµÀàµÄ¸½¼þÔÚÏß²¥·Å For D6Õýʽ°æ By Oytktk(¾¸ìª)
  2.    $attach['attachwmv'] = $attachimgpost && in_array($extension, array('avi', 'wmv', 'mpg', 'wav', 'wma', 'mp3', 'mid')) && (!$attach['readperm'] || $readaccess >= $attach['readperm']) ? 1 : 0;
  3.    $attach['attachrmv'] = $attachimgpost && in_array($extension, array('rm', 'rmvb')) && (!$attach['readperm'] || $readaccess >= $attach['readperm']) ? 1 : 0;
  4.    $attach['attachswf'] = $attachimgpost && $extension == 'swf' && (!$attach['readperm'] || $readaccess >= $attach['readperm']) ? 1 : 0;
  5. //=========End  ÉÏ´«ÒôÀÖ¼°ÊÓÆµÀàµÄ¸½¼þÔÚÏß²¥·Å For D6Õýʽ°æ By Oytktk(¾¸ìª)
¸´ÖÆ´úÂë
2. templates\default\discuzcode.htm

²éÕÒ:
  1. function attachlist($attach) {
¸´ÖÆ´úÂë
¸ÄΪ:
  1. //=========Start  ÉÏ´«ÒôÀÖ¼°ÊÓÆµÀàµÄ¸½¼þÔÚÏß²¥·Å For D6Õýʽ°æ By Oytktk(¾¸ìª)
  2. function attachlist($attach) {
¸´ÖÆ´úÂë
ÔÙÕÒ:
  1. function attachinpost($attach) {
¸´ÖÆ´úÂë
¸ÄΪ:
  1. //=========End  ÉÏ´«ÒôÀÖ¼°ÊÓÆµÀàµÄ¸½¼þÔÚÏß²¥·Å For D6Õýʽ°æ By Oytktk(¾¸ìª)

  2. function attachinpost($attach) {
¸´ÖÆ´úÂë
°ÑÁ½¸ö//======Ö®¼äµÄÄÚÈݸÄΪ:
function attachlist($attach) {
global $attachrefcheck, $extcredits, $creditstrans, $ftp, $thumbstatus;
}-->
<!--{block return}-->
        <dl class="t_attachlist">
        <!--{if $attach['attachimg']}-->
                <dt>
                        $attach[attachicon]
                        <a href="attachment.php?aid=$attach[aid]&amp;nothumb=yes" class="bold" target="_blank">$attach[filename]</a>
                        <em>($attach[attachsize])</em>
                </dt>
                <dd>
                        <p>
                                $attach[dateline]
                                <!--{if $attach['readperm']}-->, {lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
                                <!--{if $attach['price']}-->, {lang price}: <strong>{$extcredits[$creditstrans][title]} $attach[price] {$extcredits[$creditstrans][unit]}</strong> &nbsp;[<a href="misc.php?action=viewattachpayments&amp;aid=$attach[aid]" target="_blank">{lang pay_view}</a>]
                                        <!--{if !$attach['payed']}-->
                                                &nbsp;[<a href="misc.php?action=attachpay&amp;aid=$attach[aid]" target="_blank">{lang attachment_buy}</a>]
                                        <!--{/if}-->
                                <!--{/if}-->
                        </p>
                        <!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
                        <!--{if !$attach['price'] || $attach['payed']}-->
                                <p>
                                <!--{if $thumbstatus && $attach['thumb']}-->
                                        <!--{if ($attachrefcheck || $attach['remote']) && !($attach['remote'] && substr($ftp['attachurl'], 0, 3) != 'ftp' && !$ftp['hideurl'])}-->
                                                <a href="#zoom"><img onclick="zoom(this, 'attachment.php?aid=$attach[aid]&amp;noupdate=yes&amp;nothumb=yes')" src="attachment.php?aid=$attach[aid]" alt="$attach[filename]" /></a>
                                        <!--{else}-->
                                                <a href="#zoom"><img onclick="zoom(this, '$attach[url]/$attach[attachment]')" src="$attach[url]/$attach[attachment].thumb.jpg" alt="$attach[filename]" /></a>
                                        <!--{/if}-->
                                <!--{else}-->
                                        <!--{if ($attachrefcheck || $attach['remote']) && !($attach['remote'] && substr($ftp['attachurl'], 0, 3) != 'ftp' && !$ftp['hideurl'])}-->
                                                <img src="attachment.php?aid=$attach[aid]&amp;noupdate=yes" border="0" onload="attachimg(this, 'load')" onmouseover="attachimg(this, 'mouseover')" onclick="zoom(this, 'attachment.php?aid=$attach[aid]')" alt="$attach[filename]" />
                                        <!--{else}-->
                                                <img src="$attach[url]/$attach[attachment]" onload="attachimg(this, 'load')" onmouseover="attachimg(this, 'mouseover')" onclick="zoom(this, '$attach[url]/$attach[attachment]')" alt="$attach[filename]" />
                                        <!--{/if}-->
                                <!--{/if}-->
                                </p>
                        <!--{/if}-->
                </dd>
        <!--{elseif $attach['attachwmv'] }-->
                <dt>
                        $attach[attachicon]
                        <a href="attachment.php?aid=$attach[aid]&amp;nothumb=yes" class="bold" target="_blank">$attach[filename]</a>
                        <em>($attach[attachsize])</em>
                </dt>
                <dd>
                        <p>
                                $attach[dateline]
                                <!--{if $attach['readperm']}-->, {lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
                                <!--{if $attach['price']}-->, {lang price}: <strong>{$extcredits[$creditstrans][title]} $attach[price] {$extcredits[$creditstrans][unit]}</strong> &nbsp;[<a href="misc.php?action=viewattachpayments&amp;aid=$attach[aid]" target="_blank">{lang pay_view}</a>]
                                        <!--{if !$attach['payed']}-->
                                                &nbsp;[<a href="misc.php?action=attachpay&amp;aid=$attach[aid]" target="_blank">{lang attachment_buy}</a>]
                                        <!--{/if}-->
                                <!--{/if}-->
                        </p>
                        <!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
                        <!--{if !$attach['price'] || $attach['payed']}-->
                                <p>
                        <!--{if ($attachrefcheck || $attach['remote']) && !($attach['remote'] && substr($ftp['attachurl'], 0, 3) != 'ftp' && !$ftp['hideurl'])}-->
                                <br><object align="middle" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" class="OBJECT" width="460" height="350" ><PARAM NAME="AUTOSTART" VALUE="0" ><param name="ShowStatusBar" value="-1"><param name="Filename" value="attachment.php?aid=$attach[aid]&noupdate=yes"><embed type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" flename="mp" src="attachment.php?aid=$attach[aid]&noupdate=yes" width="460" height="350"></embed></object>
                        <!--{else}-->
                                <br><object align="middle" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" class="OBJECT" width="460" height="350" ><PARAM NAME="AUTOSTART" VALUE="0" ><param name="ShowStatusBar" value="-1"><param name="Filename" value="attachment.php?aid=$attach[aid]&noupdate=yes"><embed type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" flename="mp" src="$attach[url]/$attach[attachment]" width="460" height="350"></embed></object>
                        <!--{/if}-->
                                </p>
                        <!--{/if}-->
                </dd>
        <!--{elseif $attach['attachrmv'] }-->
                <dt>
                        $attach[attachicon]
                        <a href="attachment.php?aid=$attach[aid]&amp;nothumb=yes" class="bold" target="_blank">$attach[filename]</a>
                        <em>($attach[attachsize])</em>
                </dt>
                <dd>
                        <p>
                                $attach[dateline]
                                <!--{if $attach['readperm']}-->, {lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
                                <!--{if $attach['price']}-->, {lang price}: <strong>{$extcredits[$creditstrans][title]} $attach[price] {$extcredits[$creditstrans][unit]}</strong> &nbsp;[<a href="misc.php?action=viewattachpayments&amp;aid=$attach[aid]" target="_blank">{lang pay_view}</a>]
                                        <!--{if !$attach['payed']}-->
                                                &nbsp;[<a href="misc.php?action=attachpay&amp;aid=$attach[aid]" target="_blank">{lang attachment_buy}</a>]
                                        <!--{/if}-->
                                <!--{/if}-->
                        </p>
                        <!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
                        <!--{if !$attach['price'] || $attach['payed']}-->
                                <p>
                        <br><object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="460" height="300" viewastext><param name="Autostart" value="0"><param name="CONTROLS" value="ImageWindow"><param name="enableContextMenu" value="0"><param name="CONSOLE" value="_master"><param name="LOOP" value="-1"><param name="CENTER" value="0"></object><br><object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height="64" width="460" VIEWASTEXT><param name="_ExtentX" value="18256"><param name="_ExtentY" value="794"><param name="Autostart" value="0"><param name="loop" value="-1"><param name="center" value="0"><param name="Backgroundcolor" value="#000000"><param name="src" value="$attach[url]/$attach[attachment]"></object>
                                </p>
                        <!--{/if}-->
                </dd>
        <!--{elseif $attach['attachswf'] }-->
                <dt>
                        $attach[attachicon]
                        <a href="attachment.php?aid=$attach[aid]&amp;nothumb=yes" class="bold" target="_blank">$attach[filename]</a>
                        <em>($attach[attachsize])</em>
                </dt>
                <dd>
                        <p>
                                $attach[dateline]
                                <!--{if $attach['readperm']}-->, {lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
                                <!--{if $attach['price']}-->, {lang price}: <strong>{$extcredits[$creditstrans][title]} $attach[price] {$extcredits[$creditstrans][unit]}</strong> &nbsp;[<a href="misc.php?action=viewattachpayments&amp;aid=$attach[aid]" target="_blank">{lang pay_view}</a>]
                                        <!--{if !$attach['payed']}-->
                                                &nbsp;[<a href="misc.php?action=attachpay&amp;aid=$attach[aid]" target="_blank">{lang attachment_buy}</a>]
                                        <!--{/if}-->
                                <!--{/if}-->
                        </p>
                        <!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
                        <!--{if !$attach['price'] || $attach['payed']}-->
                                <p>
                        <!--{if ($attachrefcheck || $attach['remote']) && !($attach['remote'] && substr($ftp['attachurl'], 0, 3) != 'ftp' && !$ftp['hideurl'])}-->
                                <br><embed width="460" height="350" src="attachment.php?aid=$attach[aid]&noupdate=yes" type="application/x-shockwave-flash"></embed>
                        <!--{else}-->
                                <br><embed width="460" height="350" src="$attach[url]/$attach[attachment]" type="application/x-shockwave-flash"></embed>
                        <!--{/if}-->
                                </p>
                        <!--{/if}-->
                </dd>
        <!--{else}-->
                <dt>
                        $attach[attachicon]
                        <a href="attachment.php?aid=$attach[aid]" target="_blank">$attach[filename]</a>
                        <em>($attach[attachsize])</em>
                </dt>
                <dd>
                        <p>
                                $attach[dateline], {lang downloads}: $attach[downloads]
                                <!--{if $attach['readperm']}-->, {lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
                                <!--{if $attach['price']}-->
                                        , {lang price}: <strong>{$extcredits[$creditstrans][title]} $attach[price] {$extcredits[$creditstrans][unit]}</strong> &nbsp;[<a href="misc.php?action=viewattachpayments&amp;aid=$attach[aid]" target="_blank">{lang pay_view}</a>]
                                        <!--{if !$attach['payed']}-->
                                                &nbsp;[<a href="misc.php?action=attachpay&amp;aid=$attach[aid]" target="_blank">{lang attachment_buy}</a>]
                                        <!--{/if}-->
                                <!--{/if}-->
                        </p>
                        <!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
                </dd>
        <!--{/if}-->
        </dl>
<!--{/block}-->
<!--{eval return $return;}-->
<!--{eval
}
[B]²¹³ä:[/B]
Èç¹ûÏëÈÃÉÏ´«µÄ¸½¼þʹÓÃ[attach]???[/attach]ÐÎʽµÄÒ²¿ÉÒÔÔÚÏß²¥·ÅµÄ»°,
°´ÒÔÏ·½·¨ÐÞ¸Ä.

´ò¿ª  templates\default\discuzcode.htm

²éÕÒ:

<!--{if $attach[description]}-->$attach[description]<br /><!--{/if}-->

ÏÂÃæ¼Ó:
                <!--{elseif $attach['attachwmv'] }-->
                        <br><dt>
                        $attach[attachicon]
                        <a href="attachment.php?aid=$attach[aid]&nothumb=yes" class="bold" target="_blank">$attach[filename]</a>
                        <em>($attach[attachsize])</em>
                        </dt>
                        <br><object align="middle" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" class="OBJECT" width="460" height="350" ><PARAM NAME="AUTOSTART" VALUE="0" ><param name="ShowStatusBar" value="-1"><param name="Filename" value="attachment.php?aid=$attach[aid]&noupdate=yes"><embed type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" flename="mp" src="attachment.php?aid=$attach[aid]&noupdate=yes" width="460" height="350"></embed></object>
                <!--{elseif $attach['attachrmv'] }-->
                        <br><dt>
                        $attach[attachicon]
                        <a href="attachment.php?aid=$attach[aid]&nothumb=yes" class="bold" target="_blank">$attach[filename]</a>
                        <em>($attach[attachsize])</em>
                        </dt>
                        <br><object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="460" height="300" viewastext><param name="Autostart" value="0"><param name="CONTROLS" value="ImageWindow"><param name="enableContextMenu" value="0"><param name="CONSOLE" value="_master"><param name="LOOP" value="-1"><param name="CENTER" value="0"></object><br><object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height="64" width="460" VIEWASTEXT><param name="_ExtentX" value="18256"><param name="_ExtentY" value="794"><param name="Autostart" value="0"><param name="loop" value="-1"><param name="center" value="0"><param name="Backgroundcolor" value="#000000"><param name="src" value="$attach[url]/$attach[attachment]"></object>
                <!--{elseif $attach['attachswf'] }-->
                        <br><dt>
                        $attach[attachicon]
                        <a href="attachment.php?aid=$attach[aid]&nothumb=yes" class="bold" target="_blank">$attach[filename]</a>
                        <em>($attach[attachsize])</em>
                        </dt>
                        <br><embed width="460" height="350" src="attachment.php?aid=$attach[aid]&noupdate=yes" type="application/x-shockwave-flash"></embed>
ÕâÑù¾ÍOKÁË...²»¹ýÎÒ²»ÍƼöÕâÑùµÄŶ..»áºÜÂé·³ºÇºÇ~~

[ ±¾Ìû×îºóÓÉ oytktk ÓÚ 2007-9-2 18:37 ±à¼­ ]
2

ÆÀ·Ö´ÎÊý

  • flywolf_ly

  • bff1978

Áôλ..¸üÐÂ...
¸üÐÂÓÃ.......
ɳ·¢ÄØ?
תÈÃÓòÃû37zl.com£¬37zl.cn£»23nc.com£¬23nc.cn£»epalhome.cn£¬sofubang.com
ÏÈÇÀʦ¸µ¸öɳ·¢
ÍíÁË£¬±ð˵ɳ·¢ÁË£¬WC¶¼Ã»ÁË
ÕýÐèÒª£¡Ð»Ð»ÁË £¬ÐÞ¸ÄÈ¥£¡
ÕýÐèÒª£¡Ð»Ð»ÁË £¬ÐÞ¸ÄÈ¥£¡
²»ºÃ¡£mp3ºÍÆäËûÊÓÆµÎļþÊÇÒ»ÑùµÄ½çÃæ²»Ì«ÃÀ¹Û¡£¡£¡£
²¥·ÅÒôƵµÄ²»ÒªÊÓÆµ¿ò¾ÍºÃÁË¡£
ÎÒÇáÇáµÄ×ßÁË£¬ÕýÈçÎÒÇáÇáµÄÀ´¡£¿Ûһϰâ»ú£¬²»ÁôÏÂÒ»¸ö»î¿Ú£¡
Õâ²»ÊʺÏÐéÄâÖ÷»úµÄÓû§°ÉÄÇÀïÈ¥ÕÒÄÇô´óµÄ¿Õ¼ä
Ïë¿´ÃÀÅ®¾ÍÀ´¡ú¡úhttp://antm.cn
·µ»ØÁбí