Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Problem with comments

 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
Problem with comments
Author Message
Mr R



Joined: 27 Sep 2005
Posts: 82
Location: Spain

Post Problem with comments Reply with quote
Well, i'll try to describe my problem, when i'm not logged i write my comment and i write my password, but when i push enter, it give me a blank page of news but comments was sended, because i can see it then



When i'm logged the problem is same, but i have not to write my password Razz.



Is this correct??



www.misreflexiones.net/weblog.php



And: Why {author} shows username instead nickname in comments??
Sun Oct 23, 2005 10:19 am View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Guest








Please login to hide the ads.

Mr R



Joined: 27 Sep 2005
Posts: 82
Location: Spain

Post Reply with quote
anybody?
Mon Oct 24, 2005 11:59 pm View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
Quote:
And: Why {author} shows username instead nickname in comments??




Open show.comments.php and change this (line 44):

Code:
       if ($row['mail'] != 'none'){

           if (preg_match("/^[\.A-z0-9_\-]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{1,4}$/", $row['mail'])){

               $output = str_replace('{author}', '<a href="mailto:'.str_replace('@', ' at ', str_replace('.', ' dot ', $row['mail'])).'">'.$row['author'].'</a>', $template_comment);




to this:

Code:
       if ($row['mail'] != 'none'){

           if (preg_match("/^[\.A-z0-9_\-]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{1,4}$/", $row['mail'])){

               $output = str_replace('{author}', '<a href="mailto:'.str_replace('@', ' at ', str_replace('.', ' dot ', $row['mail'])).'">'.$name_to_nick[$row['author']].'</a>', $template_comment);




(Not tested)
Tue Oct 25, 2005 2:00 pm View user's profile Send private message
Mr R



Joined: 27 Sep 2005
Posts: 82
Location: Spain

Post Reply with quote
Parse error: parse error, unexpected T_ELSE in /web/htdocs/www.misreflexiones.net/home/cn/inc/show.comments.php on line 49
Tue Oct 25, 2005 9:58 pm View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:    
Reply to topic    Forum Index » Bugs and errors All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.