HTML Entered Directly Into The Template Fails

CommuniMail related questions

Moderator: admin

Message
Author
RickSanson
Posts: 36
Joined: Mar 14, 2007 6:27 pm

HTML Entered Directly Into The Template Fails

#1 Postby RickSanson » Sep 25, 2007 6:10 pm

Hi!

It's been awhile...

I am entering HTML directly into the template DB (using CSV) but the template file isn't read by Communimail.

What could be wrong?

Also, is there an update from 1.2

Thanks!

admin
Site Admin
Posts: 1791
Joined: Mar 22, 2006 12:32 pm

Re: HTML Entered Directly Into The Template Fails

#2 Postby admin » Sep 25, 2007 6:16 pm

RickSanson wrote:Hi!

It's been awhile...

I am entering HTML directly into the template DB (using CSV) but the template file isn't read by Communimail.

What could be wrong?

Also, is there an update from 1.2

Thanks!


Not sure what are you trying to do. Please clarify.

RickSanson
Posts: 36
Joined: Mar 14, 2007 6:27 pm

#3 Postby RickSanson » Sep 25, 2007 7:31 pm

For some reason, the TinyMCE editor doesn't like the HTML I am copying into it. So I am trying to add my HTML directly into the /db/Templates file.

TEMPL_ID,USER_ID,TITLE,BODY_TEXT,BODY_HTML
2,1,"NL02_HTML.html",,"My HTML is here"

After entering the HTML into the Templates file, Communimail either no longer see the Template file or it returns and error DB Error: Can't add Template --"

My real problem is that I have "known good" HTML but TinyMCE (I guess) doesn't like it at all. I have upgraded and downgraded TinyMCE with no success.

When using Dreamweaver for pure HTML code I cannot get any of Communiamil to work properly...

Thank you!

RickSanson
Posts: 36
Joined: Mar 14, 2007 6:27 pm

#4 Postby RickSanson » Sep 25, 2007 9:06 pm

I am finding that the Communimail doesn't like style information in the HTML...

I need to do this, how can I?

admin
Site Admin
Posts: 1791
Joined: Mar 22, 2006 12:32 pm

#5 Postby admin » Sep 26, 2007 1:55 pm

RickSanson wrote:For some reason, the TinyMCE editor doesn't like the HTML I am copying into it. So I am trying to add my HTML directly into the /db/Templates file.

TEMPL_ID,USER_ID,TITLE,BODY_TEXT,BODY_HTML
2,1,"NL02_HTML.html",,"My HTML is here"

After entering the HTML into the Templates file, Communimail either no longer see the Template file or it returns and error DB Error: Can't add Template --"

My real problem is that I have "known good" HTML but TinyMCE (I guess) doesn't like it at all. I have upgraded and downgraded TinyMCE with no success.

When using Dreamweaver for pure HTML code I cannot get any of Communiamil to work properly...

Thank you!



You cant just insert HTML in database. That will not work because of quoting.
Looks like your HTML code is not valid in therms of TinyMCE.
If want quick solution - you can turn off TinyMCE by commenting its init on line 62 of file templates/templform.html.

You need to comment following call:
tinyMCE.init({
theme : "advanced",
mode : "exact",
elements : "BODY_HTML",
relative_urls : false,
remove_script_host : false,
content_css : "example_advanced.css",
// extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
plugins : "table",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_buttons1 : "bold,italic,underline,separator,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,forecolor",
theme_advanced_buttons1_add : "bullist,image,a,link,hr,separator,undo,redo",
theme_advanced_buttons2 : "tablecontrols, code",
theme_advanced_buttons3 : "",
//invalid_elements : "a",
// theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1", // Theme specific setting CSS classes
debug : false,
oninit : "myInit"
});

RickSanson
Posts: 36
Joined: Mar 14, 2007 6:27 pm

#6 Postby RickSanson » Oct 13, 2007 4:30 pm

Update:

My HTML was bad! No fault of Communimail!


Return to “CommuniMail”

Who is online

Users browsing this forum: No registered users and 0 guests