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
Real Name In Profile And Postbit Details »»
Real Name In Profile And Postbit
Version: 4.0.3, by Mosh Mosh is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: End-User Options - Version: 4.x.x Rating:
Released: 11-26-2009 Last Update: 12-10-2010 Installs: 196
Uses Plugins
Re-useable Code Translations  
No support by the author.

Please click Mark as Installed if you are using this hack.


What Does This Hack Do?[hr]Silver[/hr]
This is an update to my 3.8.x version of this hack, designed to work with vBulletin v4.0.x.

A very simple hack to display your real name in your profile and postbit (or postbit legacy), just like here at vBulletin.org.

If no real name is entered, then it will not display in the postbit (or postbit legacy).

DEMO: View it in action here.

This hack was created because of a request by Hannan here.


Limitation with this hack[hr]Silver[/hr]
People keep asking for usergroup permissions for this hack.

While this would easy to implement, what people fail to realise is that User Profile Fields are not controlled by usergroup permissions at all, and even if usergroup permissions were added to this hack, the User Profile Fields would still be viewable by members even if they do not have permissions to use them.

User Profile Fields are either viewable by all or viewable by none, this is how they were implemented in vBulletin by design, there is no in between with User Profile Fields.

So, I will not be adding usergroup permissions to this hack.


vBulletin Version Compatibility[hr]Silver[/hr]
This hack can be used with vBulletin versions 4.0.0 - 4.2.0.

For the v3.8.x version of this hack, which will also work with v3.7.x and v3.6.x - check here.



Hack Support/Feature Requests[hr]Silver[/hr]
IMPORTANT: This hack is no longer supported.



Install/Uninstall Instructions[hr]Silver[/hr]
The Real Name In Profile And Postbit Installation Instructions 4.0.xxx.pdf instructions file is included in attached .zip (includes visual instructions).
NOTE: If upgrading then just do Step 2 and Step 3 again.


Translations[hr]Silver[/hr]
I would like to thank the following people for their translations:
Version History[hr]Silver[/hr]
v4.0.3 - Saturday 11th December 2010
-- Fixed: "maxversion" so product can be installed on vBulletin 4.1.0 and above
-- Changed: version number formatting

v4.0.002 - Monday 28th June 2010
-- Was released at Wolfshead Solutions on Sunday 20th June 2010
-- Updated: Plugin to also work on vBulletin 4.0.4
-- Updated: 25/7/2010, removed global $vbulletin statement .... pretty embarrassed, thanks for Boofo for pointing it out (version number not updated)

v4.0.001 - Friday 27th November 2009
-- Initial v4.0.x Release


Thanks[hr]Silver[/hr]
Thanks go out to Paul M who gave me permission to use some of his install code.


Show Your Appreciation [hr]Silver[/hr]
Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.

Download Now

File Type: zip ms_real_name_40.zip (234.3 KB, 722 views)

Screenshots

File Type: png screenshot1.png (12.0 KB, 0 views)
File Type: png screenshot2.png (25.1 KB, 0 views)
File Type: png screenshot3.png (25.8 KB, 0 views)

Show Your Support

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

Comments
  #92  
Old 03-03-2015, 03:01 PM
xyromero xyromero is offline
 
Join Date: Mar 2015
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why is the name of the State taking over?
Attached Images
File Type: jpg test.jpg (22.3 KB, 0 views)
Reply With Quote
  #93  
Old 05-13-2016, 03:17 AM
justasiam justasiam is offline
 
Join Date: Feb 2010
Location: Los Angeles, CA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would love to use this mod, but I would need the "Real Name" to display on the postbit INSTEAD of their username. If there is nothing in the user field, then the username shows, if there is a entry in the Reel Name field, then that shows instead.

Ideas?
Reply With Quote
  #94  
Old 05-13-2016, 03:47 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by justasiam View Post
I would love to use this mod, but I would need the "Real Name" to display on the postbit INSTEAD of their username. If there is nothing in the user field, then the username shows, if there is a entry in the Reel Name field, then that shows instead.

Ideas?
If you are interesting in this for just the postbit, then create a plugin hooked at "memberaction_dropdown" with the "Plugin PHP Code":

PHP Code:
if (THIS_SCRIPT === 'showthread')
{
    global 
$post;
    
$new_name $post['field4'];

    if (
$new_name)
    {
        
$memberinfo['musername'] = str_replace($memberinfo['username'], $new_name$memberinfo['musername']);
        
$memberinfo['username'] = $new_name;
    }

Change "field4" to the profile field you are using to store the user's real name.

edit: I changed to code to remove the call to a function containing a db query.
Reply With Quote
  #95  
Old 05-13-2016, 03:50 AM
justasiam justasiam is offline
 
Join Date: Feb 2010
Location: Los Angeles, CA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Primarilly, I need this to work when displaying the username on posts as well as when displaying the username in CMS articles. Is this going to do that?
Reply With Quote
  #96  
Old 05-13-2016, 03:56 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by justasiam View Post
Primarilly, I need this to work when displaying the username on posts as well as when displaying the username in CMS articles. Is this going to do that?
I don't know...I don't use CMS. Give it a try...let us know.

edit: Try this instead...and if this doesn't work for CMS, I have another option for you to try.

PHP Code:
if (in_array(THIS_SCRIPT, array('showthread''vbcms')))
{
    global 
$post;
    
$new_name $post['field4'];

    if (
$new_name)
    {
        
$memberinfo['musername'] = str_replace($memberinfo['username'], $new_name$memberinfo['musername']);
        
$memberinfo['username'] = $new_name;
    }

Reply With Quote
  #97  
Old 05-13-2016, 02:12 PM
justasiam justasiam is offline
 
Join Date: Feb 2010
Location: Los Angeles, CA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The last bit of code works in the forums, but not in the CMS.

Ideas?
Reply With Quote
  #98  
Old 05-13-2016, 02:19 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by justasiam View Post
The last bit of code works in the forums, but not in the CMS.

Ideas?
Okay, give this a try:

PHP Code:
if (in_array(THIS_SCRIPT, array('showthread''vbcms')))
{
    global 
$post;

    if (!
$post)
    {
        
$post fetch_userinfo($memberinfo['userid']);
    }

    
$new_name $post['field4'];

    if (
$new_name)
    {
        
$memberinfo['musername'] = str_replace($memberinfo['username'], $new_name$memberinfo['musername']);
        
$memberinfo['username'] = $new_name;
    }

Reply With Quote
  #99  
Old 05-13-2016, 02:26 PM
justasiam justasiam is offline
 
Join Date: Feb 2010
Location: Los Angeles, CA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unless I did somethig wrong, this does not do it either.

I changed field4 to field6 and just pasted it in "as is" plugin I added.
Reply With Quote
  #100  
Old 05-13-2016, 02:33 PM
justasiam justasiam is offline
 
Join Date: Feb 2010
Location: Los Angeles, CA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, weird.

When I look at the list of articles, the "Real Name" is displaying. However, when I bring the article up, it goes back to the "Username".
Reply With Quote
  #101  
Old 05-13-2016, 02:34 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I guess the CMS articles don't use the memberaction drop-down when displaying usernames...I assumed they would, but we all know what happens when we assume.

As I said, I don't use CMS so I have no idea how it displays usernames, but if you have a test/dev site online (with CMS) I would be willing to go there and see if I can get it to work.
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 11:22 AM.


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.05186 seconds
  • Memory Usage 2,365KB
  • Queries Executed 28 (?)
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
  • (3)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
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete