News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Display Name On Registration

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

Previous topic - Next topic

Liam.

Link to the mod


Display Name On Registration
Created By JBlaze, Taken Over And Updated By iKorp Networks

Link to Mod | Support Topic | Demo | Developer


Compatibility

The "Display Name On Registration" mod is compatible with all current versions of SMF. For the SMF 1.1.X series, and versions of SMF 2.0 before the release of 2.0 RC2, use the "DisplayNameOnRegistration.zip" file. For SMF 2.0 RC2, use the file with "_2RC2" at the end.

Features

This mod makes it so all new members can submit a Display Name as well as a User Name upon registration.

Installation

Install this modification through the package manager.

Languages

- English
- Serbian (Latin & Cryllic) thanks to Ravac
- Swedish thanks to Nas

Please feel free to translate others :)

$txt['display_name'] = 'Choose Display Name';
$txt['display_name_desc'] = 'This is the name that will be displayed';]]>

Changelog

Version 2.0 - December 22 2009
 * iKorp took over the mod and updated "Big or Small BBCode" to SMF 2.0 RC2.

Quote[tt]10/29/09 - v1.9
o Fixed bug in 2.0 RC1.2

9/20/09 - v1.8
o Fixed the bug I thought I fixed...

9/19/09 - v1.8
o Fixed a bug on installation

7/11/09 - v1.7
o Fixed a bug

6/11/09 - v1.6
o Added some goodies

6/10/09 - v1.5
o Tidied up the code
o Added more translations

4/15/09 - v1.4
o Fixed bug in 2.0 RC1.

4/5/09 - v1.3
o Fixed nasty bug that made screen blank upon click of [Apply Mod].
o Added support for 2.0 RC1.

4/409 - v1.2
o Added Serbian Latin and Serbian Cryllic translation.

4/3/09 - v1.1
o Added Swedish translation.

3/31/09 - v1.0
o Initial release submitted and awaiting approval.[/tt]

Credits

JBlaze - Creating the modification.
iKorp Networks - Updating the modification.

Marcus Forsberg

Congratulations on your first approved modifcation!

Swedish translation:


$txt['display_name'] = 'Välj visningsnamn';
$txt['display_name_desc'] = 'Detta är det namn som kommer att visas';
                       

heinandar

You shoud change in your modification.xml file

<file name="$themedir/Register.template.php">
      <operation>
         <search position="before"><![CDATA[


to..............

<file name="$themedir/Register.template.php">
      <operation>
         <search position="after"><![CDATA[

JBlaze

Quote from: Nas on April 04, 2009, 04:10:46 PM
Congratulations on your first approved modifcation!

Thanks Nas! :P

Quote from: heinandar on April 04, 2009, 06:44:52 PM
You shoud change in your modification.xml file

<file name="$themedir/Register.template.php">
      <operation>
         <search position="before"><![CDATA[


to..............

<file name="$themedir/Register.template.php">
      <operation>
         <search position="after"><![CDATA[

In the modification.xml file, when searching for a code, it is inversed. So in other words, if you want to add a code after, you must put <search position="before"> :P
Jason Clemons
Former Team Member 2009 - 2012

kingkingston


JBlaze

Jason Clemons
Former Team Member 2009 - 2012

Ravac

Nice work...

Modifications.serbian_latin-utf8.php

$txt['display_name'] = 'Ime';
$txt['display_name_desc'] = 'Ovo je ime koje će ostali korisnici videti';


Modifications.serbian_cyrillic-utf8.php

$txt['display_name'] = 'Име';
$txt['display_name_desc'] = 'Ово је име које ће остали корисници видети';

phpMyTony

Sweet! Would love this to be made for 2.0.

JBlaze

Jason Clemons
Former Team Member 2009 - 2012

JBlaze

Jason Clemons
Former Team Member 2009 - 2012

phpMyTony


JBlaze

Jason Clemons
Former Team Member 2009 - 2012

Tiribulus


JBlaze

Jason Clemons
Former Team Member 2009 - 2012

Tiribulus

#14
It doesn't seem to be a big deal, but can you think of a reason why when registering a new user I get an undefined variable ($memID, I should have saved the error) on like 373 of register.php?

I just registered a test user and everything worked fine, but on checking my error log that was there.
Thanks

EDIT:
http://gregnmary.gotdns.com:8080/index.php?action=register2
8: Undefined variable: memID
File: /srv/www/htdocs/Sources/Register.php
Line: 373

JBlaze

Do you have any other mods installed?
This mod doesn't affect memID so I don't see why it's coming up with an error....
Jason Clemons
Former Team Member 2009 - 2012

Tiribulus

You're quick on the draw there chief.

Yeah I was just thinking maybe it's not this mod because when I looked at the parser there's nothing related. The thing that made me think that is there's language in that section mentioning real name and this is a recent addition having to do with "real name". I should know better than to assume by now. I tried disabling recaptcha and enabling the regular verification, but it still does it.

Tons o mods actually. If worse comes to worse I'll start a topic in the SMF board. Sorry about that

JBlaze

Jason Clemons
Former Team Member 2009 - 2012

sulik

#18
Sorry for my English  :D and thanks for your mod  :)

Can you check something for me?
When i installed your mod for my SMF 2.0 RC1 everything looked good, but when i added new user in his profile i saw his login not display name in display name field. Of course display name field it was not empty in registration.
In mod code I changed from

<input type="text" name="realName" size="30" tabindex="' , $context['tabindex']++, '" maxlength="25" />

to

<input type="text" name="real_name" size="30" tabindex="' , $context['tabindex']++, '" maxlength="25" />


After this change, registration form working correctly.
Why original code not working correctly in my SMF?

Maybe you know how make that it was required field in registration?

Regards,
Sulik


JBlaze

Quote from: sulik on April 13, 2009, 12:57:28 PM
Sorry for my English  :D and thanks for your mod  :)

Can you check something for me?
When i installed your mod for my SMF 2.0 RC1 everything looked good, but when i added new user in his profile i saw his login not display name in display name field. Of course display name field it was not empty in registration.
In mod code I changed from

<input type="text" name="realName" size="30" tabindex="' , $context['tabindex']++, '" maxlength="25" />

to

<input type="text" name="real_name" size="30" tabindex="' , $context['tabindex']++, '" maxlength="25" />


After this change, registration form working correctly.
Why original code not working correctly in my SMF?

Maybe you know how make that it was required field in registration?

Regards,
Sulik



All fixed :P
Jason Clemons
Former Team Member 2009 - 2012

Advertisement: