论坛转帖工具论坛表情大全万年历 天气预报 百度搜索
发新话题
打印

Discuz!6插件收集

本主题由 星云 于 2008-7-18 15:11 分类


UCenter Home 内置风格的 Logo 源文件

为方便大家修改风格,特别是将 UCenter Home 的 Logo 替换为自己网站的 Logo,特整理出内置 8 套风格的 Logo 源文件(PSD 格式),提供下载。
uch_theme_source.zip (1.44 MB)


模板首页信息修改在

header.htm


UC头像在/uc/data/avatar/000/00/下


footer.htm模板 改版权


dz6.1版 帖子右上角显示"你是第几个浏览者

dz6.1版 帖子右上角显示"你是第几个浏览者 演示

打开viewthread.htm
找到
复制内容到剪贴板
代码:
<!--{if $post['subject']}-->
在后面加上
复制内容到剪贴板
代码:
<!--{if $post['first']}--><span style="filter: glow(color=red,strength=2); height:12px; color:white; padding:1px; font-size:11px; float:right;">您是本帖第{echo $thread[views]+1}个浏览者</span><!--{/if}--></span><br><br>
文字颜色可以自己修改下
color=red    颜色
color:white  颜色


UCenter Home 默认头像修改

把這三個頭像文件FTP上傳到 UCenter\images 文件夾中,替換掉原來的默認頭像就可以了。如果不喜歡這三個默認頭像,你可以根據自己網站的特點重新制作。
(記住:是UCenter中的 images 文件夾不是UCenter Home 中的 images 文件夾!)

頭像名稱、大小:
noavatar_big.gif   200X200
noavatar_middle.gif  64X64
noavatar_small.gif  48X48

附件

默認頭像.rar (418.69 KB)

2008-5-2 13:41, 下载次数: 80



贴内根据性别显示用户名颜色 For 6.1

找到并打开:\templates\default\viewthread.htm

查找代码:(有两处代码,不要遗漏)
复制内容到剪贴板
代码:
$post[author]
替换成:
复制内容到剪贴板
代码:
<!--{if $post['gender'] == 1}--><font color="blue">$post[author]</font>
<!--{elseif $post['gender'] == 2}--><font color="red">$post[author]</font>
<!--{else}--><font color="#000000">$post[author]<!--{/if}-->
保存并上传!


PS:
        red(红色,代表女生)
        blue(蓝色,代表男生)
        #000000(黑色,代表性别保密)


点击【最新回复】的帖子进入最后一页

下面以首页四格为例子

打开discuz.htm进行修改

在<!-- 首页四格代码开始 -->和<!-- 首页四格代码结束 -->之间找到
复制内容到剪贴板
代码:
<div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$rthread[tid]" $rthread['highlight'] title='最新回复 {LF}所在论坛: $rthread[forumname]{LF}主题标题: $rthread[subject]{LF}主题作者: $rthread[author]{LF}发表时间: $rthread[date]{LF}浏览次数: $rthread[views] 次{LF}回复次数: $rthread[replies] 次{LF}最后回复: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]'>$rthread[view_subject]</a></div>
修改为:
复制内容到剪贴板
代码:
<div style="overflow: hidden;height: 20px;width: 100%;"><a href="redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost" $rthread['highlight'] title='最新回复 {LF}所在论坛: $rthread[forumname]{LF}主题标题: $rthread[subject]{LF}主题作者: $rthread[author]{LF}发表时间: $rthread[date]{LF}浏览次数: $rthread[views] 次{LF}回复次数: $rthread[replies] 次{LF}最后回复: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]'>$rthread[view_subject]</a></div>
从上面的代码中可以看出主要修改是的
复制内容到剪贴板
代码:
<a href="viewthread.php?tid=$rthread[tid]" $rthread['highlight']
改为
复制内容到剪贴板
代码:
<a href="redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost" $rthread['highlight']


首页四格下加一行今日发贴排行的插件

第一步:修改index.php(修改前请先做好备份,以防万一)

查找
复制内容到剪贴板
代码:
$rsshead = $rssstatus
在其上的代码前会有一段标识:
复制内容到剪贴板
代码:
/ /----首页多格代码开始   //----首页多格代码结束
在 //----首页多格代码结束 前加入
复制内容到剪贴板
代码:
//今日发贴排行
$tomonth=date(n);
$todate=date(j);
$toyear=date(Y);
$time=mktime(0,0,0,$tomonth,$todate,$toyear);
$query=$db->query("select count(pid) as num,authorid,author from $tablepre"."posts where dateline>=$time group by authorid order by num desc limit 0,10");
while($result=$db->fetch_array($query)){
        $poststar.="<a href=space.php?uid=".$result[authorid].">".cutstr($result[author],10)."</a> <font color=red>[".$result[num]."]</font>  ";
}
第二步:修改templates/你使用模板目录下/discuz.htm文件:

找到
复制内容到剪贴板
代码:
</table>
</div>
<!-- 首页多格代码结束 -->
在之前加入:
复制内容到剪贴板
代码:
<tr>
<td colspan=4>今日发贴TOP10:$poststar</td>
</tr>
安装完成!
———————————————————————————————————————————

