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)
-   -   End-User Options - Real Name In Profile And Postbit (https://vborg.vbsupport.ru/showthread.php?t=228961)

Mosh 11-26-2009 10:00 PM

Real Name In Profile And Postbit
 
1 Attachment(s)
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.

Zaiaku 11-27-2009 12:01 AM

Anyway you could do this without creating a profile field? I know its small potatoes but just trying to get around that. Perfect positioning on the profile tab!!!

Mosh 11-27-2009 01:39 AM

Quote:

Originally Posted by Zaiaku (Post 1921443)
Anyway you could do this without creating a profile field? I know its small potatoes but just trying to get around that. Perfect positioning on the profile tab!!!

Nope, sorry :(

SİMAR 11-27-2009 01:41 PM

thanks man

ndahiya 11-28-2009 12:16 PM

1. Just a small issue... In the postbit, it is showing the title as "Real Name", instead of the title of the field as defined (I use "Full name" for example). on the member info page, it shows up correctly.

2. can we have an option to hide the full name from not logged in users?

3. also, wonder if it possible to show the Full name more prominently, esp in the member info page (say just below/instead of the username).

thx

ndahiya

Silencer Groans 11-28-2009 11:58 PM

1 Attachment(s)
Excellent .. Thank you

Annex in Arabic with your permission

PinkLiquorice 11-29-2009 05:07 AM

Thank you for upgrading :)

znop 11-30-2009 06:04 PM

thank you.

Dr.osamA 12-01-2009 10:52 AM

thank you.
________
The Cigar Boss

Mosh 12-22-2009 09:01 PM

Tested and working fine with vBulletin 4.0.0 Gold.

I will no longer be supporting Alpha, Beta & Release Candidates of vBulletin 4.0.0.

Mosh 01-02-2010 12:21 AM

Hi all,

It is with regret that after over 4 years (and thousands of hours) spent providing free support for my free hacks released here, as of today I will no longer be able to provide support for free.

This is due to being unemployed for a while, being strapped for cash and unable to rely on the virtually non-existant donations from here to help to pay the bills or put food on the table for my family. I am now providing all support for my free hacks released here over at Wolfshead Solutions via an annual support subscription (for a small fee).

It does not mean I will be no longer release free hacks, I will, I just no longer be supporting them for free.

My free hacks have and always will remain free to download and use. And so will updates/bug fixes.

I will be releasing more free hacks, but if you require any support at all for those free hacks, you will need to purchase an annual support subscription over at Wolfshead Solutions to receive support.

I am really sorry I have to do this, but revenue generated by my programming gigs are now my only source of income, and I can no longer afford the luxury of providing free support here, when that time can be spent creating new commerial products, doing paid work requests or providing paid support to pay the bills.

Thank you for the understanding.

Regards,

Mosh.

vap0r-7 02-21-2010 05:14 PM

Do you have an eta on an update for 4.0.2

Mosh 02-22-2010 01:55 AM

Quote:

Originally Posted by vap0r-7 (Post 1988201)
Do you have an eta on an update for 4.0.2

This hack already works with vBulletin 4.0.2, which is why it does not need to be updated.

COL NIL SATIS 02-24-2010 04:21 PM

Thanks for this !!!! installed

Markos 03-05-2010 04:23 PM

i want to rap a box around it anyone tell me what template i edit

https://vborg.vbsupport.ru/

xili4n 03-06-2010 03:39 PM

Is there a way I can change location?
I'd like it just below "Member since".
(And adjusted left)

Markos 03-10-2010 10:10 PM

can no one tell me how to do this ???????????????

https://vborg.vbsupport.ru/showpost....5&postcount=15

Popa Andrei 03-12-2010 04:22 PM

can u make another plugin for Counter Strike Nick in postbit?

crazyace 03-15-2010 09:16 PM

If anyone wants to use this mod with v.net Style Postbit_legacy I have a fix for it.

-=Leb=- 03-17-2010 01:38 AM

thx for the update

AliceHoward 03-28-2010 03:24 AM

Lovely little addition, thank you sweetie.

Mosh 03-28-2010 04:05 AM

Quote:

Originally Posted by AliceHoward (Post 2011400)
Lovely little addition, thank you sweetie.

Thank you for the compliment Alice :)

AliceHoward 03-28-2010 12:58 PM

My pleasure, I just looked at your profile picture, you're such a cutie. ;)

(sorry mod's, spam session ends!)

YankForum 04-07-2010 06:43 PM

i think this is just the beginning of more spams :)
anyway tnx 4 mod :p

Boofo 05-14-2010 07:52 AM

Nice job, Mosh. ;)

Boofo 06-19-2010 04:35 AM

This may not work in 4.0.4 as, for some strange reason, the $vbulletin variable is not global in the postbit_display_complete hook now. At least is wasn't for me on one of my mods. Just a heads up.

compuminus 06-19-2010 04:39 PM

Quote:

Originally Posted by Boofo (Post 2055703)
This may not work in 4.0.4 as, for some strange reason, the $vbulletin variable is not global in the postbit_display_complete hook now. At least is wasn't for me on one of my mods. Just a heads up.

Yes, it's not working for me in 4.0.4. For the creator of this mod: Any plans for an update?

Boofo 06-19-2010 06:05 PM

It's an easy fix. In the code for the postbit_display_complete hook, just add:

Code:

global $vbulletin;

at the very top of the code.

juan71287 06-22-2010 03:47 PM

Hey, can you explain to me exactly where? Cuase I am not 100% where to add the "global $vbulletin;" This is the code:

Code:

<title>Real Name In Profile and Postbit</title>
                        <hookname>postbit_display_complete</hookname>
                        <phpcode><![CDATA[if (!empty($post["field{$vbulletin->options['realname_profile_field']}"]))
{
    $template_hook['postbit_userinfo_right_after_posts'] .= '<dt>' . $vbphrase['real_name'] . '</dt>  <dd>' . $post["field{$vbulletin->options['realname_profile_field']}"] . '</dd>';
}]]></phpcode>

Do I add it in FRONT of
Code:

<![CDATA[if (!empty($post["field{$vbulletin->options['realname_profile_field']}"]))
or AFTER?

Boofo 06-22-2010 04:05 PM

Replace:

Code:

if (!empty($post["field{$vbulletin->options['realname_profile_field']}"]))

with:

Code:

global $vbulletin;
if (!empty($post["field{$vbulletin->options['realname_profile_field']}"]))


juan71287 06-22-2010 04:21 PM

Thanks a lot :)

Mosh 06-28-2010 12:51 AM

Update: v4.0.002
-- Was released at Wolfshead Solutions on Sunday 20th June 2010
-- Updated: Plugin to also work on vBulletin 4.0.4

NickyNet 06-28-2010 05:46 AM

Quote:

Originally Posted by Mosh (Post 2060798)
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:

KURTZ 06-28-2010 08:28 AM

Quote:

Originally Posted by Mosh (Post 2060798)
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 :)

juan71287 07-24-2010 04:43 PM

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?

Boofo 07-24-2010 04:58 PM

Add this ABOVE the code in the postbit_display_complete plugin:

Code:

global $vbulletin;

KURTZ 07-24-2010 05:05 PM

1 Attachment(s)
italian language :)

juan71287 07-24-2010 07:32 PM

@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>


Boofo 07-24-2010 07:57 PM

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>

juan71287 07-24-2010 09:20 PM

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


All times are GMT. The time now is 05:50 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.01614 seconds
  • Memory Usage 1,830KB
  • 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
  • (12)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete