Gossamer Forum
Home : Products : Links 2.0 : Customization :

line breaks in add success page, how?

Quote Reply
line breaks in add success page, how?
I read in the forum a fix for breaking up lines in the description, but what about for the add_success page, is it the same?

Thank you.
Quote Reply
Re: line breaks in add success page, how? In reply to
Yes...But you would add the codes in the following sub-routine in the site_html_templates.pl file:

Code:
sub site_html_add_success

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------







Quote Reply
Re: line breaks in add success page, how? In reply to
Would I add these codes to the 'site_html_templates.pl' file

sub site_html_add_success {
# --------------------------------------------------------
# This routine determines how the add success page will look like.

&html_print_headers;
*$rec{'Description'} =~ s,\n\n,<p>,;
*$rec{'Description'} =~ s,\n,<br>,;

print &load_template ('add_success.html', {
%in,
%globals
});

I'm not quite sure if that's where I would insert them. I gather from the forum discussion, this code would break the line on a carriage return only?

Thank you!



Quote Reply
Re: line breaks in add success page, how? In reply to
Yes. You add the codes like you have it.

Howz about testing your script to see if it works???

Wink

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------