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
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'],
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.
No idea :o I don't know that string in registration...
Do you use a MOD for entering display name at registration?
sorry for the late reply...
no i am not using MOD for registration, still the default one.
Can you printscreen that? I have no idea where that comes from...
cant be default registration as that is not a default entry on the registration form.
Quote from: margarett on July 23, 2014, 10:36:46 AM
Can you printscreen that? I have no idea where that comes from...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi62.tinypic.com%2Fxdi7mv.png&hash=868014477112d1c8f91c63c150daec6685636ba4)
That's not standard in SMF. So, what mod was it that you added?
1)Birthday on Registration
2)Social Login (OneAll Social)
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.
Oh sorry here's one more "Display Name On Registration"
There ya go :P
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
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 ;)
Also note, for the future -- questions regarding a specific mod should be asked and discussed in the thread dedicated to supporting that mod
Thanks for your @margarett :)
Will do that next time @Kindred, thanks ;)