延津之家's Archiver

星云 发表于 2008-11-19 14:42

Discuz!7.0插件模板

默认模板LOGO源文件


QQ 11月金秋风格


更多可以看
[url]http://www.discuz.net/forum-185-1.html[/url]
[url]http://www.dishack.com/[/url]

星云 发表于 2008-11-19 14:54

边栏登录框 V1.0 (解决出现2个我的状态窗口的方法)
[url]http://www.dishack.com/thread-164-1-1.html[/url]

相关使用问题:
1. 安装完毕,并登陆后出现了2个“我的状态”信息
解决:请在“首页”或“主题列表页”,去掉“边栏模块_我的助手”的“可用”选项即可。

插件效果图:
[attach]19716[/attach]

安装步骤
1. 下载附件,将 include 目录直接上传到论坛根目录(提示覆盖,则确定)
2. 工具 > 数据调用 > 脚本模块 > 找到“边栏登陆框”,并添加 > 直接点提交
3. 工具 > 数据调用 > 边栏,选择你要开启“边栏登陆框”的位置。
4. 进入列表,在下放找到“边栏登陆框”,勾选“可用”,最后提交!即可使用^_^

星云 发表于 2008-11-25 12:32

倒计时工具
在边栏添加倒计时工具
采用js使用倒计时
修正了同一页面同时调用多个的错误
由于是js显示,所以不建议在同一个页面同时显示多个倒计时项目
可以在后台添加倒计时项目
[attach]19825[/attach]

下载附件,上传到 include/request/ 目录下
然后到“工具->数据调用->模块脚本”处添加“倒计时模块”模块

[url]http://www.dishack.com/thread-569-1-1.html[/url]

星云 发表于 2008-11-25 12:59

[b]版块横排显示时显示版主+版块介绍[/b]

[url]http://www.dishack.com/thread-321-1-1.html[/url]

打开默认模板/templates/default/discuz,编辑

[color=Red]版主显示[/color]

找到
[code]<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost" title="{echo cutstr($forum[lastpost][subject], 30)} {lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if}  ">$forum[lastpost][dateline]</a>
                                                                        <!--{else}-->
                                                                                {lang never}
                                                                        <!--{/if}-->
                                                                </p>[/code]

后面加入

[code]<p>{lang forum_moderators}: $forum[moderators]</p>[/code]

[color=Red]版块介绍显示[/color]

找到:

[code]<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost" title="{echo cutstr($forum[lastpost][subject], 30)}{lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if}  ">$forum[lastpost][dateline]</a>
<!--{else}-->
{lang never}
<!--{/if}-->
</p>[/code]

后面添加:

[code]<!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->[/code]

ynysxy 发表于 2008-12-2 16:41

[b] [url=http://www.gonet8.com/bbs/redirect.php?goto=findpost&pid=73429&ptid=10200]4#[/url] [i]星云[/i] [/b]


w xuyao xuexi 1

ynysxy 发表于 2008-12-2 16:41

[b] [url=http://www.gonet8.com/bbs/redirect.php?goto=findpost&pid=73899&ptid=10200]5#[/url] [i]ynysxy[/i] [/b]


不知道 怎么下载 和使用!

星云 发表于 2008-12-12 11:31

[url]http://www.dishack.com/thread-233-1-2.html[/url]
横排设置时候显示论坛分版图标For DZ7.0

打开默认模板文件:templates/default/discuz.htm

查找代码:[code]<th width="$cat[forumcolwidth]"{$forum[folder]}>[/code]后面加:[code]<a href="forumdisplay.php?fid=$forum[fid]">{$forum[icon]}</a>[/code]此修改后横排即可显示论坛版块图标了

星云 发表于 2008-12-12 15:46

Discuz!7.0首页美化 -- 最后回复美化
[url]http://www.dishack.com/viewthread.php?tid=684&extra=page%3D1[/url]

修改方法:

打开:templates/default/discuz.htm

查找:

[code]<!--{elseif is_array($forum['lastpost'])}-->
<p><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 30)}</a></p>
<cite><!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</td>[/code]

替换为:

[code]<!--{elseif is_array($forum['lastpost'])}-->
<p>┌回复:<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 22)}</a></p>
<cite>├作者:<!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> <br>└时间:$forum[lastpost][dateline]</cite>
<!--{else}-->
{lang never}
<!--{/if}-->
<!--{/if}-->
</td>[/code]

