osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

WYSIWYG Newsletter ignores Text formatting?

This is a discussion on WYSIWYG Newsletter ignores Text formatting? within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I'm still trying to send html newsletters properly, and am having some problems. No matter what I try, I cannot ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-24-2005, 01:19 PM
New Member
 
Join Date: Jun 2004
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Nocturnaloner
Default WYSIWYG Newsletter ignores Text formatting?

I'm still trying to send html newsletters properly, and am having some problems. No matter what I try, I cannot get any sort of text formatting to happen, i.e., if I set fonts to Verdana, they will automatically be changed to Times, and any CSS I try to enter manually is completely ignored. The html and WYSIWYG stuff is all turned on. I can get images to show up, but changing a font is a complete bust, and CSS sure would be nice. Has ANYONE had success with this??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 08-25-2005, 04:40 PM
New Member
 
Join Date: Jun 2004
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Nocturnaloner
Default

Almost got it, the broken formatting was coming from CSS that wasn't being included in the head tags. BUT there is still one big problem: WYSIWYG is still inserting <br> tags EVERYWHERE, seemingly after every tag. I know I can't be the only one, and darned if I can find it with the search, so if you have a thread for me, fire away...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-19-2006, 01:01 PM
New Member
 
Join Date: Feb 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stevensdesign
Default

I am also having a problem with the <br> tag being inserted into my html newsletters. Can anyone help?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-20-2006, 12:53 PM
New Member
 
Join Date: Feb 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
stevensdesign
Default

I found that everytime you enter a return in your html code the emailer inserts a <br> tag. To solve this problem I made my html email then got rid of all the returns so it was one long running line of code. I've tested it a couple times and it is working for me, I'm interested to see if it fixes other peoples issues.

Example:
<html>
<body>
<a href="#">link</a>
<p>
<img src="#">
</p>
</body>
</html>

This would be changed to one continuous line:
<html><body><a href="#">link</a><p><img src="#"></p></body></html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 08-15-2006, 02:30 PM
Lurker
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
leith
Default <br> making newsletters useless!!

I've been having the same problem, with a &lt;br> tag being inserted to replace newlines in the actual html. The resulting emails had loads of whitespace. You can get rid of the problem by editing the file:
catalog\admin\includes\classes\email.php

Change the add_html function so that it no longer calls the tep_convert_linefeeds function with the HTML:


function add_html($html, $text = NULL, $images_dir = NULL) {
// $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '&lt;br>', $html);
$this->html = $html;
$this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text);

if (isset($images_dir)) $this->find_html_images($images_dir);
}

You may also want to change the preview page and confirm send pages so that they you can view the email as it will be sent. Just remove the calls to 'nl2br' in newsletter.php and newsletters.php:

catalog\admin\includes\modules\newsletters\newslet ter.php:
change nl2br($this->content) to $this->content

catalog\admin\newsletters.php:
change nl2br($nInfo->content) to $nInfo->content

I hope this is helpful!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Remove newsletter code_renegade osCMax v2 Customization/Mods 0 02-04-2006 11:00 PM
Conditional formatting in header.php file ReginaStelling osCommerce 2.2 Modification Help 2 08-03-2004 11:08 AM
Welcome Newsletter bobbiejames osCommerce 2.2 Modification Help 0 06-14-2004 07:41 AM
Newsletter / Emails peterb osCommerce 2.2 Modification Help 0 07-01-2003 09:54 AM
HTML Newsletter adrenalinez osCommerce 2.2 Modification Help 0 01-29-2003 10:16 PM


All times are GMT -8. The time now is 10:40 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax