驿路枫情-加拿大移民论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 1772|回复: 3

vBulletin 3 Quick Tips and Customizations

[复制链接]
发表于 2005-2-28 10:52:53 | 显示全部楼层 |阅读模式
forward from: http://www.vbulletin.com/forum/forum.php?mod=viewthread&tid=108785

How To Add A Profile Field To The Postbit :

If you haven't already, create a new profile field in your:

Admin CP -> User Profile Fields -> Add New User Profile Field

Users can enter their info into the profile field by going to their User CP. To display the information in posts you need to go to your:

Admin CP -> Styles & Templates -> Style Manager -> « » -> Postbit Templates -> postbit or postbit_legacy (depending on which layout you use)

Add this code:


Code:
<if condition="$post['fieldX']">    $post[fieldX]</if>




Where fieldX is the field indentifier of the profile field as shown in your:

Admin CP -> User Profile Fields -> User Profile Field Manager

You may also wish to add a label to the profile field. For example, if the profile field is for the user's location:


Code:
<if condition="$post['fieldX']">    Location: $post[fieldX]</if>




The exact placement of this code depends on where you want it to show up.
回复

使用道具 举报

 楼主| 发表于 2005-2-28 10:55:50 | 显示全部楼层
forward from: http://www.vbulletin.com/forum/forum.php?mod=viewthread&tid=92310

Q9. Where can I set Avatar / Profile Picture settings?

A9. This is now done on a per usergroup basis
AdminCP > Usergroups > Usergroup Manager > Click on go for the usergroup you want to assign Avatar / Profile Picture settings.
Edit Picture Uploading Permissions settings

Q10. How can I setup how many days / posts a user must have before they can get an avatar / profile picture / Personal Messages / be able to download attachments

A10. This is now accomplished by usergroup promotion and primary / secondary usergroups. AdminCP > Usergroups > Promotions
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-28 11:00:51 | 显示全部楼层
forward from: http://www.vbulletin.com/forum/forum.php?mod=viewthread&tid=89230

Is there a way to add another drop down menu to the navbar?


Yes it is.

                               
登录/注册后可看大图


Find in the template navbar this:
PHP Code:
<!-- nav buttons bar -->





Below this the menu-points are defined. To add your own menu-point insert this:
PHP Code:
<td id="mymenu" class="vbmenu_control"><a href="#mymenu">My Menu</a> <script type="text/javascript"> vbmenu_register("mymenu"); </script></td>





Then go to the bottom of the template and find
PHP Code:
<!-- / NAVBAR POPUP MENUS -->
</if>





Before this add:
PHP Code:
<!-- My Menu -->
<
div class="vbmenu_popup" id="mymenu_menu" style="display:none">
  <
table cellpadding="4" cellspacing="1" border="0">
  
  <
tr><td class="thead">First selectionpointGameserver</td></tr>  
<
tr><td class="thead">Second selectionpoint</td></tr>

</
table>
</
div>
<!-- /
My Menu-->
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-28 11:25:30 | 显示全部楼层
forward from: http://www.vbulletin.com/forum/forum.php?mod=viewthread&tid=131296&highlight=create+own+sub+forum

Personal Forums
I want to be able to offer some members their own individual forums which can only be seen by themselves (to store sigs, notes, etc)

How would I go about restricting access to only a specific member?



-------------------------------------------------------------------------------------------

I recommend creating just one such forum, then configure that forum so users can only view their own threads:

Admin CP -> Forums & Moderators -> Add New Forum

Create the new forum here.

Then edit its permissions:

Admin CP -> Forums & Moderators -> Forum Permissions

When you set the Can View Others' Threads permission to No, then users of that group will only be able to see their own threads in that forum.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|驿路枫情加拿大华人网

GMT+8, 2025-2-28 14:12 , Processed in 0.170022 second(s), 6 queries , Gzip On, File On.

快速回复 返回顶部 返回列表