转自:爱秀社区【已废】
不用数据库,不用js,不用新建模版。每个会员都可以在个人中心进行设定属于自己的帖子背景。 效果参看本帖右下角。
最近访问本帖者列表: | |||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
二、教程开始了--新增栏目进入后台-用户-用户栏目定制,按图所示添加两个新栏目:
栏目标题分别设为: 帖子背景 <a href=plugin.php?id=dps_medalcenter>购买勋章</a> 然后分别进入“详情”如下进行设置: 1、 栏目标题:帖子背景 简短描述(可选):放入图片链接,定制属于自己的帖子背景。建议尺寸小于350x350 内容最大长度:255 2、 栏目标题:<a href=plugin.php?id=dps_medalcenter>购买勋章</a> 简短描述(可选):<font color=red>说明:需要购买“装扮勋章”帖子背景才能生效。</font> 内容最大长度:50 | |
五、编辑viewthread_node.htm模版找到下边代码,就在第二行,很容易找。
<table id="pid$post[pid]" summary="pid$post[pid]" cellspacing="0" cellpadding="0"> 替换为 <table id="pid$post[pid]" summary="pid$post[pid]" cellspacing="0" cellpadding="0" style="{loop $post['medals'] $medal}{if $medal[name] == 装扮勋章}background:#ffffff url($post[field_7]) no-repeat bottom right;{/if}{/loop}"> 注意把field_7改为自己“帖子背景”栏目的id | |
六、编辑memcp_profile.htm模版找到
<link href="forumdata/cache/style_{STYLEID}_seditor.css?{VERHASH}" rel="stylesheet" type="text/css" /> 在下边加 <style> input[name~="field_8new"]{display: none;} </style> 注意把field_8改为自己“购买勋章”栏目的id | |