News:

Wondering if this will always be free?  See why free is better.

Main Menu

Display Name On Registration

Started by Liam., April 04, 2009, 04:07:47 PM

Previous topic - Next topic

kingkingston

Quote from: Liam. on April 15, 2010, 09:10:06 AM
It does so automatically after the cache/that cookie has expired... I think.
how old are you, you seem like a net whizz :D

Arantor

Quote from: FireDitto on April 14, 2010, 07:56:42 PM
o_O mine changed back automatically? I went to change it back, and it had already done so.

Or more likely your browser had autofilled it from its own storage. Some browsers are notorious for 'trying to help'.

Raffoz

i use this mod...
adapted by me on SMF 2.0 RC3...

i have a problem: it seems to work perfectly... it asks the real name during registration...
but it doesn't save it in the profile of users...
so every user displays as real name the username... and then i have to manually change them... :(

anyone can help me? where is my error?

this is the code of the file smf-2.0.xml
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>Raffo:DisplayNameOnRegistration</id>
<version>2.0</version>

<file name="$sourcedir/Register.php">
<operation>
<search position="before"><![CDATA[ 'username' => !empty($_POST['user']) ? $_POST['user'] : '',]]></search>
<add><![CDATA[
'real_name' => !empty($_POST['real_name']) ? $_POST['real_name'] : '',]]></add>
</operation>
</file>

<file name="$themedir/Register.template.php">
<operation>
<search position="after"><![CDATA[<dt><strong><label for="smf_autov_reserve1">', $txt['email'], ':</label></strong></dt>]]></search>
<add><![CDATA[
<dt><strong><label>', $txt['display_name'], ':</label></strong><br />
<div class="smalltext">', $txt['display_name_desc'], '</div></dt>
<dd>
<input type="text" name="real_name" id="smf_autov_username" size="30" tabindex="', $context['tabindex']++, '" maxlength="25" value="', isset($context['real_name']) ? $context['real_name'] : '', '" />
<span id="smf_autov_username_div" style="display: none;">
<a id="smf_autov_username_link" href="#">
<img id="smf_autov_username_img" src="', $settings['images_url'], '/icons/field_check.gif" alt="" /> </a>
</span>
</dd>
]]></add>
</operation>

<operation>
<search position"replace"><![CDATA[<dt><strong><label for="smf_autov_username">', $txt['username'], ':</label></strong></dt>]]></search>
<add><![CDATA[<dt><strong><label for="smf_autov_username">', $txt['username'], ':</label></strong><br />
<div class="smalltext">', $txt['username_desc'], '</div></dt>
]]></add>
</operation>
</file>

</modification>

MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

Siirist

Hello,  :)

We know almost nothing.  :-[
Something came to mine for me as we read your problem and code.  O:)
We have never seen this code at all, YET, we do NOT think that SMF uses the words "real name" (with or without quotes).
We think that SMF would ALWAYS use the words "username" (with and without quotes).  ;)
Something to consider. And only our thoughts. O:)
Good luck. We also want to use this Mod. :)

Be Well,
Cloud Walker 8)
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Achilles.

Hello, any formal updates for RC3?

- All donations will proceed to my Youth Foundation.

http://poseidondesigners.tk/ -- Affordable Website Designs // Banners & More!

teh_Krall

Will this mod work if you already have an installed user base, ie is there a way for users to add a display name?

Arantor

Users can set their display name in Account Settings provided you give them permission to do so.

teh_Krall

Quote from: Arantor on May 05, 2010, 03:38:12 PM
Users can set their display name in Account Settings provided you give them permission to do so.

Thanks Arantor, I'll give the mod a test drive :)

Siirist

Quote from: Arantor on May 05, 2010, 03:38:12 PM
Users can set their display name in Account Settings provided you give them permission to do so.

Oh, Oh, I know this one! ;D


ADMINISTRATOR
Admin > Members > Permissions > General Permissions > (select Modify to the right of the membergroup that you want to set permissions for) > Personalize their profile > Edit their account settings > Select the left button to allow

USER
Profile > Modify Profile > Account Settings > 
Name
This is the displayed name that people will see.     Type desired Display name in box

Cloud 8)
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Arantor


Siirist

Arantor,  :D

Glad to have you back!!!  ;)
Hoping that all is well with you.  :)

Cloud 8)
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Arantor

I wasn't really ever gone, I think, but more back now than I was :)

Siirist

Quote from: Achilles. on May 03, 2010, 02:16:35 PM
Hello, any formal updates for RC3?

Looking forward to an update because I tried
Parse for SMF ver2.0RC3 and it said "not compatible" :(

Be Well,
Cloud 8)
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Nick Whetstone

I will try to get this updated when I get home this evening. :)
Quote from: SurvivorOfAbuse on August 08, 2010, 10:58:04 AM
Quote from: Achilles. on May 03, 2010, 02:16:35 PM
Hello, any formal updates for RC3?

Looking forward to an update because I tried
Parse for SMF ver2.0RC3 and it said "not compatible" :(

Be Well,
Cloud 8)
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

Siirist

Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Liam.

Alternatively you could try emulating the package in 2.0...

Antechinus

#96
Hey this thing no worky on 1.1.13. :P It just sets the username as the displayed name, just like a plain vanilla site. Yes, the relevant membergroups are allowed to edit their profiles. No errors in the log either.

ETA: NVM. You have to allow editing of the displayed name all the time. You can't just have them pick one on registration and stop them there. Bleh. Need a more advanced version of this thing. 

aTrucker

Is this going to be updated for 2.0.2?

Matthew K.

Short answer is no. (Ha)2 is no longer around...beyond an occasional hello or two ;)

Matthew K.

Quote from: aTrucker on February 07, 2012, 12:27:49 AM
Is this going to be updated for 2.0.2?
Tell you what, next time I talk to him, I'll get permission to take the modification over, and I'll provide an update to SMF 2.0.x.

Advertisement: