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

 找回密码
 立即注册
搜索

[疑难] 模版中LOOP循环问题

[复制链接]
apost 发表于 2009-8-29 13:37:18 | 显示全部楼层 |阅读模式
SupeSite模板
语言编码: GBK简体 
风格转换者: 原创
循环如下
<!--{eval $j = 0}-->
<!--{loop $_SBLOCK['hotnewspic'] $pkey $pvalue}-->
<!--{eval $pcurrent = ($j == 0 ? 'current' : 'normal');}-->
<!--{if $j < 3}-->
$pvalue['a_filepath']#$pvalue[url]|
<!--{else}-->
$pvalue['a_filepath']#$pvalue[url]
<!--{/if}-->
<!--{eval $j++}-->
<!--{/loop}-->");

生产代码如下

/attachments/2009/08/1_200908291302051jEiC.jpg#/?action-viewnews-itemid-4|
/attachments/2009/08/1_200908291301001y6Py.jpg#/?action-viewnews-itemid-3|
/attachments/2009/08/1_200908281720111574Z.jpg#/?action-viewnews-itemid-2|
/attachments/2009/08/1_200908281707361gej3.gif#/?action-viewnews-itemid-1

我想得到如下不换行的代码怎么办?

/attachments/2009/08/1_200908291302051jEiC.jpg#/?action-viewnews-itemid-4|/attachments/2009/08/1_200908291301001y6Py.jpg#/?action-viewnews-itemid-3|/attachments/2009/08/1_200908281720111574Z.jpg#/?action-viewnews-itemid-2|/attachments/2009/08/1_200908281707361gej3.gif#/?action-viewnews-itemid-1
回复

使用道具 举报

 楼主| apost 发表于 2009-8-29 15:47:29 | 显示全部楼层
没人回答~~自己顶
回复

使用道具 举报

koder 发表于 2009-8-29 18:02:21 | 显示全部楼层
你那陀代码写在一行上












----------签名----------------------------------------------------------------------
QQ:1194509817
回复

使用道具 举报

 楼主| apost 发表于 2009-8-29 23:50:10 | 显示全部楼层
写在一起还是不行~~
最后换了个方式解决了,哈哈
回复

使用道具 举报

benba 发表于 2009-8-30 16:04:05 | 显示全部楼层
用函数可以清除换行(/N) 的
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-14 15:14 , Processed in 0.129868 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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