Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MW2 Prestige Ranks in Postbit Details »»
MW2 Prestige Ranks in Postbit
Version: 1.00, by Khalid-B Khalid-B is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.5 Rating:
Released: 08-01-2010 Last Update: Never Installs: 6
Template Edits
Additional Files Translations  
No support by the author.

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

Download Now

File Type: zip MW@2.zip (317.7 KB, 84 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-02-2010, 07:46 PM
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Location: Liverpool UK
Posts: 802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshot would be nice mate
Reply With Quote
  #3  
Old 08-02-2010, 08:17 PM
D19RNY D19RNY is offline
 
Join Date: Jun 2010
Location: LDN
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also It would be nice if you could make the icons smaller as don't know how to use PS
Thanks
Reply With Quote
  #4  
Old 08-02-2010, 10:23 PM
CharlieDelta CharlieDelta is offline
 
Join Date: Apr 2010
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed! Works great! Thanks nosherwan.
Reply With Quote
  #5  
Old 08-04-2010, 01:23 PM
iask iask is offline
 
Join Date: Jan 2010
Location: Home
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by COL NIL SATIS View Post
screenshot would be nice mate
Reply With Quote
  #6  
Old 08-04-2010, 02:55 PM
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Location: Liverpool UK
Posts: 802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iask View Post
thanks
Reply With Quote
  #7  
Old 08-05-2010, 08:18 PM
XLCR GODFATHER XLCR GODFATHER is offline
 
Join Date: Mar 2010
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 08-06-2010, 12:54 AM
CharlieDelta CharlieDelta is offline
 
Join Date: Apr 2010
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by XLCR GODFATHER View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04754 seconds
  • Memory Usage 2,304KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete