vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - MW2 Prestige Ranks in Postbit (https://vborg.vbsupport.ru/showthread.php?t=247827)

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

MW2 Prestige Ranks in Postbit
 
1 Attachment(s)
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 .

PHP Code:

            <vb:if condition="$show['avatar']">
            <
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.....

PHP 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

Quote:

Originally Posted by COL NIL SATIS (Post 2078280)
screenshot would be nice mate :)

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

COL NIL SATIS 08-04-2010 02:55 PM

Quote:

Originally Posted by iask (Post 2079099)

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

Quote:

Originally Posted by XLCR GODFATHER (Post 2079770)
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.


All times are GMT. The time now is 05:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01024 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete