Gossamer Forum
Home : Products : Gossamer Links : Discussions :

no page- and linebreaks after importing from links2

Quote Reply
no page- and linebreaks after importing from links2
Hi All,

I have a problem with my layout after importing from links2 (nosql).

The description-field shows everything with NO line- and pagebreaks. In my "old" links2 (nosql) everything looks fine.
When I look in the old flat-file DB I see this `` for pagebreaks and this ````` for pagebreaks.

How can I get the breaks back after importing?

Thanks,
Ron
Quote Reply
Re: [rsahertian] no page- and linebreaks after importing from links2 In reply to
Are the backticks imported into the database? It could be just as easy as using a MySQL REPLACE() query.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] no page- and linebreaks after importing from links2 In reply to
No Andy, wish they were.

When I scroll records with phpmyadmin I see the description-box that shows a good layout. But that is in a text-box!!! When generated dynamic html it is a mess! (no breaks, everything in one line!)

What's the difference between a text-box and html in this context?

Thanks,
ron
Quote Reply
Re: [rsahertian] no page- and linebreaks after importing from links2 In reply to
You may want to try a basic global to fix this.

new_description =>

Code:
sub {
my $description = shift;
$description =~ s/\n/<BR>/ig;
return $description;
}

Then to show the edited Description, call it with;

<%new_description($description)%>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] no page- and linebreaks after importing from links2 In reply to
Thanks Andy,

($description must be $Description)
Works.....

I hope your bomb will never explode!!!!
SlySlySly

Ron.

Last edited by:

rsahertian: Jun 2, 2003, 1:49 PM