COMMUNITY FORUM
K2 user page - remove gender question
- Sneak Design
-
Topic Author
- Offline
- New Member
Less
More
14 years 3 months ago #92496
by Sneak Design
K2 user page - remove gender question was created by Sneak Design
After trawling and trawling I have not been able to find a solution to this - I just want to remove the field that asks a user their gender, on their user page.
I have found what seems to be the relevant code in register.php and profile.php in the K2 templates, but commenting the section out does not remove the field. In fact I don't seem to be able to make any changes to the user page at all.
I have downloaded and installed the User Extended Fields plugin (which is great!) but doesn't provide an option to do anything to the gender field.
Any help?
I have found what seems to be the relevant code in register.php and profile.php in the K2 templates, but commenting the section out does not remove the field. In fact I don't seem to be able to make any changes to the user page at all.
I have downloaded and installed the User Extended Fields plugin (which is great!) but doesn't provide an option to do anything to the gender field.
Any help?
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 3 months ago #92497
by william white
IN components/com_k2/templates/registar.php
look for
<!-- K2 attached fields --> <tr> <td><label id="gendermsg" for="gender"><?php echo JText::_( 'Gender' ); ?></label></td> <td><?php echo $this->lists; ?></td> </tr> <tr>
comment it out.
Replied by william white on topic K2 user page - remove gender question
IN components/com_k2/templates/registar.php
look for
<!-- K2 attached fields --> <tr> <td><label id="gendermsg" for="gender"><?php echo JText::_( 'Gender' ); ?></label></td> <td><?php echo $this->lists; ?></td> </tr> <tr>
comment it out.
Please Log in or Create an account to join the conversation.
- Sneak Design
-
Topic Author
- Offline
- New Member
14 years 3 months ago #92498
by Sneak Design
Replied by Sneak Design on topic K2 user page - remove gender question
Thanks William, but that's exactly what I did and it doesn't affect the user page at all. I've searched for all other instances of the gender field but am unable to find whatever it is that my site is pulling from.
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 3 months ago #92499
by william white
Replied by william white on topic K2 user page - remove gender question
send a link to the site if its live
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
Less
More
- Posts: 567
14 years 3 months ago #92500
by Jiliko.net
Replied by Jiliko.net on topic K2 user page - remove gender question
Hi Anika,
Maybe you've got a K2 template overriding in your Joomla html template folder. Just check this folder for a 'register.php' file :
templates/YOUR_JOOMLA_TEMPLATE/html/com_k2
Olivier
Maybe you've got a K2 template overriding in your Joomla html template folder. Just check this folder for a 'register.php' file :
templates/YOUR_JOOMLA_TEMPLATE/html/com_k2
Olivier
Please Log in or Create an account to join the conversation.
- Sneak Design
-
Topic Author
- Offline
- New Member
14 years 3 months ago #92501
by Sneak Design
Replied by Sneak Design on topic K2 user page - remove gender question
That was it! I did have a K2 template going. Once I commented that section out, all was well.
Many thanks Oliver and William!
Many thanks Oliver and William!
Please Log in or Create an account to join the conversation.