I use Joomla 2.5 registration form, but it's massive and I'd like to remove a few fields.
I removed a few lines from components\com_users\models\forms - that allowed me to remove the necessary fields from the screen (username, user, email2). But system still needs them. So I decided the problem with two adding
$this->email2=$this->email1;
$this->name=$this->username;
to libraries/joomla/database/table/user.php in 183 after public function check()
So I need somehow to give a new user a unique username. I have the idea, but it's hard for me to realise. The idea was found on wordpress forum (https://wordpress.stackexchange.com/questions/52302/is-it-possible-to-remove-username-field-from-the-registration-page-if-so-how) - the idea is to give a user a current timestamp as a username. Can you help me adopt it for joomla?
PS: Please, dont suggest me making a new plugin
0
votes
1 Answers
1
votes
- Don't hack the core files you'll never be able to apply security updates without loosing your changes. (Given that plugins are extremely simple I don't understand your issue)
- Use output overrides, (how to here), or layout overrides if you must.
- There are lots of "User Registration" plugins already in existence on the Joomla Extensions Directory.
- If you don't get the answer you want, try asking on the Joomla Q&A StackExhange site