Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Displaying "<br>" - Problem

Quote Reply
Displaying "<br>" - Problem
Hi,

In the Description field of a link, I try to use "Return" caracters, but Links SQL doesn't handle them.

For example, if in the field I put :

"This is

a test description."

Links SQL will then display it like this : "This is a test description."

Do you know how can I manage this feature with Links SQL ?

Thank you !

Amicalement / Regards,
Gautier Girard.
~~~~~~~~~~~~~~~~~~
French Partner of Gossamer Threads
Articles, conseils sur le Marketing internet, le référencement et la promotion de sites.

Last edited by:

Gautier: Jun 24, 2002, 4:25 AM
Quote Reply
Re: [Gautier] Displaying "<br>" - Problem In reply to
Not sure this will work, but try making a new global, say Description_Edit. Then add the following sub to it;

Code:
sub {

my $vars = shift;
my $Description = $vars->{Description}

my $Edited_Description = s/\n/<BR>/g;

return $Edited_Description;

}

Then just use <%Description_Edit%> in your link.html. THIS CODE IS UNTESTED!

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] Displaying "<br>" - Problem In reply to
Hi Andy,

Thank you for your help Smile.

Sorry for boring you again, but...Where do I create this new global ?

I'm not perl guru, not at all like you see, as I'm only able to well understand Php scripts Blush.



Your help is much appreciated.

Best Regards from France,

Amicalement / Regards,
Gautier Girard.
~~~~~~~~~~~~~~~~~~
French Partner of Gossamer Threads
Articles, conseils sur le Marketing internet, le référencement et la promotion de sites.
Quote Reply
Re: [Gautier] Displaying "<br>" - Problem In reply to
Goto Build > User Globals, and then just add it at the bottom of that page ;)

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] Displaying "<br>" - Problem In reply to
In Reply To:
Goto Build > User Globals, and then just add it at the bottom of that page ;)


Oh, it was so easy Crazy.

Let's say I just wanted to check if you are a Links SQL Guru Tongue.

...thank you a lot Andy Smile.

Amicalement / Regards,
Gautier Girard.
~~~~~~~~~~~~~~~~~~
French Partner of Gossamer Threads
Articles, conseils sur le Marketing internet, le référencement et la promotion de sites.
Quote Reply
Re: [Gautier] Displaying "<br>" - Problem In reply to
Hi,

I've always just put the html code directly into the description. This seems easier than writing a global for every piece of HTML you want in that field. Unless I'm missing something... (It seems like a simple solution!)

This is a<br>
test description.

Displays as

This is a
test description.

I have also used HTML to add a link, bold text, etc. to the description.
Quote Reply
Re: [Gautier] Displaying "<br>" - Problem In reply to
check this discussion out:
http://gossamer-threads.com/...iew_flat;post=153153
Post deleted by Gautier In reply to
Quote Reply
Re: [Evoir] Displaying "<br>" - Problem In reply to
(I don't know why but it seems I can't quote anything)

Hi AtoZ,

Your solution is good but unfortunately the people who will use Links SQL don't know Html at all Shocked. And of course, they will not want to learn it Tongue.

Amicalement / Regards,
Gautier Girard.
~~~~~~~~~~~~~~~~~~
French Partner of Gossamer Threads
Articles, conseils sur le Marketing internet, le référencement et la promotion de sites.
Quote Reply
Re: [Gautier] Displaying "<br>" - Problem In reply to
Hi Evoir,

I went to your URL,....thank you ! I didn't find this thread before posting here.

Well, it works with the solution of Alex, and it works with the solution of Andy too.



Thanks to you guys Smile.

Amicalement / Regards,
Gautier Girard.
~~~~~~~~~~~~~~~~~~
French Partner of Gossamer Threads
Articles, conseils sur le Marketing internet, le référencement et la promotion de sites.