*

Romeo

  • ****
  • 115 posts
website link
« on: May 10, 2017, 08:48:42 PM »
website link error on public profile user
link: europaforsale.ro/user/profile/112

*

MB Themes

Re: website link
« Reply #1 on: May 11, 2017, 09:16:31 AM »
@Romeo
Well, valid website link starts with http
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Romeo

  • ****
  • 115 posts
Re: website link
« Reply #2 on: May 11, 2017, 08:46:05 PM »
And how can we do this automatically? Many users do not know what they are doing so they write www.mysite.comm

*

MB Themes

Re: website link
« Reply #3 on: May 12, 2017, 08:16:02 AM »
@Romeo
You need PHP function that will check if URL contains http or https, if not then add it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Romeo

  • ****
  • 115 posts
Re: website link
« Reply #4 on: May 12, 2017, 04:07:53 PM »
I know I need a php function, but I do not know how to do it and I think it's good if it's added to the veronika theme at the next update   :P ;) :)

*

MB Themes

Re: website link
« Reply #5 on: May 13, 2017, 12:48:11 PM »
@Romeo
You can find it on google
Code: [Select]
$var = 'www.somesite.com';

if(strpos($var, 'http://') !== 0 && strpos($var, 'https://') !== 0) {
  return 'http://' . $var;
} else {
  return $var;
}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Romeo

  • ****
  • 115 posts
Re: website link
« Reply #6 on: May 19, 2017, 09:44:34 PM »
Thanks da do not know how to implement codes.  :'( :'( :'( :'( :'(