Formatting in Message Template

Discussion related to NP Subscriber.

Formatting in Message Template

Postby Jeff » Sat May 20, 2006 7:30 am

I am trying to create a standard footer message using the message template. After creating the template and saving it, all formatting character's (I.E. Carriage Returns) are stripped. I know I could get around this if I sent the messages in HTML, but I prefer to use plain text. Is there a way to embed the formatting character's in the message template?
Jeff
 

Postby Admin-BS » Sat May 20, 2006 1:39 pm

This seems to be a bug... but... there appears to be an easy fix.

Search subscriber.cgi for "sub message" and find the following line:
Code: Select all
$message_template =~ s/\n//g;


Comment it out (add a # in front of it), or just delete the line. Then, repeat this in the subroutine named "edit" (search for "sub edit"), and try it again (this second step fixes it in the variable editing screen). This should get rid of that problem.

I'm currently questing myself as to why that line was there in the first place, and I can't think of any reason...
Admin-BS
Site Admin
 
Posts: 99
Joined: Sat Dec 31, 2005 6:52 pm
Location: USA


Return to Subscriber

Who is online

Users browsing this forum: No registered users and 2 guests

cron