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.

How to remove Name field at registration when Jomsocial registration used?

10 years 2 months ago
  • Julien's Avatar
    Topic Author
  • Julien
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Active GURU Active

Hello,

We are using Jomsocial registration. We are trying to avoid asking users for their name on registration. How can we remove Name field at registration?

I guess this field is required in the database. In case this is true, is it possible to generate a readable (repeated alternation of consonants and vowels) random string and use that as name until the user updates it on his profile? In case you find this useful for other users too is it possible to add it as a feature?

Respect for your awesome work!

10 years 2 months ago
Licenses:

Hi, Julien.

This field is required by Joomla! so it can't be removed.

But (!) you could enter a fixed value in this field and hide it with css :D So lets do it.

Copy this file ROOT/components/com_community/templates/default/register.index.php

to

ROOT/templates/your_current_template/html/com_community (if you don't have "html" or "com_community" folder, feel free to create them.

Then edit file in line 48, change this:

<input type="text" name="jsname" id="jsname" value="<?php echo $data['html_field']['jsname']; ?>" class="input text required validate-name" style="width: 70%" />

to this
<input type="text" name="jsname" id="jsname" value="DEFAULT USER NAME" class="input text required validate-name" style="width: 70%" />

Now you'll need to hide that field, change line 44 from this:
<li>

to this:
<li style="display: none;">

Confirm if it works for you.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Julien
10 years 2 months ago
  • Julien's Avatar
    Topic Author
  • Julien
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Active GURU Active

All is good. Thank you! I attached the patch for anyone interested.

7 years 3 months ago
Licenses:
JomSocial Expired

I know this topic is nearly three years old but wondered if it might still work on Joomla 3?

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