注意:<p>┌回复:<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 22)}</a></p>
这句里面的“"{echo cutstr($forum[lastpost][subject], [color=Red]22[/color])}”22是标题字数限制,可以根据自己模板风格自己制定!


更新缓存,OK!

星云 发表于 2008-12-12 16:25

帖子列表显示作者头像
[url]http://www.dishack.com/viewthread.php?tid=380&extra=page%3D1[/url]
templates/default/
打开css_common.htm
最下面增加[code]td.author { width: 150px; text-align: left; }[/code]然后更新缓存

forumdisplay.htm
<!--yinhulu mod-->
<!--yinhulu mod end-->
之间内容为修改内容

星云 发表于 2008-12-12 16:38

最简单的列表标题前显示会员头像修改
[url]http://www.dishack.com/viewthread.php?tid=264&extra=page%3D2[/url]

打开forumdisplay.htm,找到

[code]<a href="viewthread.php?tid=$thread[tid]&extra=$extra" title="{lang target_blank}" target="_blank">
                                                        <!--{if $thread[folder] == 'lock'}-->
                                                                <img src="{IMGDIR}/folder_lock.gif" alt="Lock" />
                                                        <!--{elseif in_array($thread['displayorder'], array(1, 2, 3))}-->
                                                                <img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$threadsticky[3-$thread[displayorder]]" />
                                                        <!--{else}-->
                                                                <img src="{IMGDIR}/folder_$thread[folder].gif" alt="$thread[folder]" />
                                                        <!--{/if}-->
                                                        </a>[/code]

替换为:

[code]<span id="t$thread[tid]" onmouseover="showMenu(this.id)">
                                                  <img src="你自己的uc_server路径/avatar.php?uid=$thread[authorid]&size=small" class="ava_border" width="25px" height="25px" style="border:1px solid #ccc; padding:2px; margin:0px; background-color:#fff;" /></span> [/code]

星云 发表于 2008-12-12 16:43

站内搜索 V1.12 [12.2更新]

[url]http://www.dishack.com/viewthread.php?tid=754&extra=page%3D2[/url]

在边栏显示一个搜索,搜索站内的主题,或者当前版块的主题。非常小巧的模块

下载附件,上传到 include/request/ 目录下
然后到“工具->数据调用->模块脚本”处添加“站内搜索”模块

星云 发表于 2008-12-29 08:26

http://www.dishack.com/thread-634-1-2.html

修改之前,先备份好文件。

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

查找代码:(第九行)

[code]$post[author][/code]

替换为:

[code]<!--{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}-->[/code]

保存并上传!


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

星云 发表于 2008-12-29 09:16

打开默认模板/templates/default/discuz.htm,编辑

找到[code]
<!--{if !$forum[redirect]}-->
                                                        <p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p>
                                                        <!--{if $forum['permission'] == 1}-->
                                                                <p>{lang private_forum}
                                                        <!--{else}-->
                                                                <p>{lang forum_lastpost}:
                                                                        <!--{if is_array($forum['lastpost'])}-->
                                                                                <a href="redirect.php?tid=$forum%5Blastpost%5D%5Btid%5D&goto=lastpost#lastpost" title="{echo cutstr($forum[lastpost][subject], 30)} {lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if}  ">$forum[lastpost][dateline]</a>
                                                                        <!--{else}-->
                                                                                {lang never}
                                                                        <!--{/if}-->
                                                                </p>
[/code]替换为[code]<!--{if !$forum[redirect]}-->
                                                        <p><!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}--></p>
                                                        <!--{if $forum['permission'] == 1}-->
                                                                <p>{lang private_forum}
                                                        <!--{else}-->
                                                                <p><font color=Green>最后发表:</font>
                                                                        <!--{if is_array($forum['lastpost'])}-->
                                                                                <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 20)}</a>...『<!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->...』
                                                                        <!--{else}-->[/code]

页: [1]
论坛官方联系方式:13937372266    QQ:22000644 延津网监备案号:4107260001
延津网警提示:拒绝任何人以任何形式在延津之家发表与中华人民共和国法律和法规相抵触的言论!
延津人QQ ①群:6018308(满)  ②群:43401643   ③群:32433360   电脑技术QQ 群5662513   7659150

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.