Recent Topics

1 Aug 29, 2006 23:44    

I seem to have found a bug: when I try to edit a comment where no website address was supplied, I get a "supplied url invalid" error: the driver is that it automatically is putting "http://" in the website address form and triggering the supplied url invalid response.

As a sidenote, how do I add back the functionality of allowing commenters to include URL's via a href in their posts?

2 Nov 05, 2006 21:27

I have the same problem irrespective of whether an URL has been supplied or not.

In case where an URL has not been supplied by the Commentator, the "http://" appears in the Input as NealO has briefed above.

3 Nov 05, 2006 23:11

The "http://" gets saved into the comments table.

To fix this, find


$this->author_url = (!stristr($url, '://')) ? 'http://'.$url : $url;


in blogs/inc/MODEL/comments/_comment.class.php and replace it with


if( ! empty($url) && ! preg_match( '~^\w+://~', $url ) )
{ // URL given and does not start with a protocol:
  $url = 'http://'.$url;
}

This allows commenters to use the A tag (see /conf/_formatting.php IIRC):


$comments_allowed_tags['a'] = C_E_a_content;

4 Nov 06, 2006 08:19

Thanks blue...

I didn't get the last bit though.

This allows commenters to use the A tag (see /conf/_formatting.php IIRC):

Should it be added to the

$comments_allowed_tags = array

or

$comments_allowed_tags += array

Cheers

5 Nov 06, 2006 19:48

Just add the line like it is at the end. Or search the line that looks similar and uncomment it (IIRC).


Form is loading...