News:

Join the Facebook Fan Page.

Main Menu

Change Name Fields?

Started by RedtopX, July 09, 2014, 11:34:04 AM

Previous topic - Next topic

RedtopX

Hi,

Is there a way I can change some of name fields like in profile page
eg: Name change it to Real Name?

QuoteName <<--- Default
This is the displayed name that people will see.

QuoteReal Name <<-- Modified
This is the displayed name that people will see.


What file should I edit in the back-end?

thanks

margarett

That is acquired from index.english.php --> $txt['name']
But to change it has probably implications in other places...

The safest way would be to add to index.english.php
$txt['name_real'] = 'Real Name';
Then edit Sources/Profile-Modify.php and find:
'label' => $txt['name'],
(under "real_name" array item)
And replace with:
'label' => $txt['name_real'],
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

RedtopX

Thanks @Margarett for the file idea, I did change the default index.english.php "Name" to "Real Name"

Now on the Registration page part:

QuoteChoose Display Name: <<=== Default
This is the name that will be displayed

change to

QuoteReal Name: <<=== Modified
This is the name that will be displayed

Where to find this line?


Thanks again for the support.

margarett

No idea :o I don't know that string in registration...
Do you use a MOD for entering display name at registration?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

RedtopX

sorry for the late reply...

no i am not using MOD for registration, still the default one.

margarett

Can you printscreen that? I have no idea where that comes from...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Illori

cant be default registration as that is not a default entry on the registration form.

RedtopX

Quote from: margarett on July 23, 2014, 10:36:46 AM
Can you printscreen that? I have no idea where that comes from...


Arantor

That's not standard in SMF. So, what mod was it that you added?

RedtopX

1)Birthday on Registration
2)Social Login (OneAll Social)

Arantor

I'm sorry, I have no idea how you added that field - I have no idea if it's part of the Social Login mod or not - but that field simply does not exist in SMF out of the box. A search on 'change display name' yields nothing in the entirety of 2.0.8.

RedtopX

Oh sorry here's one more "Display Name On Registration"

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

RedtopX

Ok got the file:


<?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>JBlaze:DisplayNameOnRegistration</id>
<version>2.0</version>

<file name="$languagedir/Modifications.english.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['display_name'] = 'Choose Display Name';
$txt['display_name_desc'] = 'This is the name that will be displayed';
]]>
</add>
</operation>
</file>


I hope this is correct

margarett

Yup, exactly ;)
Edit your Modifications.english.php and change the text as you wish. Do note that doing this will prevent the MOD from uninstall cleanly, in case you ever need to do it ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kindred

Also note, for the future -- questions regarding a specific mod should be asked and discussed in the thread dedicated to supporting that mod
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

RedtopX

Thanks for your @margarett :)

Will do that next time @Kindred, thanks ;)

Advertisement: