Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Remove Real Name

8 years 10 months ago
Licenses:
JomSocial Expired Socialize Expired

ISSUE SUMMARY:

I'm developing an Adult Content site and do not need to ask for the users real name during the registration process. How do I prevent this?

Is this a Jomsocial or Joomla Tweak as I cannot seem to find a solution when searching either site.

Thanks!

8 years 10 months ago
Licenses:

Hi,

here the steps:
1. copy /components/com_community/templates/jomsocial/layouts/register/base.php to /templates/socialize/html/com_community/layouts/register/base.php (create the folder if not exist yet under socialize template)
2. edit that file and remove this code from line 21 - 43

<?php if ($isUseFirstLastName) { ?>

    <div class="joms-form__group">
        <span><?php echo JText::_('COM_COMMUNITY_FIRST_NAME'); ?> <span class="joms-required">*</span></span>
        <input type="text" name="jsfirstname" value="<?php echo $data['html_field']['jsfirstname']; ?>" class="joms-input"
            data-required="true">
    </div>

    <div class="joms-form__group">
        <span><?php echo JText::_('COM_COMMUNITY_LAST_NAME'); ?> <span class="joms-required">*</span></span>
        <input type="text" name="jslastname" value="<?php echo $data['html_field']['jslastname']; ?>" class="joms-input"
            data-required="true">
    </div>

<?php } else { ?>

    <div class="joms-form__group">
        <span><?php echo JText::_('COM_COMMUNITY_NAME'); ?> <span class="joms-required">*</span></span>
        <input type="text" name="jsname" value="<?php echo $data['html_field']['jsname']; ?>" class="joms-input"
            data-required="true">
    </div>

<?php } ?>

3. and you need to put custom code at jomsocial core file. but every time you upgrading your jomsocial, you need to re-apply this changing again. please edit:
/components/com_community/controllers/register.php around line 70, find this code
// Get required system objects
$config = CFactory::getConfig();
$post = $jinput->post->getArray();
after that code put this code
$post['jsname'] = $post['jsusername'];

so name will always same with username.

I hope my explanation is clear for you :)

Good luck!

The following user(s) said Thank You: Stephen
8 years 10 months ago
Licenses:
JomSocial Expired Socialize Expired

Thanks for the info.

I just realized really all I needed to do was edit the language file to read 'Display Name' instead of 'Name' and just trick the user into putting what they want to be shown on their profile.

I would suggest making this an option in a future release though. Lots of people need this option.

The following user(s) said Thank You: Albertus
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW