Hide user profile fields regarding social media
Hide user profile fields regarding social media
11 years 5 months ago
I have been looking for this problem in more directions, but cannot find a solution.
Each Joomla user has a number of fields available to edit as his or her profile. These fields include items like name, address, birthday etc.. But also a large number of social connections can be filled in. Twitter account, Skype, Google+ etc.
I would like to hide these items from view when offering a user the edit-profile-fields.
Can this be done?
Thanks for your effort,
Ben
Each Joomla user has a number of fields available to edit as his or her profile. These fields include items like name, address, birthday etc.. But also a large number of social connections can be filled in. Twitter account, Skype, Google+ etc.
I would like to hide these items from view when offering a user the edit-profile-fields.
Can this be done?
Thanks for your effort,
Ben
Please Log in or Create an account to join the conversation.
Re: Hide user profile fields regarding social media
11 years 5 months ago
Hi Burnardo,
Open the edit_profile.php file in the "[root]/components/com_kunena/template/nts_kargo/html/user/" path. Go to about line 76 and remove below php code section.
Hope this helps
Open the edit_profile.php file in the "[root]/components/com_kunena/template/nts_kargo/html/user/" path. Go to about line 76 and remove below php code section.
Code:
<?php $i=1; foreach ($this->social as $social) : ?>
<tr class="krow<?php echo (++$i & 1)+1;?>">
<td class="kcol-first"><?php echo JText::_('COM_KUNENA_MYPROFILE_'.$social); ?></td>
<td class="kcol-mid">
<span class="editlinktip hasTip" title="<?php echo JText::_("COM_KUNENA_MYPROFILE_{$social}"); ?>::<?php echo JText::_("COM_KUNENA_MYPROFILE_{$social}_DESC"); ?>" >
<input type="text" name="<?php echo $social ?>" value="<?php echo $this->escape($this->profile->$social); ?>" />
</span>
</td>
</tr>
<?php endforeach ?>
Hope this helps
Hung Pham
Email: 9themestore@gmail.com
Twitter: @9themestore
Email: 9themestore@gmail.com
Twitter: @9themestore
Please Log in or Create an account to join the conversation.
Re: Hide user profile fields regarding social media
11 years 5 months ago
Your help did it.... all the way ...
Thank you for that.
Now all the "edit profile" items for social media are gone, and I like it that way. Not everyone is fond of these nagging creatures...
Now that you have solved one question, can I put another one, please...
I have been searching all over and found only a few that helped me find scraps of what I am really looking for.
The date format for birthday in the same "edit_profile" only shows "Year" "Month" "Date", while I would like to turn this around to the European style: "Day" "Month" "Year".
I did change the language ini-files, but they do not have the desired effect. ( [root]/language/en-GB/en-GB.ini ... and in my case also: [root]/language/nl-NL/nl-NL.ini )
So, maybe you can help me understand where to change the date format so that a birthday will be shown as: d M Y and also the guiding Tooltip line is adapted to: "Birthday: Day (DD) Month (MM) Year (YYYY)".
Thank you for our kind and effective effort,
Burnardo
Thank you for that.
Now all the "edit profile" items for social media are gone, and I like it that way. Not everyone is fond of these nagging creatures...
Now that you have solved one question, can I put another one, please...
I have been searching all over and found only a few that helped me find scraps of what I am really looking for.
The date format for birthday in the same "edit_profile" only shows "Year" "Month" "Date", while I would like to turn this around to the European style: "Day" "Month" "Year".
I did change the language ini-files, but they do not have the desired effect. ( [root]/language/en-GB/en-GB.ini ... and in my case also: [root]/language/nl-NL/nl-NL.ini )
So, maybe you can help me understand where to change the date format so that a birthday will be shown as: d M Y and also the guiding Tooltip line is adapted to: "Birthday: Day (DD) Month (MM) Year (YYYY)".
Thank you for our kind and effective effort,
Burnardo
Please Log in or Create an account to join the conversation.
Time to create page: 0.226 seconds