anchen 发表于 2009-6-4 19:13:10

uchVIP支付插件修改版

大家按下面的操作完就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 == $_SCONFIG) {
$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 > 0}-->
   <a href="pay.php?ac=vip"><img src="image/pay/vip.gif" alt="VIP会员:$vips

天" 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}-->
<li>QQ:$space</li>
<!--{/if}-->
<!--{if $space}-->
<li>MSN:$space</li>
<!--{/if}-->替换为:<!--{if checkperm('managespace') or $space == $_SGLOBAL['supe_uid']}-->
<!--{if $space}-->
<li>QQ:$space</li>
<!--{/if}-->
<!--{if $space}-->
<li>MSN:$space</li>
<!--{/if}-->
<!--{else}-->
    <!--{if $_SCONFIG == 1 and $vips > 0}-->
<!--{if $space}-->
<li>QQ:$space</li>
<!--{/if}-->
<!--{if $space}-->
<li>MSN:$space</li>
<!--{/if}-->
<!--{else}-->

<li>VIP会员可见</li>
<!--{/if}-->
<!--{/if}-->
更新缓存后用管理员登陆,运行pay.php?ac=install进行安装
...运行pay.php?ac=config配置相关信息
完成

流浪情人 发表于 2009-6-5 20:45:35

VIP的好东西啊 谢谢

admin 发表于 2009-7-10 10:56:27

下完后~~~依然打不开~~~~~楼主看到修改啊~~
jerrysu 发表于 2009-7-10 08:13 http://www.ad119.cn/bbs/images/common/back.gif

没有问题很好啊
页: [1]
查看完整版本: uchVIP支付插件修改版