![]() |
|
|||||||
| vBulletin技术交流 主要讨论vBulletin的安装使用、模板风格、插件以及小技巧等。 |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
IP: 117.95.50.143
|
|||
|
|||
|
管理面板->风格与模版->风格管理->« » 按钮->帖子块模版->postbit 或 postbit_legacy (根据您选择的帖子布局选择)
在模版最下方的位置添加下面代码中的蓝色部分: Code:
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->
<if condition="$post[postcount] == 1">
<div style="padding: $stylevar[cellpadding]px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left">赞助商链接</td>
</tr>
<tr>
<td class="alt1" align="center">
广告条代码放置于此
</td>
</tr>
</table>
</div>
</if>
还有几个变体供您将广告条显示在不同位置。您只需将上面的代码中的“if”部分替换为下述的代码。 ...在每一页的第一篇帖子后 (而不只是第一页的第一篇帖子): Code:
<if condition="$post[postcount] % $vboptions[maxposts] == 1"> Code:
<if condition="$post[postcount] == 1 AND !$bbuserinfo[userid]"> Code:
<if condition="$post[postcount] == 1 AND $GLOBALS[threadinfo][replycount] >= 2"> Code:
<if condition="$post[postcount] == 1 AND in_array($GLOBALS[forumid], array(X,Y,Z))"> Code:
<if condition="$post[postcount] % X == 0"> Code:
<if condition="$post['islastshown']"> Code:
<if condition="$post['islastshown']"> Code:
<if condition="$post[postcount] % $vboptions[maxposts] == 1 AND !$bbuserinfo[userid] AND in_array($GLOBALS[forumid], array(X,Y,Z))"> |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|