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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

首页n格的问题整理与解决[最后更新:2007.11.05 JS调用附件]

[复制链接]
ztguai 发表于 2007-9-6 23:26:10 | 显示全部楼层
原帖由 TaRot! 于 2007-8-31 22:50 发表
这个好象是和目录有关,不同服务器不一样,所以也没总结出规律,可以多测试几次.



http://www.reallink.org.cn

麻烦看一下怎么回事,首页四格不显示图片,但是

在论坛的帖子内,有jpg格式的图片附件,
远程调用的附件的功能没开启。

空间商的问题。会是什么问题?服务器的FTP权限是777。

安装的首页四格版本是
https://discuz.dismall.com/viewthread ... 2%B5%A5%CA%D7%D2%B3


怎么试也不行啊,如果是空间商的问题,能说一下是具体什么问题吗?
我已经试了2个版本的四格了,都安装了好几遍,就是不显示图片啊。以前好好的用,都没有问题,升级后就突然不行了。

我QQ13524123,恳请哪个好心的老大指导一下啊,谢谢了
回复

使用道具 举报

 楼主| TaRot! 发表于 2007-9-7 10:08:28 | 显示全部楼层

回复 381# 的帖子

你找下就可以,有的是用的直接连接,有的是跳转到回复位置,KFC那个5.5的就有2种修改,他帖子内都有说明.
回复

使用道具 举报

山猫之王 发表于 2007-9-10 16:56:31 | 显示全部楼层
不错哦...........................

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

hanbing800217 发表于 2007-9-10 22:59:10 | 显示全部楼层
我的论坛安装了首页三格,分别做的是附件图片,推荐主题和最新主题,可是附件图片的滚动是横向的,可不可以改为上下滚动??
还有,调用的图片为什么总是只显示一张,并不变化?
我的代码是:
<div>
<div class="spaceborder spacebottom" style="width: {TABLEWIDTH}; clear: both; margin-top: 5px;"><table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
<tr class="header">
<td width="25%" align="center">
※精彩图集※
</td>
</td>
<td width="37%" align="center">
※最新主题※
</td>
<td width="38%" align="center">
※推荐主题※
</td>
</tr>
<tbody id="category_2" style=""><tr class="altbg2">
<td class="altbg2">
<marquee width="100%" height="200" scrollamount="1" behavior="alternate">
<script language="JavaScript" src="http://www.pphappy.cn/api/javascript.php?key=images_pic"></script>
</marquee>
</td>
<td class="altbg2">
<script language="JavaScript" src="http://www.pphappy.cn/api/javascript.php?key=threads_new"></script>
</td>
<td class="altbg2">

<script language="JavaScript" src="http://www.pphappy.cn/api/javascript.php?key=threads_tuijian"></script>

</td>
</tr></tbody></table>
</div><br></div>
请帮忙看一下啊,谢谢了!

[ 本帖最后由 hanbing800217 于 2007-9-10 23:01 编辑 ]
回复

使用道具 举报

 楼主| TaRot! 发表于 2007-9-11 16:45:12 | 显示全部楼层

回复 385# 的帖子

你只是简单的JS调用和一个marquee,可以找下marquee的用法,或者参考下猴子发的调用附件图片的帖子.
回复

使用道具 举报

xuewuyaya 发表于 2007-9-12 06:39:56 | 显示全部楼层
//最新回复// //论坛精华// $hack_cut_str =28; //修改标题显示字数
$hack_cut_strauthor = 9;
$new_digest_threadlist = array();
$dthread = array();
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE digest>'0' AND t.fid<>'$fid' AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 10"); //修改显示帖子条数
while($dthread = $db->fetch_array($query)) {
$dthread['forumname'] = $dthread['name'];
$dthread['view_subject'] = cutstr($dthread['subject'],$hack_cut_str);
$dthread['view_author'] = cutstr($dthread['author'],$hack_cut_strauthor);
$dthread['date']= gmdate("$dateformat $timeformat", $dthread['dateline'] + $timeoffset * 3600);
$dthread['lastreplytime']= gmdate("$dateformat $timeformat", $dthread[lastpost] + ($timeoffset * 3600));
if($dthread['highlight']) {
$string = sprintf('%02d', $dthread['highlight']);
$stylestr = sprintf('%03b', $string[0]);
$dthread['highlight'] = 'style="';
$dthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
$dthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
$dthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
$dthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
$dthread['highlight'] .= '"';
} else {
$dthread['highlight'] = '';
}
$new_digest_threadlist[] = $dthread;
}



$hack_cut_str =28; //修改标题显示字数

我改了字数...可是没有效果,怎么回事?都变成两行了.
回复

使用道具 举报

习明 发表于 2007-9-12 10:14:56 | 显示全部楼层
//最新回复// //论坛精华// $hack_cut_str =28; //修改标题显示字数
你是不是改的这里的内容?
把$hack_cut_str =28; //修改标题显示字数 单独占一行试试
回复

使用道具 举报

xuewuyaya 发表于 2007-9-12 11:06:56 | 显示全部楼层
果然。。有效了。谢谢习明。。。

对了,还有个小问题,能不能帮我分析一下这个三栏

https://discuz.dismall.com/viewth ... p;extra=&page=1

它是哪里控制这个样式的?

它的帖子与帖子分段不是紧紧粘在一起的。有一些空隙,比较美观。

我加多了一栏,是会员排行。就是这帖里提供的方法添加的。

但是会员名字行与行之间粘的很紧。。。很不美观。
回复

使用道具 举报

SC暴 发表于 2007-9-14 06:43:00 | 显示全部楼层
6.0首页N格如何不显示某个指定的版块?

谢谢!
回复

使用道具 举报

SC暴 发表于 2007-9-14 08:23:33 | 显示全部楼层
6.0首页N格如何不显示某个指定的版块?

地址:www.o7se.cn


麻烦大大,非常感谢!

[ 本帖最后由 SC暴 于 2007-9-14 08:26 编辑 ]
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-22 19:42 , Processed in 0.136239 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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