Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #32  
Old 06-22-2010, 04:21 PM
juan71287 juan71287 is offline
 
Join Date: Dec 2003
Location: New York
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot
Reply With Quote
  #33  
Old 06-28-2010, 12:51 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update: v4.0.002
-- Was released at Wolfshead Solutions on Sunday 20th June 2010
-- Updated: Plugin to also work on vBulletin 4.0.4
Reply With Quote
  #34  
Old 06-28-2010, 05:46 AM
NickyNet NickyNet is offline
 
Join Date: Oct 2001
Location: Vienna, .at
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mosh View Post
Update: v4.0.002
-- Was released at Wolfshead Solutions on Sunday 20th June 2010
-- Updated: Plugin to also work on vBulletin 4.0.4
thank you! working fine again within 4.0.4 :up:
Reply With Quote
  #35  
Old 06-28-2010, 08:28 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mosh View Post
Update: v4.0.002
-- Was released at Wolfshead Solutions on Sunday 20th June 2010
-- Updated: Plugin to also work on vBulletin 4.0.4
thanks
Reply With Quote
  #36  
Old 07-24-2010, 04:43 PM
juan71287 juan71287 is offline
 
Join Date: Dec 2003
Location: New York
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

TY.. but I still cant see the name on the POST. and when I went back to edit
Code:
if (!empty($post["field{$vbulletin->options['realname_profile_field']}"]))
and replace with
Code:
global $vbulletin; if (!empty($post["field{$vbulletin->options['realname_profile_field']}"]))
[/QUOTE]

There is no
Code:
if (!empty($post["field{$vbulletin->options['realname_profile_field']}"]))
anymore. Any help on how to get it to show on teh POST again?
Reply With Quote
  #37  
Old 07-24-2010, 04:58 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add this ABOVE the code in the postbit_display_complete plugin:

Code:
global $vbulletin;
Reply With Quote
  #38  
Old 07-24-2010, 05:05 PM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

italian language
Attached Files
File Type: xml real_name.xml (1.4 KB, 8 views)
Reply With Quote
  #39  
Old 07-24-2010, 07:32 PM
juan71287 juan71287 is offline
 
Join Date: Dec 2003
Location: New York
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@BooFo, thanks for the help man. Your always trying to help me... but I dont know where to put that, This is the code I see:
Code:
<plugins>
		<plugin active="1" executionorder="5">
			<title>Real Name In Profile and Postbit</title>
			<hookname>postbit_display_complete</hookname>
			<phpcode><![CDATA[global $vbulletin;
if (!empty($post["field{$this->registry->options['realname_profile_field']}"]))
{
    $template_hook['postbit_userinfo_right_after_posts'] .= '<dt>' . $vbphrase['real_name'] . '</dt>  <dd>' . $post["field{$this->registry->options['realname_profile_field']}"] . '</dd>';
}]]></phpcode>
		</plugin>
	</plugins>

I add
Code:
global $vbulletin;
ABOVE the first PLUGIN tag?

Code:
global $vbulletin;<plugins>
		<plugin active="1" executionorder="5">
			<title>Real Name In Profile and Postbit</title>
			<hookname>postbit_display_complete</hookname>
			<phpcode><![CDATA[global $vbulletin;
if (!empty($post["field{$this->registry->options['realname_profile_field']}"]))
{
    $template_hook['postbit_userinfo_right_after_posts'] .= '<dt>' . $vbphrase['real_name'] . '</dt>  <dd>' . $post["field{$this->registry->options['realname_profile_field']}"] . '</dd>';
}]]></phpcode>
		</plugin>
	</plugins>
Reply With Quote
  #40  
Old 07-24-2010, 07:57 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, from what you have posted, the first piece of code that you said you see, already has that in it, even though it is not needed anymore. So the mod should work fine as is. Are you trying to use this in a custom skin by chance?

Quote:
<plugins>
<plugin active="1" executionorder="5">
<title>Real Name In Profile and Postbit</title>
<hookname>postbit_display_complete</hookname>
<phpcode><![CDATA[global $vbulletin;
if (!empty($post["field{$this->registry->options['realname_profile_field']}"]))
{
$template_hook['postbit_userinfo_right_after_posts'] .= '<dt>' . $vbphrase['real_name'] . '</dt> <dd>' . $post["field{$this->registry->options['realname_profile_field']}"] . '</dd>';
}]]></phpcode>
</plugin>
</plugins>
Reply With Quote
  #41  
Old 07-24-2010, 09:20 PM
juan71287 juan71287 is offline
 
Join Date: Dec 2003
Location: New York
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its working now..... I just had not added my name, so it didn't show. Thanks and sry for the bother.
Reply With Quote
Reply

Thread Tools

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 04:05 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.05298 seconds
  • Memory Usage 2,349KB
  • 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
  • (7)bbcode_code
  • (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
  • (4)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