插件支持x1.5,x1.5.1,x2.0
2.0银行插件地址
https://www.discuz.1314study.com/thread-16269-1-1.html
本插件只是美化财富等级。以前也发布过,现在更新至支持2.0版本。财富等级实现,财富主要是现金+存款的总数。图片是自己原创制作的。欢迎更好的等级图片。演示如图:
安装教程:
1,上传yh文件夹里所有图片到论坛根目录images文件夹下,
2,查找目录/template/default/forum/的
viewthread_node.htm,打开编辑,找到<!--{if $post['medals']}-->
在上面添加如下代码
- <FIELDSET class="view_fieldsetmedals" align=center><LEGEND><B><font color="#ff0000">财富等级</font></B></LEGEND>
- <CENTER>
-
- <!--{if ($post[extcredits5]+$post[extcredits2])<10}-->
- <img src="images/yh/huizuan.gif" alt="饥寒交迫"
- style="padding-top:0px;padding-right:-2px" />
- <!--{elseif ($post[extcredits5]+$post[extcredits2])>=10 && ($post[extcredits5]+$post[extcredits2])<200}-->
- <img src="images/yh/huizuan1.gif" alt="一贫如洗"
- style="padding-top:0px;padding-right:-2px" />
- <!--{elseif ($post[extcredits5]+$post[extcredits2])>=200 && ($post[extcredits5]+$post[extcredits2])<500}-->
- <img src="images/yh/huizuan2.gif" alt="家徒四壁"
- style="padding-top:0px;padding-right:-2px" />
- <!--{elseif ($post[extcredits5]+$post[extcredits2])>=500 && ($post[extcredits5]+$post[extcredits2])<1000}-->
- <img src="images/yh/huizuan3.gif" alt="奔向小康"
- style="padding-top:0px;padding-right:-2px" />
- <!--{elseif ($post[extcredits5]+$post[extcredits2])>=1000 && ($post[extcredits5]+$post[extcredits2])<5000}-->
- <img src="images/yh/huizuan4.gif" alt="年年有余"
- style="padding-top:0px;padding-right:-2px" />
- <!--{elseif ($post[extcredits5]+$post[extcredits2])>=5000 && ($post[extcredits5]+$post[extcredits2])<10000}-->
- <img src="images/yh/huizuan5.gif" alt="锦衣玉食"
- style="padding-top:0px;padding-right:-2px" />
- <!--{elseif ($post[extcredits5]+$post[extcredits2])>=10000 && ($post[extcredits5]+$post[extcredits2])<30000}-->
- <img src="images/yh/huizuan6.gif" alt="金玉满堂"
- style="padding-top:0px;padding-right:-2px" />
- <!--{elseif ($post[extcredits5]+$post[extcredits2])>=30000 && ($post[extcredits5]+$post[extcredits2])<100000}-->
- <img src="images/yh/huizuan7.gif" alt="一掷千金"
- style="padding-top:0px;padding-right:-2px" />
- <!--{elseif ($post[extcredits5]+$post[extcredits2])>=100000 && ($post[extcredits5]+$post[extcredits2])<200000}-->
- <img src="images/yh/huizuan8.gif" alt="玉楼银海"
- style="padding-top:0px;padding-right:-2px" />
- <!--{elseif ($post[extcredits5]+$post[extcredits2])>=200000 && ($post[extcredits5]+$post[extcredits2])
- <500000}-->
- <img src="images/yh/huizuan9.gif" alt="挥金如土"
- style="padding-top:0px;padding-right:-2px" />
- <!--{elseif ($post[extcredits5]+$post[extcredits2])>=500000 && ($post[extcredits5]+$post[extcredits2])
- <1000000}-->
- <img src="images/yh/huizuan10.gif" alt="富可敌国"
- style="padding-top:0px;padding-right:-2px" />
- <!--{elseif ($post[extcredits5]+$post[extcredits2])>=1000000 && ($post[extcredits5]+$post[extcredits2])
- <5000000}-->
- <img src="images/yh/huizuan11.gif" alt="富甲天下"
- style="padding-top:0px;padding-right:-2px" />
- <!--{elseif ($post[extcredits5]+$post[extcredits2])>=5000000 && ($post[extcredits5]+$post[extcredits2])<999999999999999999999999999999}-->
- <img src="images/yh/huizuan12.gif" alt="富有天下"
- style="padding-top:0px;padding-right:-2px" />
- <!--{/if}-->
- </CENTER></FIELDSET>
复制代码
说明如下:如果要更改财富等级大家可以在添加代码里面自己进行设置,很简单的。这里extcredits5和extcredits2分别表示银行的存款和现金,请根据自己论坛对应的积分选项进行更改。如果有问题请加qq56272259,演示见http://www.wbzd.net.ru
打完收工,帖子美化,财富等级。
附件下载:
Discuz! X1.5.1_X2社区银行财富等级美化发布.zip
(53.46 KB, 下载次数: 12)
|