I'm a longtime advocate for using K2.
I'm currently doing some specific customisations and I want to use the URL field for something else.
Please note that I'm already using Extended User Info (great addition, I highly recommend it).
I've managed to stop the URL field from becoming a link.
In components/com_k2/templates/user.php, I've edited line 133 from
<?php echo JText::_("Website URL"); ?>: <a href="<?php echo $this->user->profile->url; ?>" target="_blank" rel="nofollow"><?php echo $this->user->profile->url; ?></a>
to
<?php echo JText::_("Website URL"); ?>: <?php echo $this->user->profile->url; ?>
Essentially removing the hyperlinking <a> tag.
However the K2 backend still adds http:// to the front of the URL field.
I've gone into administrator/components/com_k2/views/user/tmpl/default.php to see if I can comment out something that adds the http:// to the url after you save/apply the User record, but I can't see how it adds the http:// to the URL field.
Can someone point me in the right direction?
I'm currently doing some specific customisations and I want to use the URL field for something else.
Please note that I'm already using Extended User Info (great addition, I highly recommend it).
I've managed to stop the URL field from becoming a link.
In components/com_k2/templates/user.php, I've edited line 133 from
<?php echo JText::_("Website URL"); ?>: <a href="<?php echo $this->user->profile->url; ?>" target="_blank" rel="nofollow"><?php echo $this->user->profile->url; ?></a>
to
<?php echo JText::_("Website URL"); ?>: <?php echo $this->user->profile->url; ?>
Essentially removing the hyperlinking <a> tag.
However the K2 backend still adds http:// to the front of the URL field.
I've gone into administrator/components/com_k2/views/user/tmpl/default.php to see if I can comment out something that adds the http:// to the url after you save/apply the User record, but I can't see how it adds the http:// to the URL field.
Can someone point me in the right direction?