PDA

View Full Version : End-User Options - Real Name In Profile And Postbit


Mosh
07-04-2008, 10:00 PM
Hack Support

This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored. You can now check out the 3.8.x version of this hack, as it also works with v3.7.5, v3.6.12 (and maybe even earlier versions).

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


vBulletin Version Compatibility

This hack can be used with v3.6.10 and v3.7.x. This has not been tested with earlier versions of v3.6.x, but should work.


What Does This Hack Do?

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).


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


Installation Instructions

The Real Name In Profile And Postbit Installation Instructions 3.7.xxx.pdf instructions file is included in attached .zip (includes visual instructions).
NOTE: If upgrading then just do Step 2 and Step 3 again.

Uninstall Instructions


In the AdminCP, go to User Profile Fields -> User Profile Field Manager.

Delete the Real Name profile field.

Uninstall the product using the AdminCP Product Manager.



Version History

v3.7.003 - Saturday 26th July 2008
-- Final Release
-- Changed: Removed dependency, now works with v3.6.10
-- Changed: Instructions to cater for installing on v3.6.10

v3.7.002 - Saturday 5th July 2008
-- Fixed: Blank username being displayed in postbit

v3.7.001 - Saturday 5th July 2008
-- Initial Release


Show Your Appreciation

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.

Hannan
07-05-2008, 04:19 AM
WoW, thanks I just looking for this one!
cheers

Mosh
07-05-2008, 05:35 AM
Update: v3.7.002


Fixed problem with the real name field being displaying in postbit when no real name entered.

dt_truck11
07-05-2008, 04:30 PM
*installed*

nice mod

Mischievious
07-06-2008, 10:19 AM
Thanks for this one!

Q-v-n-s-Q
07-06-2008, 10:46 AM
nice mod, thanks

chris1979
07-21-2008, 10:55 AM
I'd love to see this developed so the real name can be inserted into other pages.

Mosh
07-26-2008, 07:44 AM
Update: v3.7.003 - Saturday 26th July 2008
-- Changed: Removed dependency, now works with v3.6.10
-- Changed: Instructions to cater for installing on v3.6.10

NOTE: If already installed on v3.7.x, then there is no need to update to this version, as there are no functional changes. This is only for new installations, it now caters for v3.6.10 as well as v3.7.x.

Subah
07-26-2008, 09:06 AM
Thanks for the update :)

Lombardo
07-26-2008, 11:50 PM
Is there a way to put the name above join date?

Mosh
07-27-2008, 06:57 AM
Is there a way to put the name above join date?
Yes there is, but you would manually have to alter postbit and/or postbit_legacy templates, as there is no template hook available at that location and an automatic insertion can not be performed without adding around twice the code this hack already has. So, that is something you will have to look into and sort out yourself if you want it above the join date, as most of this simple hack would have to be rewritten to accomplish that, and I am not willing to do it.

Hugo Holbling
07-27-2008, 11:50 AM
Is there a way to put the name above join date?

You just need to add a new template hook. I used

$template_hook[postbit_userinfo_right_above_posts]

and then edited my postbit_legacy template:

<div class="smallfont">
&nbsp;<br />
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>

$template_hook[postbit_userinfo_right_above_posts]

<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

I then edited the plugin to change the template hook to the new one:

if ($post['field6'])
{
$template_hook['postbit_userinfo_right_above_posts'] .= '<div>' . $vbphrase['real_name'] . ': ' . $post['field6'] . '</div>';
}

If you want the real name to appear above the join date, just move the new template hook to after the <br />. You can do the same with the postbit template. This is not a difficult process: you just need to insert the new template hook wherever you want it (one line of code) and then edit the plugin (the same one line to replace the current template hook). That's it.

Deadly Assassin
08-07-2008, 04:46 AM
Thanks.

Nice template hook aswell Hugo,

cheers.

Mosh
01-08-2009, 01:14 AM
This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored. You can now check out the 3.8.x version of this hack, as it also works with v3.7.5, v3.6.12 (and maybe even earlier versions).