- UID
- 1
- 阅读权限
- 200
- 注册时间
- 2022-3-27
- 积分
- 2320
- 最后登录
- 2024-11-3
TA的每日心情 | 擦汗 2023-7-12 20:55 |
---|
签到天数: 8 天 连续签到: 8 天 [LV.3]偶尔看看II
管理员
- 积分
- 2320
|
把代码添加到第三方:
- <script
- src="templates/default/mrt.htm">
- </srcipt>
复制代码
*如果不是安装到默认模板请修改 default 为你的模板名称。
新建模板,命名为:
输入内容:
- var vipinfo=new Array()
- vipinfo[0]=[" https:kuchingshare.my/template/style/images/guangfang.gif","论坛管理"]
- vipinfo[1]=[" https:kuchingshare.my/template/style/images/zhu.gif","坛之砥柱"]
- vipinfo[2]=[" https:kuchingshare.my/template/style/images/vip1.gif","版主团队"]
- vipinfo[3]=[" https:kuchingshare.my/template/style/images/vip3.gif","论坛贵宾"]
- vipinfo[4]=[" https:kuchingshare.my/template/style/images/yes.gif","活跃会员"]
- var viplist=new Array();
- viplist[0]=[1,"無名","论坛创始人",0]
- viplist[1]=[2,"test","",3]
- viplist[2]=[1708,"会员名字","",2]
- viplist[3]=[60,"会员名字","",1]
- var str="<style>";
- for (i=0;i<vipinfo.length;i++){
- str+=".vipinfo"+i+"{color:#F00!important;background:url("+vipinfo[i][0]+") no-repeat right;}";
- }
- str+="</style>";
- document.write(str);
- for (i=0;i<viplist.length;i++){
- $jq("a:contains('"+viplist[i][1]+"')").each(function (){
- var hr=this.href;
- if (((this.href.indexOf("space-uid-")>0)||(this.href.indexOf("space-username-")>0)||(this.href.indexOf("space.php?uid=")>0)||(this.href.indexOf("space.php?username=")>0))&&(this.innerHTML==viplist[i][1])){
- this.innerHTML+='<img id="mrt_img" align="absmiddle" style="margin-left: 2px;" title="'+vipinfo[viplist[i][3]][1]+'" src="'+vipinfo[viplist[i][3]][0]+'" />'
- }
- })
- }
复制代码
viplist[0]=[1,"無名","论坛创始人",0]
1=uid编号 ,然后是会员名称,接着可以随便填写
,
最后的:
0 是“管理员”,
1 是"坛之砥柱"
2是“版主团队”,
3是“论坛贵宾”,
4是”活跃会员“
viplist 可以继续添加,例如:viplist[4] viplist[5]
|
上一篇:论坛建站时间代码分享下一篇:帖子页面显示缩略图 For7.2
|