TA的每日心情 | 擦汗 2016-12-6 16:04 |
---|
签到天数: 10 天 [LV.3]偶尔看看II
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
大家按下面的操作完就OK了 ,最后别忘记了把支付宝等等相关的账号改成你自己的哦~~
如果觉得好就加个友情链接吧!
演示地址: http://www.ad119.cn/home/
废话就不说啦!
在common.php文件尾部?>之前加入:- include_once(S_ROOT.'./pay/function.php');
- if (!empty($_SGLOBAL['supe_uid'])) {
- $vips = ckvip($_SGLOBAL['supe_uid']);
- }
复制代码 修改文件:source/network_space.php
二处~~~
找到- $fuids = array();
- $count = 0;
- $query = $_SGLOBAL['db']->query($sql.' LIMIT 0, 100');//最多100条
- while ($value = $_SGLOBAL['db']->fetch_array($query)) {
- realname_set($value['uid'], $value['username'], $value['name'],
- $value['namestatus']);
- $value['isfriend'] = ($value['uid']==$space['uid'] || ($space
- ['friends'] && in_array($value['uid'], $space['friends'])))?1:0;
- $fuids[] = $value['uid'];
- $list[] = $value;
- }
-
- //在线状态
复制代码 替换- $fuids = array();
- $vfuids = array();
- $vlist = array();
- $count = 0;
- $query = $_SGLOBAL['db']->query($sql.' LIMIT 0, 100');//最多100条
- while ($value = $_SGLOBAL['db']->fetch_array($query)) {
- realname_set($value['uid'], $value['username'], $value['name'],
- $value['namestatus']);
- $value['isfriend'] = ($value['uid']==$space['uid'] || ($space
- ['friends'] && in_array($value['uid'], $space['friends'])))?1:0;
- if ($value[groupid] == $_SCONFIG[vipapp]) {
- $vfuids[] = $value['uid'];
- $vlist[] = $value;
- } else {
- $nfuids[] = $value['uid'];
- $nlist[] = $value;
- }
- }
- $fuids = array_merge_recursive($vfuids,$nfuids);
- $list = array_merge_recursive($vlist,$nlist);
- //在线状态
复制代码 修改模版文件:template/default/header.htm
找到:- <br />
- <a href="cp.php?ac=invite">邀请</a> | <a href="cp.php">设置</a> | <a
- href="cp.php?ac=privacy">隐私</a> | <a href="cp.php?ac=common&op=logout">退出</a>
复制代码 前面加入:- <!--{if $vips[ztime] > 0}-->
- <a href="pay.php?ac=vip"><img src="image/pay/vip.gif" alt="VIP会员:$vips
- [day]天" border="0" align="absmiddle" /></a>
- <!--{else}-->
- <a href="pay.php?ac=vip" target="_blank"><img
- src="image/pay/vip2.gif" alt="未激活" border="0" align="absmiddle" /></a>
- <!--{/if}-->
复制代码 修改模版文件:template/default/space_feed.htm
找到:- <ul class="u_setting">
- <li><a href="cp.php?ac=avatar">修改头像</a></li>
- <li><a href="cp.php?ac=profile">个人资料</a></li>
- <li><a href="cp.php?ac=password">账号设置</a></li>
- <li><a href="cp.php?ac=privacy">隐私筛选</a></li>
- </ul>
- 替换为:
- <ul class="u_setting" style="width: 250px;">
- <li><a href="cp.php?ac=avatar">修改头像</a></li>
- <li><a href="cp.php?ac=profile">个人资料</a> </li>
- <li><a href="pay.php?ac=vip"><strong>VIP升级
- </strong></a></li>
- <li><a href="cp.php?ac=password">账号设置</a></li>
- <li><a href="cp.php?ac=privacy">隐私筛选</a></li>
- <li><a href="pay.php"><strong style="color: red;">积分充值
- </strong></a></li>
- </ul>
复制代码 修改模版文件:template/default/space_index.htm
找到:- <!--{if $space[qq]}-->
- <li>QQ:$space[qq]</li>
- <!--{/if}-->
- <!--{if $space[msn]}-->
- <li>MSN:$space[msn]</li>
- <!--{/if}-->
复制代码 替换为:- <!--{if checkperm('managespace') or $space[uid] == $_SGLOBAL['supe_uid']}-->
- <!--{if $space[qq]}-->
- <li>QQ:$space[qq]</li>
- <!--{/if}-->
- <!--{if $space[msn]}-->
- <li>MSN:$space[msn]</li>
- <!--{/if}-->
- <!--{else}-->
- <!--{if $_SCONFIG[viplookinfo] == 1 and $vips[day] > 0}-->
- <!--{if $space[qq]}-->
- <li>QQ:$space[qq]</li>
- <!--{/if}-->
- <!--{if $space[msn]}-->
- <li>MSN:$space[msn]</li>
- <!--{/if}-->
- <!--{else}-->
- <li>VIP会员可见</li>
- <!--{/if}-->
- <!--{/if}-->
-
复制代码 更新缓存后用管理员登陆,运行pay.php?ac=install进行安装
...运行pay.php?ac=config配置相关信息
完成 |
|