Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

精仿 PHPWIND 最新清爽版 提供下载(最新修正标题太长错位问题)

[复制链接]
vipic.com.cn 发表于 2007-6-9 16:13:57 | 显示全部楼层 |阅读模式
模板修正:有朋友使用该风格在首页显示标题.一旦标题太长会影响首页的美观.使得版面错位.

现在提供修正方案..


找到  include/forum.func.php  




  1. $forum['icon'] = "<a href="forumdisplay.php?fid=$forum[fid]"><img src="$forum[icon]" align="right" alt="" border="0" /></a>";
  2.   }
  3. }

复制代码






  1. if($lastpost['tid']) {
  2.   $lastpost['dateline'] = gmdate("$dateformat $timeformat", $lastpost['dateline'] + $timeoffset * 3600);
  3.   if($lastpost['author']) {

复制代码



之间添加 或者覆盖




  1. $lastpost = array('tid' => 0, 'dateline' => 0, 'subject' => '', 'author' => '');
  2. list($lastpost['tid'], $lastpost['subject'], $lastpost['dateline'], $lastpost['author']) = is_array($forum['lastpost']) ? $forum['lastpost'] : explode("\t", $forum['lastpost']);
  3.         //首页显示最后发表标题
  4.         $lastpost['subject1'] = cutstr($lastpost['subject'], 20, $dot = ' ...');
  5.        //首页显示最后发表标题
  6. $forum['folder'] = '<img src="'.IMGDIR.'/'.((isset($_DCOOKIE['fid'.$forum['fid']]) && $_DCOOKIE['fid'.$forum['fid']] > $lastvisit ? $_DCOOKIE['fid'.$forum['fid']] : $lastvisit) < $lastpost['dateline'] ? 'red_' : '').'forum.gif" alt="" />';


复制代码




在提供的风格包中  templates/phpwind/discuz.htm


找到



  1. <!--{if is_array($forum['lastpost'])}-->
  2.       <td align="center" style="border-right:1px solid {INNERBORDERCOLOR}" title="{lang forum_lastpost_in}: {$forum[lastpost][subject]}" nowrap>
  3.       <span class="smalltxt"><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][subject]</a></span><br>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']  $forum[lastpost][dateline]<!--{else}-->{lang anonymous}<!--{/if}-->
  4.       </td>
  5.      <!--{else}-->



复制代码


修改为




  1. <!--{if is_array($forum['lastpost'])}-->
  2.       <td align="center" style="border-right:1px solid {INNERBORDERCOLOR}" title="{lang forum_lastpost_in}: {$forum[lastpost][subject1]}" nowrap>
  3.       <span class="smalltxt"><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][subject1]</a></span><br>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']  $forum[lastpost][dateline]<!--{else}-->{lang anonymous}<!--{/if}-->
  4.       </td>
  5.      <!--{else}-->

复制代码




OK!

因为上传有点问题.还是建议大家手动修改......





标题过长后自动用 省略代替

演示

YANSHI.JPG


本风格是在https://discuz.dismall.com/viewthread.php?tid=606931&highlight=%B7%C2phpwind前提下再次转发修改版本.

主要修改原因是:上述版本完全是默认风格整包发布,其实 PW  和 DZ  风格有很多近似处.这里我选择套用默认风格的其他文件仅仅保留做为风格的 css.htm  discuz.htm  footer.htm  header.htm discuz.htm forumdisplay.htm
这样一来风格包就清爽多了.

演示地址:http://www.vipic.com.cn/ 

下载了要回复哦,顶一下哦.



因为机器有点问题,劳请楚大哥带为发布,在此感谢万分.多谢!!!

[ 本帖最后由 vipic.com.cn 于 2007-6-10 10:56 编辑 ]
回复

使用道具 举报

gushiyue2008 发表于 2007-6-9 16:14:38 | 显示全部楼层
特别说明,风格是楼主提供的,因为楼主机器问题,无法正常发布,转由我代发,木搞错了!




yanshi.GIF

[ 本帖最后由 gushiyue2008 于 2007-6-9 16:45 编辑 ]

仿PHPWIND风格.zip

182.75 KB, 下载次数: 253

回复

使用道具 举报

 楼主| vipic.com.cn 发表于 2007-6-9 16:16:19 | 显示全部楼层

下载地址

楚大哥代发了.谢谢

下载在  2  楼


[ 本帖最后由 vipic.com.cn 于 2007-6-9 16:52 编辑 ]
回复

使用道具 举报

 楼主| vipic.com.cn 发表于 2007-6-9 16:20:00 | 显示全部楼层

下载地址

区别其实不是很大,主要是原始的下载有太多冗余文件,是将整个 default 文件都打包,清爽版的只是保留了做为风格的主要文件,其他的以默认风格为调用.

这样风格包自然就简洁了....


另外 AD 一下

本站希望和各位站长朋友交换连接


=====================================

本 站 名 称: 中国图文网
本 站 网 址: http://www.vipic.com.cn/
Logo 网 址:

介绍:中国图文网 巨量图片打包服务,百万美女图片看不停

俺的 QQ :121298824
=====================================


[ 本帖最后由 vipic.com.cn 于 2007-6-9 16:56 编辑 ]
回复

使用道具 举报

poqyy 发表于 2007-6-9 16:20:31 | 显示全部楼层
没有演示图片吗`````
回复

使用道具 举报

 楼主| vipic.com.cn 发表于 2007-6-9 16:20:52 | 显示全部楼层

下载地址

下载地址本帖子后........
回复

使用道具 举报

 楼主| vipic.com.cn 发表于 2007-6-9 16:21:43 | 显示全部楼层

演示图

演示图本帖子后........
回复

使用道具 举报

 楼主| vipic.com.cn 发表于 2007-6-9 16:22:47 | 显示全部楼层

演示图

演示图本帖子后........
回复

使用道具 举报

 楼主| vipic.com.cn 发表于 2007-6-9 16:28:37 | 显示全部楼层
怎么搞的上传半天就是不行啊
回复

使用道具 举报

hacker301 发表于 2007-6-9 16:35:22 | 显示全部楼层
有什么区别吗?>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-11-24 20:56 , Processed in 0.121703 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表