PDA

View Full Version : Mini Mods - MW2 Prestige Ranks in Postbit


Khalid-B
08-01-2010, 10:00 PM
Installation

Make a profile field through ACP > User profile Fields > Add new user profile field


Single-Line Text Box

Title: What Prestige you are now?

Description: Tell us your level prestige you are now.
<BR>For Example...<BR>
prestige1 for 1st prestige10 for 10th

Field Required: your choice

Field Editable by User: Yes

Private Field: No

Field Searchable on Members List: No

Show on Members List: No

Which page displays this option? Edit Your Details


Now edit your postbit_legacy templet and search for .

<vb:if condition="$show['avatar']">
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>

underneath add this code.....

<!-- MW2 Prestige in postbit Start -->
<vb:if condition="$post['userid']">

<hr />
<dl class="userinfo_extra">

<vb:if condition="$post['field?']"><dt><font color="red" size= "2">MW2 Prestige</font></dt>
<dd><img src="http://yoursite.com/Forums/images/mw2/{vb:raw post.field?}.png" alt="" /></dd></vb:if>
</dl>
</vb:if>

<!-- MW2 Prestige in postbit End -->

change field? with user profile field ID and site url as well
Now upload MW2@ folder in images site/forum/images directory

COL NIL SATIS
08-02-2010, 07:46 PM
screenshot would be nice mate :)

D19RNY
08-02-2010, 08:17 PM
Also It would be nice if you could make the icons smaller as don't know how to use PS
Thanks

CharlieDelta
08-02-2010, 10:23 PM
Installed! Works great! Thanks nosherwan.

iask
08-04-2010, 01:23 PM
screenshot would be nice mate :)

https://vborg.vbsupport.ru/external/2010/08/60.jpg

COL NIL SATIS
08-04-2010, 02:55 PM
https://vborg.vbsupport.ru/attachment.php?attachmentid=119520&d=1278817861

thanks :)

XLCR GODFATHER
08-05-2010, 08:18 PM
Very nice working with it on my test site might play around with the img quality a bit. Current images are a bit choppy around the edges.

Also instead of using a single line text box for the user profile field you can Optionally choose single selection menu for the field and input all the prestige choices so users can select the appropriate prestige from a drop down menu.

Set Default = none

option=
prestige1
prestige2
etc........

Allow user to input their own value for this option = no

All other settings are as listed in the mod directions

This will eliminate case sensitive and spelling issues from user input causing the img. to not show

CharlieDelta
08-06-2010, 12:54 AM
Very nice working with it on my test site might play around with the img quality a bit. Current images are a bit choppy around the edges.

Also instead of using a single line text box for the user profile field you can Optionally choose single selection menu for the field and input all the prestige choices so users can select the appropriate prestige from a drop down menu.

Set Default = none

option=
prestige1
prestige2
etc........

Allow user to input their own value for this option = no

All other settings are as listed in the mod directions

This will eliminate case sensitive and spelling issues from user input causing the img. to not show
That is a great thought! Some members had some trouble with spelling and spacing causing some issues. This has fixed it. Good tip.