如果希望在四格下加入三行发贴排行展示的朋友可把第一步加入代码换成
1.
复制内容到剪贴板
代码:
//今日发贴排行
$tomonth=date(n);
$todate=date(j);
$toyear=date(Y);
$time=mktime(0,0,0,$tomonth,$todate,$toyear);
$query=$db->query("select count(pid) as num,authorid,author from $tablepre"."posts where dateline>=$time group by authorid order by num desc limit 0,10");
while($result=$db->fetch_array($query)){
        $poststar.="<a href=space.php?uid=".$result[authorid].">".cutstr($result[author],10)."</a> <font color=red>[".$result[num]."]</font>  ";
}
//本月发贴排行
$tomonth=date(n);
$toyear=date(Y);
$time=mktime(0,0,0,$tomonth,0,$toyear);
$query=$db->query("select count(pid) as num,authorid,author from $tablepre"."posts where dateline>=$time group by authorid order by num desc limit 0,10");
while($result=$db->fetch_array($query)){
        $monthpoststar.="<a href=space.php?uid=".$result[authorid].">".cutstr($result[author],10)."</a> <font color=red>[".$result[num]."]</font>  ";
}
//当年发贴排行
$toyear=date(Y);
$time=mktime(0,0,0,0,0,$toyear);
$query=$db->query("select count(pid) as num,authorid,author from $tablepre"."posts where dateline>=$time group by authorid order by num desc limit 0,10");
while($result=$db->fetch_array($query)){
        $yearpoststar.="<a href=space.php?uid=".$result[authorid].">".cutstr($result[author],6)."</a> <font color=red>[".$result[num]."]</font>  ";
}
同时把第二步加入代码换成
复制内容到剪贴板
代码:
<tr>
<td colspan=4>今日发贴TOP10:$poststar</td>
</tr>
<tr>
<td colspan=4>本月发贴TOP10:$monthpoststar</td>
</tr>
<tr>
<td colspan=4>当年发贴TOP10:$yearpoststar</td>
</tr>
更新缓存!

参考http://www.discuz.net/thread-788105-1-1.html


发帖随机奖惩插件 简体版 For Discuz! 6.1

说明一:此插件需要新增两张数据表,在cdb_posts表增加一个字段
说明二:此插件随机奖惩积分可以后台设置
说明三:插件本身默认只带两个随机事件,请自己到论坛后台添加各种随机事件
说明四:本插件可以通过后台控制哪些板块开启随机奖惩,并可控制每个板块的不同随机概率

1.上传Web目录所有文件到论坛根目录下

2.上传random_install.php 文件到论坛根目录下

3.运行http://您的论坛地址/random_install.php,执行数据库安装操作,然后删除此文件

4.请根据您的论坛版本导入插件数据discuz_plugin_wxrandom.txt

5.配置此插件的相关参数

6.开启发表主题随机奖惩,打开include/newthread.inc.php
   找到:
复制内容到剪贴板
代码:
$pid = $db->insert_id();
下面加入:
复制内容到剪贴板
代码:
require_once("random.php");
7.开启发表回复随机奖惩,打开include/newreply.inc.php
   找到:
复制内容到剪贴板
代码:
$pid = $db->insert_id();
下面加入:
复制内容到剪贴板
代码:
require_once("random.php");
8.开启贴内显示随机事件信息,打开templates/default/viewthread.htm
   找到
复制内容到剪贴板
代码:
<div id="postmessage_$post[pid]" class="t_msgfont">$post[message]</div>
下面加这段
复制内容到剪贴板
代码:
<!--{if $post['randomwords']!=''}-->
                <div class="spaceborder"><font color="#FF0000"><b>$post[randomwords]</b></font></div><br>
                <!--{/if}-->
发帖随机奖惩.rar (9.06 KB)

http://www.discuz.net/thread-904806-1-1.html


主题复制地址,推荐给QQ/MSN上的好友 For 6.0/6.1(推广积分)

显示在下面:


相关帖子:
http://bbs.gonet8.com/viewthread ... &fromuid=1#pid10451

功能,1,非会员直接推广。
      2,注册会员可得到论坛自身设置的积分。

推广积分是要次日才看到的。要马上生效(其它设置--计划任务--论坛推广清理---立即执行)

后台---论坛管理---模板编辑---默认模板--- viewthread.htm

1.找到
复制内容到剪贴板
代码:
<!--{if $post['signature'] && !$post['anonymous'] && $showsignatures}-->
2.上面加入以下内容
复制内容到剪贴板
代码:
<div align="center">
<!--{if $post['number'] == 1}-->
        <script language="JavaScript">
        <!--
        function copyUrl(url){
        var content='';
        window.clipboardData.setData("Text",url);
        alert("复制成功,请粘贴到你的QQ/MSN上推荐给你的好友,员会奖励相应积分");
        }//-->
        </script>
        <a href="javascript:copyUrl('$post[subject]\n{$boardurl}
viewthread.php?
tid=$tid&fromuid=$discuz_uid')">
<img src="images/copy.gif" border="0"></a>
        <!--{/if}--></div>
3.图片放到images目录下



使全部网页变灰的代码

复制内容到剪贴板
代码:
<style>
html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }
</style>
发新话题
管理员:星云 QQ:22000644 客服电话:[13937372266]-[15037378366] 延津网监备案号:4107260001
延津网警提示:拒绝任何人以任何形式在延津之家发表与中华人民共和国法律和法规相抵触的言论!