Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Search and Replace

 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
Search and Replace
Author Message
Mr R



Joined: 27 Sep 2005
Posts: 82
Location: Spain

Post Search and Replace Reply with quote
I want to replace {nl} for <br /> and it doesn't work, is it a bug??
Mon Oct 03, 2005 11:46 am View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Guest








Please login to hide the ads.

odin
Moderator


Joined: 29 Sep 2005
Posts: 138
Location: Poland

Post Re: Search and Replace Reply with quote
Mr R wrote:
I want to replace {nl} for <br /> and it doesn't work, is it a bug??




And what is this "{nl}" ? I don't think it is error. Search and replace work really good, but for changeing usual verbs Smile.



Are You using xml coding on page ? If not, "<br />" is used wrongfully.
Mon Oct 03, 2005 1:14 pm View user's profile Send private message MSN Messenger
Mr R



Joined: 27 Sep 2005
Posts: 82
Location: Spain

Post Reply with quote
When I import my files, all <br /> are written as {nl}, and I only want to change this, but it doesn't work
Mon Oct 03, 2005 1:32 pm View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
odin
Moderator


Joined: 29 Sep 2005
Posts: 138
Location: Poland

Post Reply with quote
This will be hard to take, but... as for now You'll have to change it in mysql manualy. I'll ask lexa what is this, but I can't mail him again and again. You know what I mean ? Turn on msn, i'll try to look at this more closely.



edit:

For every article change format to HTML with BR



edit2:

Those {nl} are automaticly convert to break lines. I've posted news using {nl}, and system converted these to <br>'s. Give me exapmle what is happening.
Mon Oct 03, 2005 2:04 pm View user's profile Send private message MSN Messenger
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
These {nl} are already in the news you want to import.



When you added news in your cutenews then the \n were replaced with {nl}.



Go to functions.inc.php and find something like this in replace_news:



Code:
    } elseif($way == 'add'){

        $find    = array('|', "\r", "\n");

        $replace = array('&#124', '', '{nl}');




Try to replace the {nl} with <br>.
Mon Oct 03, 2005 7:22 pm View user's profile Send private message
Mr R



Joined: 27 Sep 2005
Posts: 82
Location: Spain

Post Reply with quote
Well the problem is in comments, not in news. I edit the functions.inc.php but it doesn't work.



EDIT

I finally get it work, I add this code from function replace news, in function replace comments



Code:
elseif ($way == 'show'){

       $find    = array('{nl}');                 

        $replace = array("<br>");       

        $sourse  = stripslashes($sourse);

    }

Mon Oct 03, 2005 7:54 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.