How to remove "Website URL: xyz.com" from user profile page

GK User
Sat Oct 17, 2015 8:01 pm
My requirement is to hide the users websites from the user profile page. When I don't enter the website while creating the K2 user, it still displays the string "Website URL:"
How do I get rid of the whole string?
Image

I have searched many php files but I dont know what is generating the code to display the string.
Any css workaround will also be fine.

Please help.
User avatar
Fresh Boarder

GK User
Sat Oct 17, 2015 8:33 pm
Ok I got it.

And just in case if someone else needs it.

We have to delete line no: 41 in user.php in the folder
templates>gk_writer>html>com_k2>templates>default
User avatar
Fresh Boarder

teitbite
Tue Oct 20, 2015 9:40 am
Hi

I would suggest to replace this line, which looks like this now:

Code: Select all
        <?php echo JText::_('K2_WEBSITE_URL'); ?>: <a href="<?php echo $this->user->profile->url; ?>" target="_blank" rel="me"><?php echo $this->user->profile->url; ?></a>


to

Code: Select all
<?php if(!empy($this->user->profile->url)): ?>
        <?php echo JText::_('K2_WEBSITE_URL'); ?>: <a href="<?php echo $this->user->profile->url; ?>" target="_blank" rel="me"><?php echo $this->user->profile->url; ?></a>
<?php endif; ?>
User avatar
Moderator


cron