1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

Discuz!4.0.0 11月11日更新破解插件版

本帖由 小叶2005-12-03 发布。版面名称:源码讨论

  1. 小叶

    小叶 New Member

    注册:
    2005-09-04
    帖子:
    17,941
    赞:
    33
    谢谢跟大伙一起分享。
     
  2. fabulous

    fabulous New Member

    注册:
    2005-11-06
    帖子:
    139
    赞:
    1
    小叶,请教下啊,这个11.11版本,跟原来那个10.1版本,区别都有那些啊。或者说,discuz有没有在官方说明一下这个版本的升级之处啊?
    这个11.11版本,是否是discuz官方发布的:) ,当然是给他的正版用户的啊。哈哈。
     
  3. fabulous

    fabulous New Member

    注册:
    2005-11-06
    帖子:
    139
    赞:
    1
    我看discuz.net,说明天会有一项重大决定,没准会将d4免费啊。哈哈。
     
  4. fabulous

    fabulous New Member

    注册:
    2005-11-06
    帖子:
    139
    赞:
    1
    NO,是开源,免费。
     
  5. 泪随风逝

    泪随风逝 New Member

    注册:
    2005-09-17
    帖子:
    2,891
    赞:
    17
    DZ4.0完美仿动网横竖分版插件

    1。直接修改 index.htm 模板
    找到
    代码:
    
    <!--{loop $forumlist $key $forum}-->
            <!--{if $forum['type'] == 'group' && $forumlist[($key + 1)]['type'] == 'forum'}-->
                    <!--{if $key}--></tbody></table><br><!--{/if}-->
                    <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
                    <tr><td colspan="7" class="header"><table cellspacing="0" cellpadding="0" width="100%">
                    <tr class="smalltxt"><td class="bold"><a href="index.php?gid=$forum[fid]">$forum[name]</a></td><td align="right">
                    <!--{if $forum['moderators']}--><font color="{HEADERTEXT}">{lang forum_category_modedby}: $forum[moderators]</font> <!--{/if}-->
                    <a href="###" onclick="toggle_collapse('category_$forum[fid]');"><img id="category_$forum[fid]_img" src="{IMGDIR}/$forum[collapseimg]" border="0"></a>
                    </td></tr></table></td></tr>
                    <tr class="category" align="center">
                    <td width="5%"> </td>
                    <td width="51%">{lang forum_name}</td>
                    <td width="5%">{lang forum_threads}</td>
                    <td width="5%">{lang forum_posts}</td>
                    <td width="5%">{lang forum_todayposts}</td>
                    <td width="13%">{lang forum_lastpost}</td>
                    <td width="16%">{lang forum_moderators}</td>
                    </tr><tbody id="category_$forum[fid]" style="$collapse['category_'.$forum[fid]]">
            <!--{elseif $forum['permission']}-->
                    <tr>
                    <td class="altbg1" align="center">$forum[folder]</td>
                    <td class="altbg2" align="left" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
                    $forum[icon]<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a>
                    <br><span class="smalltxt">$forum[description]<!--{if isset($forum['subforums'])}--><br><span class="bold">{lang forum_subforums}:</span> $forum[subforums]<!--{/if}--></span></td>
                    <td class="altbg1" align="center">$forum[threads]</td>
                    <td class="altbg2" align="center">$forum[posts]</td>
                    <td class="altbg1" align="center">$forum[todayposts]</td>
                    <!--{if $forum['permission'] == 1}-->
                            <td class="altbg2" align="center"><span class="smalltxt"></span>{lang private_forum}</span></td>
                    <!--{else}-->
                            <!--{if is_array($forum['lastpost'])}-->
                                    <td class="altbg2"><table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr><td align="right" class="smalltxt" title="{lang forum_lastpost_in}: $forum[lastpost][subject]" nowrap>
                                    $forum[lastpost][dateline]<br>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang guest}<!--{/if}--></td>
                                    <td nowrap> <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost"><img src="{IMGDIR}/lastpost.gif" border="0"></a></td>
                                    </tr></table></td>
                            <!--{else}-->
                                    <td class="altbg2" align="center"><span class="smalltxt">{lang never}</span></td>
                            <!--{/if}-->
                    <!--{/if}-->
                    <td class="altbg1" align="center" style="word-break: keep-all"><span class="smalltxt">$forum[moderators]</span></td></tr>
            <!--{/if}-->
    <!--{/loop}-->
    
    <!--{if empty($gid) && ($_DCACHE['forumlinks'] || $whosonlinestatus)}-->
            <!--{if empty($forumlist)}--><br><br><!--{else}--></table><br><!--{/if}-->
            <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
    <!--{/if}-->
    
    替换成

    代码:
    <!-- DZ4.0完美仿动网横竖分版插件 插件制作:海儿 -->
    {eval $count=4;} 
    {eval $wid='25%';}
    {eval $incompact=array();}
    {eval $count1=4;}
    {eval $wid1='25%';}
    {eval $incompact1=array(3,109,83);}
    <!--{loop $forumlist $key $forum}-->
            <!--{if $forum['type'] == 'group' && $forumlist[($key + 1)]['type'] == 'forum'}-->
                    <!--{if $key}-->
                            <!--{if $fcount}-->
                                    <td colspan="$fcount"> </td></tr></tbody></table><br>
                            <!--{else}-->
    <!--{if in_array($forum[fid], array_merge($incompact,$incompact1))}-->
                                            </tbody></table><br>
                                    <!--{else}-->
                                            </tr></tbody></table><br>
                                    <!--{/if}-->
                            <!--{/if}-->
                    <!--{else}-->
                    <!--{/if}-->
                    <!--{if in_array($forum[fid], $incompact)}-->
                            <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
                            <tr><td colspan="3" class="header"><table cellspacing="0" cellpadding="0" width="100%">
                            <tr class="smalltxt"><td class="bold"><a href="index.php?gid=$forum[fid]">$forum[name]</a></td><td align="right">
                            <!--{if $forum['moderators']}--><font color="{HEADERTEXT}">{lang forum_category_modedby}: $forum[moderators]</font> <!--{/if}-->
                            <a href="###" onclick="toggle_collapse('category_$forum[fid]');"><img id="category_$forum[fid]_img" src="{IMGDIR}/$forum[collapseimg]" border="0"></a></td></tr></table></td></tr>
    <tbody id="category_$forum[fid]" style="$collapse['category_'.$forum[fid]]">
    
                            <tr class="altbg2">
                            {eval $fcount = $count;}
                    <!--{elseif in_array($forum[fid], $incompact1)}-->
                            <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
                            <tr><td colspan="4" class="header"><table cellspacing="0" cellpadding="0" width="100%">
                            <tr class="smalltxt"><td class="bold"><a href="index.php?gid=$forum[fid]">$forum[name]</a></td><td align="right">
                            <!--{if $forum['moderators']}--><font color="{HEADERTEXT}">{lang forum_category_modedby}: $forum[moderators]</font> <!--{/if}-->
                            <a href="###" onclick="toggle_collapse('category_$forum[fid]');"><img id="category_$forum[fid]_img" src="{IMGDIR}/$forum[collapseimg]" border="0"></a>
    </td></tr></table></td></tr>
    <tbody id="category_$forum[fid]" style="$collapse['category_'.$forum[fid]]">
                            <tr class="altbg2">
                            {eval $fcount = $count1;}
                    <!--{else}-->
                            <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
                            <tr><td colspan="7" class="header"><table cellspacing="0" cellpadding="0" width="100%">
                            <tr class="smalltxt"><td class="bold"><a href="index.php?gid=$forum[fid]">$forum[name]</a></td><td align="right">
                            <!--{if $forum['moderators']}--><font color="{HEADERTEXT}">{lang forum_category_modedby}: $forum[moderators]</font> <!--{/if}-->
                            <a href="###" onclick="toggle_collapse('category_$forum[fid]');"><img id="category_$forum[fid]_img" src="{IMGDIR}/$forum[collapseimg]" border="0"></a>
                            </td></tr></table></td></tr>
                            <tr class="category" align="center">
                            <td width="5%"> </td>
                                                    <td width="46%">{lang forum_name}</td>
                                                    <td width="6%">{lang forum_threads}</td>
                                                    <td width="6%">{lang forum_posts}</td>
                                                    <td width="6%">{lang forum_todayposts}</td>
                                                    <td width="15%">{lang forum_lastpost}</td>
                                                    <td width="18%">{lang forum_moderators}</td>
                            </tr><tbody id="category_$forum[fid]" style="$collapse['category_'.$forum[fid]]">
                            {eval $fcount = 0;}
                    <!--{/if}-->
            <!--{elseif $forum['permission']}-->
                    <!--{if in_array($forum[fup],$incompact)}-->
                            {eval $fcount--;}
                                   <!--{if $fcount == -1}--></tr><tr class="altbg2">{eval $fcount = $count-1;}<!--{/if}-->
                                   <td width="$wid" class="altbg2" align="left" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
                  <table cellpadding="0" cellspacing="0" border="0" width="100%">
                  <tr>
                  <td colspan="2" valign="top">
                   <table cellpadding="0" cellspacing="0" border="0" width="100%">
                  <tr>
                  <td><img src="{IMGDIR}/spacer.gif" border="0" width="4" height="1"><a href="forumdisplay.php?fid=$forum[fid]"  title="{lang title}:$forum['lastpost'][subject]                                                                
    最后回复发表时间:$forum[lastpost][dateline]"><span class="altbg1">$forum[name]</span></a></td>
    </tr></table>
    </td></tr>
    <tr>
    <td colspan="2" align="center" valign="bottom" class="altbg1">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" height="30" class="altbg1">
    <tr>
    <td align="left">
      <img src="{IMGDIR}/forum_today.gif" border="0"> <font color=red>$forum[todayposts]</font></td><td align="center"><img src="{IMGDIR}/forum_topic.gif" border="0"> $forum[threads]</td><td align="right"><img src="{IMGDIR}/forum_post.gif " border="0"> $forum[posts]  </td>
    </td></td>
    </tr>
    </table>
    <tr><td align="left" bordercolor="#E4EAF2" bgcolor="#E4EAF2"><SPAN class=smalltxt><b>{lang forum_moderators}:</b></SPAN>$forum[moderators]</td></tr>
    </td></tr>
              </table></td>
                    <!--{elseif in_array($forum[fup],$incompact1)}-->
                            {eval $fcount--;}
                                   <!--{if $fcount == -1}--></tr><tr class="altbg2">{eval $fcount = $count1-1;}<!--{/if}-->
                                   <td width="$wid1" class="altbg2" align="left" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
                  <table cellpadding="0" cellspacing="0" border="0" width="100%">
                  <tr>
                  <td colspan="2" valign="top">
                   <table cellpadding="0" cellspacing="0" border="0" width="100%">
                  <tr>
                  <td><img src="{IMGDIR}/spacer.gif" border="0" width="4" height="1"><a href="forumdisplay.php?fid=$forum[fid]"  title="{lang title}:$forum['lastpost'][subject]                                                                
    最后回复发表时间:$forum[lastpost][dateline]"><span class="altbg1">$forum[name]</span></a></td>
    </tr></table>
    </td></tr>
    <tr>
    <td colspan="2" align="center" valign="bottom" class="altbg1">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" height="30" class="altbg1">
    <tr>
    <td align="left">
      <img src="{IMGDIR}/forum_today.gif" border="0"> <font color=red>$forum[todayposts]</font></td><td align="center"><img src="{IMGDIR}/forum_topic.gif" border="0"> $forum[threads]</td><td align="right"><img src="{IMGDIR}/forum_post.gif " border="0"> $forum[posts]  </td>
    </td></td>
    </tr>
    </table>
    <tr><td align="left" bordercolor="#E4EAF2" bgcolor="#E4EAF2"><SPAN class=smalltxt><b>{lang forum_moderators}:</b></SPAN>$forum[moderators]</td></tr>
    </td></tr>
              </table>
                                   </td>
                    <!--{else}-->
                            <tr>
                            <td class="altbg1" align="center">$forum[folder]</td>
                            <td class="altbg2" align="left" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
                            $forum[icon]<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a>
                            <br><span class="smalltxt">$forum[description]<!--{if $forum['subforums']}--><br><span class="bold">{lang forum_subforums}:</span> $forum[subforums]<!--{/if}--></span></td>
                            <td class="altbg1" align="center">$forum[threads]</td>
                            <td class="altbg2" align="center">$forum[posts]</td>
                                                    <td class="altbg2" align="center">$forum[todayposts]</td>
                            <!--{if $forum['permission'] == 1}-->
                                    <td bgcolor="{ALTBG1}" align="center" class="smalltxt">{lang private_forum}</td>
                            <!--{else}-->
                                    <!--{if is_array($forum['lastpost'])}-->
                                            <td bgcolor="{ALTBG1}"><table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr><td class="smalltxt" nowrap>
                                    {lang title}: <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum['lastpost'][subject]</a><br>
                                                           作者: <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang guest}<!--{/if}--> <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost"><img src="{IMGDIR}/lastpost.gif" border="0"></a><br>
                                                           日期: $forum[lastpost][dateline]</td>
                                            </tr></table></td>
                                    <!--{else}-->
                                            <td bgcolor="{ALTBG1}" align="center" class="smalltxt">{lang never}</td>
                                    <!--{/if}-->
                            <!--{/if}-->
                            <td class="altbg2" align="center" class="smalltxt" style="word-break: keep-all">$forum[moderators]</td></tr>
                                                                    <!--{/if}-->
                   <!--{/if}-->
    <!--{/loop}-->
    
    <!--{if empty($gid) && ($_DCACHE['forumlinks'] || $whosonlinestatus)}-->
            <!--{if empty($forumlist)}--><br><br><!--{else}--><!--{if $fcount}--><td colspan="$fcount"> </td><!--{/if}--></tr></tbody></table><!--{/if}--><br>
            <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
    <!--{/if}-->
    
    <!--  DZ4.0完美仿动网横竖分版插件 -->
    
    2。上传附件内的图片到你的风格文件夹内
    3。设置的参数(在上面INDEX。HTM中的代码)

    {eval $count=3;} //横版个数
    {eval $wid='33.3%';} //对应每个横版的宽度
    {eval $incompact=array(7,21);} //要以横分版显示的分区id(这个要填的ID是分区的$gid,而不是子板块,多个分区块用,隔开)
    {eval $count1=4;} //可以设置不同分区不同横分版个数
    {eval $wid1='25%';} //对应每个横分版的宽度
    {eval $incompact1=array(8);} //要以横分版显示的分区id(这个要填的ID是分区的$gid,而不是子板块,多个分区块用,隔开)没有或者不需要请留空
     
    #85 泪随风逝, 2005-12-11
    最后编辑: 2005-12-11
  6. Henry

    Henry New Member

    注册:
    2005-09-04
    帖子:
    1,166
    赞:
    4
    #86 Henry, 2005-12-11
    最后编辑: 2005-12-11
  7. 小叶

    小叶 New Member

    注册:
    2005-09-04
    帖子:
    17,941
    赞:
    33
    复制本帖地址到QQ、MSN...上的好友

    将附件图片上传到images/模板目录下

    打开viewthread.htm



    下面加

     
  8. 小叶

    小叶 New Member

    注册:
    2005-09-04
    帖子:
    17,941
    赞:
    33
    首页热门帖.rar (5.7 KB)
     
  9. 小叶

    小叶 New Member

    注册:
    2005-09-04
    帖子:
    17,941
    赞:
    33
    帖子签名的美化框



    修改模版viewthread.htm

    找到

    代码:


    修改为:

    代码:

    找到:

    代码:

    修改为:


     
  10. swenge

    swenge New Member

    注册:
    2005-11-28
    帖子:
    386
    赞:
    1
    想要一个商业区的风格

    小叶,能不能转贴一下最新的 2005 Purple X'mas for dz4.0的风格!~~

    这个风格在商业区是免费发布的!:rolleyes:
     
  11. 小叶

    小叶 New Member

    注册:
    2005-09-04
    帖子:
    17,941
    赞:
    33
    分组框标签[Fbox]+按扭
    安装:

    ══════════════════════════════════════
    ■ 1. include/bbcode.js
    ══════════════════════════════════════
    文章最后加:

    function fbox() {
    if (helpmode) {
    alert(fbox_help);
    } else if (getSelectedText()) {
    var range = document.selection.createRange();
    range.text = "\n[fbox=无标题]" + range.text + "[/fbox]\n";
    } else if (advmode) {
    AddTxt="\n[fbox=标题]"+fbox_normal+"[/fbox]\n";
    AddText(AddTxt);
    } else {
    txt1=prompt(fbox_title,fbox_title);
    txt=prompt(fbox_normal,fbox_normal);
    txt1=txt1==0 || !txt1?'=无标题':"="+txt1;
    if (txt!=null) {
    AddTxt="\n[fbox"+txt1+"]"+txt;
    AddText(AddTxt);
    AddText("[/fbox]\n");
    }
    }
    }
    ══════════════════════════════════════
    ■ 2.include/discuzcode.func.php
    ══════════════════════════════════════
    查找:

    "/\+)@([a-z0-9\-_]+[.][a-z0-9\-_.]+)\](.+?)\[\/email\]/is",
    下面加:

    "/\[fbox=(.+?)\](.+?)\[\/fbox\]/is",
    查找:

    "<a href=\"<A href="mailto:\\1@\\2\">\\3</a">mailto:\\1@\\2\">\\3</a>",
    下面加:

    "<fieldset style=\"padding: 1em; width=90%\" align=\"center\"><legend>\\1</legend>\\2<br></fieldset>",
    ══════════════════════════════════════
    ■3. templates\default\post_bbinsert.htm
    ══════════════════════════════════════
    查找:

    var image_normal = "{lang post_discuzcode_image_normal}";
    下面加:

    var fbox_help = "{lang post_discuzcode_fbox}";
    var fbox_normal = "{lang post_discuzcode_fbox_normal}";
    var fbox_title = "{lang post_discuzcode_fbox_title}";
    查找:

    <a href="javascript:flash()"><img src="{IMGDIR}/bb_flash.gif" border="0" alt="{lang post_discuzcode_flash}"></a>
    后面加:

    <a href="javascript:fbox()"><img src="images/common/fbox.gif" border="0" alt="{lang post_discuzcode_fbox}"></a>
    ══════════════════════════════════════
    ■4. templates\default\templates.lang.php
    ══════════════════════════════════════
    查找:

    'post_discuzcode_image_normal' => '请输入图像的 URL。',
    下面加:

    'post_discuzcode_fbox' => '插入 FBOX 标签!',
    'post_discuzcode_fbox_title' => '输入你要插入的 FBOX 标签的标题:',
    'post_discuzcode_fbox_normal' => '输入您要插入的 FBOX 标签的内容:',
    ══════════════════════════════════════
    ■5把附件3[fbox.gif]上传到论坛的(IMAGES/COMMON]目录中.

    http://www.discuz.net/attachments/month_0512/1_LemahlYiLrzr.gif
    http://www.discuz.net/attachments/month_0512/2_z5VE9YblRA55.gif
     
  12. 小叶

    小叶 New Member

    注册:
    2005-09-04
    帖子:
    17,941
    赞:
    33
    论坛头像随机变换代码



    代码:

     
  13. 小叶

    小叶 New Member

    注册:
    2005-09-04
    帖子:
    17,941
    赞:
    33
    2006星座运势(绿色插件)

    ================
    安装方法:
    1.上传文件
    2.修改:header.htm
    在恰当的地方加上:

    | <a href="astro.php">{星座运势}</a>
     
  14. 小叶

    小叶 New Member

    注册:
    2005-09-04
    帖子:
    17,941
    赞:
    33
    我也没商业区的ID,,
    很想买一套正版的玩玩,没钱啊.
     
  15. swenge

    swenge New Member

    注册:
    2005-11-28
    帖子:
    386
    赞:
    1
    :( 郁闷啊,看来只有盗一下了,等盗好了偶再来发!:D
     
  16. 泪随风逝

    泪随风逝 New Member

    注册:
    2005-09-17
    帖子:
    2,891
    赞:
    17
    Xmas For Discuz!4.0 风格

    风格图片目录 -- images/xmas
    风格模版目录 -- templates/xmas
    风格配色方案 -- discuz_style_Xmas.txt
    风格配色文件 -- color.htm


    //-------------------安装方法-------------------------------
    1. 打开 discuz_style_Xmas.txt 文件,把里面所有内容复制出来,到论坛 -> 系统设置 -> 界面风格 -> 界面风格 内
    在 “导入界面方案”内粘帖上复制出来的内容,然后点 “提交”

    2. 把风格包中的 images 内的 xmas 目录上传到论坛目录下 images 目录内

    3. 把风格包中的 templates 内的 xmas 目录上传并覆盖到论坛目录下 templates 目录内的 xmas

    4. 最后到 论坛 -> 系统设置 -> Discuz!工具 -> 更新缓存,返回论坛选择风格看效果吧!
    //---------------------------------------------------------

    或者阅读更详细的安装方法 http://www.discuz.net/viewthread.php?tid=163012

    最后,此风格为免费商业风格,风格版权归 Tea(茶) ,请保留一切版权说明,谢谢!
     

    附件文件:

  17. swenge

    swenge New Member

    注册:
    2005-11-28
    帖子:
    386
    赞:
    1
    偶已经发了,看这里,呵呵!
    http://bbs.chinahtml.com/t8961.html

    演示:

    [​IMG]