Problems with Links

2 views
Skip to first unread message

acn-b

unread,
Apr 2, 2009, 10:44:03 AM4/2/09
to Pixie
Hello,

i have a problem to add Links. "Normal" links are no problem, but if i
want to add the following link:
http://links.verotel.com/cgi-bin/showsite.verotel?vercode=30739:9804000000925130

Pixie does not accept it:
"Please make sure you entered a calid Link"

How can i add Links like above?

Greetings

Scott

unread,
Apr 3, 2009, 6:19:33 AM4/3/09
to Pixie
Hi
This bug has been reported a few times. The problem is the URL
validation is not particularly good in Pixie. You have two options:

1. Use a URL shortening service (tinyurl.com or bit.ly)
2. Disable the validation check:

- Open up admin/lib/lib_validate.php
- Goto Line: 52.
- and replace the fuction:

// Validate a web address
function validateURL($url, $description = '') {
$result = preg_match ("/^[a-zA-Z]+[:\/\/]+[A-Za-z0-9\-_]+\\.+[A-
Za-z0-9\.\/%&=\?\-_]+$/i", $url);
if ($result) {
return true;
} else {
$this->errors[] = $description;
return false;
}
}

- with:

// Validate a web address
function validateURL($url, $description = '') {
return true;
}

Scott

On Apr 2, 3:44 pm, acn-b <i...@online-publishing.net> wrote:
> Hello,
>
> i have a problem to add Links. "Normal" links are no problem, but if i
> want to add the following link:http://links.verotel.com/cgi-bin/showsite.verotel?vercode=30739:98040...

Sam Collett

unread,
Apr 3, 2009, 12:34:22 PM4/3/09
to pixi...@googlegroups.com
You could try this regular expression:

(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])?

--Sam

2009/4/3 Scott <scot...@gmail.com>

Scott

unread,
Apr 3, 2009, 3:39:54 PM4/3/09
to Pixie
Thanks Sam
I will give this a try... looks like a useful site too :)

Scott

On Apr 3, 5:34 pm, Sam Collett <sam.coll...@gmail.com> wrote:
> You could try this regular expression:
> (http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&amp;:/~\+#]*[\w\-\@?^=%&amp;/~\+#])?
>
> Source:http://regexlib.com/REDetails.aspx?regexp_id=96
>
> --Sam
>
> 2009/4/3 Scott <scotts...@gmail.com>
Reply all
Reply to author
Forward
0 new messages