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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[经验] 首页调用指定相册列表修改方法forUCH1.5

[复制链接]
keete 发表于 2008-8-8 03:28:07 | 显示全部楼层 |阅读模式
本帖最后由 keete 于 2008-10-21 22:54 编辑

AD:[完全实名制]身份通认证接口插件V1.5隆重推出https://discuz.dismall.com/thread-1038034-1-1.html

演示地址:中国纹身网http://www.iwenshen.com

修改步骤:
一、在index.php的include template('index');的上方添加如下代码:
//显示指定相册
$list = array();
$query = $_SGLOBAL['db']->query("SELECT * FROM ".tname('album')."  where uid = 3 and albumid >= 9 and albumid <= 35 and albumname like '作品_%'   ORDER BY updatetime DESC LIMIT 0,30");
while ($value = $_SGLOBAL['db']->fetch_array($query)) {
if(ckfriend($value)) {
$value['pic'] = mkpicurl($value);
$list[] = $value;
}
}

二、在template/default/index.htm的<!--{template header}-->下面添加如下代码:
<div class="albums_list">
<table cellspacing="6" cellpadding="0" width="100%">
<tr>
<!--{loop $list $key $value}-->
<td align="center" width="16%" class="album">
<a href="space.php?uid=$value[uid]&do=album$do&id=$value[albumid]"><img src="$value[pic]" alt="中国纹身网图片库之:$value[albumname]" /></a><br />
<a href="space.php?uid=$value[uid]&do=album$do&id=$value[albumid]">$value[albumname]($value[picnum]张)</a>
</td>
<!--{if ($key+1)%6==0}--></tr><tr><!--{/if}-->
<!--{/loop}-->
</tr>
</table>
</div>


[ 本帖最后由 keete 于 2008-9-8 02:15 编辑 ]

本帖子中包含更多资源

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

x
oyguang 发表于 2008-8-8 06:02:24 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

lino310 发表于 2008-8-8 11:56:27 | 显示全部楼层
支持一下
回复

使用道具 举报

十月阁下 发表于 2008-8-8 13:09:49 | 显示全部楼层
很好,支持:)
回复

使用道具 举报

fscool 发表于 2008-8-8 13:28:10 | 显示全部楼层
不错, 支持一个.............................................................
回复

使用道具 举报

蓝冰果冻 发表于 2008-8-8 13:55:49 | 显示全部楼层
不错的说啊~~
回复

使用道具 举报

ebottle 发表于 2008-8-8 14:06:09 | 显示全部楼层
不错,谢谢lz的分享
回复

使用道具 举报

dingxinzheng 发表于 2008-8-10 12:53:04 | 显示全部楼层
牛,应当还在第一页,接着AD
http://www.474300.com/home
回复

使用道具 举报

olivedream 发表于 2008-8-10 16:09:08 | 显示全部楼层
不错支持一下。
回复

使用道具 举报

最怕女流氓 发表于 2008-8-12 01:44:02 | 显示全部楼层
支持一下!
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-18 12:19 , Processed in 0.132633 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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