Results 1 to 3 of 3

Thread: PATCH: HTML Emails and Templates

  1. #1
    funkypenguin is offline Junior Member
    Join Date
    May 2005
    Posts
    3

    Post PATCH: HTML Emails and Templates

    Hi guys,

    I've made a few modifications to SugarCRM OS 3.0c, based on Malik's awesome work (http://sugarcrm.com/forums/showthread.php?t=1927)

    I've got HTMLArea (HTML editing) working in email templates, and in individual emails. The only catch, is if you apply a template to an email, you must be in "source" mode to see it.

    To install:

    - Unzip the patch file
    - Change into the root of your Sugar directory
    - Run "patch -p1 < /location/to/patch/file"

    The following files will be altered:

    /index.php
    /json.php
    /modules/EmailTemplates/EditView.php
    /modules/EmailTemplates/DetailView.html
    /modules/EmailTemplates/DetailView.php
    /modules/Emails/EditView.php
    /modules/Emails/DetailView.php
    /modules/Emails/DetailView.html

    And /include/htmlarea will be created

    Comments?

    Enjoy!

    - David
    Attached Files Attached Files
    Last edited by funkypenguin; 2005-05-23 at 04:43 PM.

  2. #2
    horsedog is offline Junior Member
    Join Date
    Sep 2004
    Posts
    4

    Default Re: PATCH: HTML Emails and Templates

    I could not find the images for the buttons, so i copied them from the file for html area from the 2.5 modification..

    My only problem now is how to force phpmailer to make the resulting email display as an html email in horde
    Thunderbird shows it as html, but horde does not.

    why does the htmlarea call www.example.com when you click on a button?

    Would it be all that hard to view sent emails as html? vs the straight text?
    Last edited by horsedog; 2005-05-23 at 06:27 PM.

  3. #3
    wednstay is offline Junior Member
    Join Date
    Apr 2005
    Posts
    3

    Default Re: PATCH: HTML Emails and Templates

    i receive more errors ...

    ztlnx001:/var/www_beta# patch -p1 < ../sugarcrm_htmlarea.patch
    The next patch would create the file cache/dynamic_fields/modules.php,
    which already exists! Assume -R? [n] y
    patching file cache/dynamic_fields/modules.php
    patching file cache/feeds/0f27af3d94689c34aac945c4a8c93bad
    patching file cache/feeds/47db9b2754f06f63b5f16e00e3281031
    patching file cache/feeds/d3e7322c495b0df4759b90bba32985b0
    patching file cache/xml/1_c4ca4238a_Sugar_2082672713_my_pipeline_en_us_176 2355022005-05-232100-01-01.xml
    patching file cache/xml/3d305c90-a7ef-183d-b6ee-4291a1f3db71_e83872d85_Paradise_991821272_my_pipel ine_en_us_1762355022005-05-232100-01-01.xml
    patching file cache/xml/3d305c90-a7ef-183d-b6ee-4291a1f3db71_e83872d85_Retro_991821272_my_pipeline _en_us_1762355022005-05-232100-01-01.xml
    patching file config.php
    patching file .htaccess
    patching file include/htmlarea/ChangeLog
    patching file include/htmlarea/dialog.js
    patching file include/htmlarea/examples/2-areas.cgi
    patching file include/htmlarea/examples/2-areas.html
    patching file include/htmlarea/examples/context-menu.html
    patching file include/htmlarea/examples/core.html
    patching file include/htmlarea/examples/css.html
    patching file include/htmlarea/examples/custom.css
    patching file include/htmlarea/examples/full-page.html
    patching file include/htmlarea/examples/fully-loaded.html
    patching file include/htmlarea/examples/index.html
    patching file include/htmlarea/examples/spell-checker.html
    patching file include/htmlarea/examples/table-operations.html
    patching file include/htmlarea/examples/test.cgi
    patching file include/htmlarea/htmlarea.css
    patching file include/htmlarea/htmlarea.js
    patching file include/htmlarea/index.html
    patching file include/htmlarea/lang/b5.js
    patching file include/htmlarea/lang/cz.js
    patching file include/htmlarea/lang/da.js
    patching file include/htmlarea/lang/de.js
    patching file include/htmlarea/lang/ee.js
    patching file include/htmlarea/lang/el.js
    patching file include/htmlarea/lang/en.js
    patching file include/htmlarea/lang/es.js
    patching file include/htmlarea/lang/fi.js
    patching file include/htmlarea/lang/fr.js
    patching file include/htmlarea/lang/gb.js
    patching file include/htmlarea/lang/he.js
    patching file include/htmlarea/lang/hu.js
    patching file include/htmlarea/lang/it.js
    patching file include/htmlarea/lang/ja-euc.js
    patching file include/htmlarea/lang/ja-jis.js
    patching file include/htmlarea/lang/ja-sjis.js
    patching file include/htmlarea/lang/ja-utf8.js
    patching file include/htmlarea/lang/lt.js
    patching file include/htmlarea/lang/lv.js
    patching file include/htmlarea/lang/nb.js
    patching file include/htmlarea/lang/nl.js
    patching file include/htmlarea/lang/no.js
    patching file include/htmlarea/lang/pl.js
    patching file include/htmlarea/lang/pt_br.js
    patching file include/htmlarea/lang/ro.js
    patching file include/htmlarea/lang/ru.js
    patching file include/htmlarea/lang/se.js
    patching file include/htmlarea/lang/si.js
    patching file include/htmlarea/lang/vn.js
    patching file include/htmlarea/license.txt
    patching file include/htmlarea/plugins/ContextMenu/context-menu.js
    patching file include/htmlarea/plugins/ContextMenu/lang/de.js
    patching file include/htmlarea/plugins/ContextMenu/lang/el.js
    patching file include/htmlarea/plugins/ContextMenu/lang/en.js
    patching file include/htmlarea/plugins/ContextMenu/lang/nl.js
    patching file include/htmlarea/plugins/ContextMenu/menu.css
    patching file include/htmlarea/plugins/CSS/css.js
    patching file include/htmlarea/plugins/CSS/lang/en.js
    patching file include/htmlarea/plugins/FullPage/full-page.js
    patching file include/htmlarea/plugins/FullPage/lang/en.js
    patching file include/htmlarea/plugins/FullPage/lang/ro.js
    patching file include/htmlarea/plugins/FullPage/popups/docprop.html
    patching file include/htmlarea/plugins/FullPage/test.html
    patching file include/htmlarea/plugins/SpellChecker/lang/cz.js
    patching file include/htmlarea/plugins/SpellChecker/lang/da.js
    patching file include/htmlarea/plugins/SpellChecker/lang/de.js
    patching file include/htmlarea/plugins/SpellChecker/lang/en.js
    patching file include/htmlarea/plugins/SpellChecker/lang/hu.js
    patching file include/htmlarea/plugins/SpellChecker/lang/it.js
    patching file include/htmlarea/plugins/SpellChecker/lang/ro.js
    patching file include/htmlarea/plugins/SpellChecker/readme-tech.html
    patching file include/htmlarea/plugins/SpellChecker/spell-checker.js
    patching file include/htmlarea/plugins/SpellChecker/spell-check-logic.cgi
    patching file include/htmlarea/plugins/SpellChecker/spell-check-style.css
    patching file include/htmlarea/plugins/SpellChecker/spell-check-ui.html
    patching file include/htmlarea/plugins/SpellChecker/spell-check-ui.js
    patching file include/htmlarea/plugins/TableOperations/lang/cz.js
    patching file include/htmlarea/plugins/TableOperations/lang/da.js
    patching file include/htmlarea/plugins/TableOperations/lang/de.js
    patching file include/htmlarea/plugins/TableOperations/lang/el.js
    patching file include/htmlarea/plugins/TableOperations/lang/en.js
    patching file include/htmlarea/plugins/TableOperations/lang/fi.js
    patching file include/htmlarea/plugins/TableOperations/lang/hu.js
    patching file include/htmlarea/plugins/TableOperations/lang/it.js
    patching file include/htmlarea/plugins/TableOperations/lang/nl.js
    patching file include/htmlarea/plugins/TableOperations/lang/no.js
    patching file include/htmlarea/plugins/TableOperations/lang/ro.js
    patching file include/htmlarea/plugins/TableOperations/table-operations.js
    patching file include/htmlarea/popupdiv.js
    patching file include/htmlarea/popups/about.html
    patching file include/htmlarea/popups/blank.html
    patching file include/htmlarea/popups/custom2.html
    patching file include/htmlarea/popups/editor_help.html
    patching file include/htmlarea/popups/fullscreen.html
    patching file include/htmlarea/popups/insert_image.html
    patching file include/htmlarea/popups/insert_table.html
    patching file include/htmlarea/popups/link.html
    patching file include/htmlarea/popups/old-fullscreen.html
    patching file include/htmlarea/popups/old_insert_image.html
    patching file include/htmlarea/popups/popup.js
    patching file include/htmlarea/popups/select_color.html
    patching file include/htmlarea/popupwin.js
    patching file include/htmlarea/reference.html
    patching file include/htmlarea/release-notes.html
    patching file include/javascript/sugar_3.js
    patching file index.php
    Hunk #1 FAILED at 431.
    1 out of 1 hunk FAILED -- saving rejects to file index.php.rej
    patching file json.php
    Hunk #1 FAILED at 77.
    1 out of 1 hunk FAILED -- saving rejects to file json.php.rej
    patching file log4php.properties
    Reversed (or previously applied) patch detected! Assume -R? [n] y
    patching file modules/EmailMan/EmailMan.php
    Hunk #1 FAILED at 233.
    1 out of 1 hunk FAILED -- saving rejects to file modules/EmailMan/EmailMan.php.rej
    patching file modules/Emails/EditView.html
    Hunk #1 FAILED at 267.
    Hunk #2 FAILED at 347.
    Hunk #3 FAILED at 367.
    3 out of 3 hunks FAILED -- saving rejects to file modules/Emails/EditView.html.rej
    patching file modules/Emails/Email.php
    Hunk #1 FAILED at 858.
    1 out of 1 hunk FAILED -- saving rejects to file modules/Emails/Email.php.rej
    patching file modules/EmailTemplates/DetailView.html
    Hunk #1 FAILED at 77.
    1 out of 1 hunk FAILED -- saving rejects to file modules/EmailTemplates/DetailView.html.rej
    patching file modules/EmailTemplates/DetailView.php
    Hunk #1 FAILED at 101.
    Hunk #2 FAILED at 114.
    2 out of 2 hunks FAILED -- saving rejects to file modules/EmailTemplates/DetailView.php.rej
    patching file modules/EmailTemplates/EditView.html
    Hunk #1 FAILED at 109.
    1 out of 1 hunk FAILED -- saving rejects to file modules/EmailTemplates/EditView.html.rej

    thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •