CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Image upload and browser with WYSIWYG editors
Pages: [1]

Author Topic: Image upload and browser with WYSIWYG editors  (Read 3867 times)

BrainBurner

  • Guest
Image upload and browser with WYSIWYG editors
September 16, 2009, 01:23:43 pm
Hi all,

I recently installed civiCRM 2.2.9 with Drupal 6 and I wanted to try sending html mailings, but in the fckeditor I don't see the browser (neither the upload) button in the image pop-up.
Can you help me?

I already tried to enable this feature in fckeditor.js and in editor/filemanager/connectors/php/config.php but it changed nothing! What can I do next?

Many thanks

BrainBurner

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Image upload and browser with WYSIWYG editors
September 16, 2009, 11:15:22 pm
Currently, you can't add embedded images in a mailing.

What you can do is to put them somewhere on a website, and add the <img src="http://..." > with the full url of the image.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

BrainBurner

  • Guest
Re: Image upload and browser with WYSIWYG editors
September 17, 2009, 12:36:47 am
Is a new civiCRM release with this feature coming?

Link images on the web is not exactly the same thing, because the user (most of the time) has to accept to load external images..

Thanks for the reply!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Image upload and browser with WYSIWYG editors
September 17, 2009, 07:13:28 am
Hi,

Not to my knowledge, but I'm certain this patch will be welcome if you want to give it a try coding it (or if you sponsor it).

The easiest is probably to do like PHPList: the embeded images are only available on the templates, and when you save the template is looks for <img src="/XXX"> and offers to upload them.

I'm quite sure the library used to send the mails allows to attach and embed images quite easily.

X+


-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

dite

  • Guest
Re: Image upload and browser with WYSIWYG editors
October 13, 2009, 04:32:20 am
Quote from: xavier on September 17, 2009, 07:13:28 am
The easiest is probably to do like PHPList: the embeded images are only available on the templates, and when you save the template is looks for <img src="/XXX"> and offers to upload them.

not really sure to me ho to, can you explain it a bit closer, please?
thank you!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Image upload and browser with WYSIWYG editors
October 13, 2009, 08:21:05 am
Hi,

the feature doesn't exist, that was more a suggestion of what to code.

technical explanation:

on the save of the template, check if it contains a <img src="XXX"> where XXX doesn't start with http://
if this is the case, over the option to upload it to the server.

On the send, the mailing library has the feature to add this image as an attachement and put it in the html code.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

matthewdnye

  • I’m new here
  • *
  • Posts: 28
  • Karma: 1
Re: Image upload and browser with WYSIWYG editors
October 31, 2009, 07:15:08 pm
Quote from: xavier on September 16, 2009, 11:15:22 pm
Currently, you can't add embedded images in a mailing.

What you can do is to put them somewhere on a website, and add the <img src="http://..." > with the full url of the image.

X+

I am running a new CiviCRM 3 installation and I am just setting up my CiviMail and attempting to get my first e-mail out. I have created my e-mail in DreamWeaver and am using URL paths to get to the images, but they aren't appearing on my test e-mails, even though I have confirmed the images are there and I can preview the e-mail in my browser. I don't have a problem linking to the images in this manner, but how do I get them to show??? I saw another post about using absolute paths which I have tried as well, but that didn't work either. I'm stumped...

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Image upload and browser with WYSIWYG editors
November 01, 2009, 01:37:01 am
Hi,

What mail client are you using ?

Testing html email is probably the only activity in the field that compare disfavorably with dealing with FF vs. IE issues :)

Do you have a message about security blocking external images click here to see them bla bla ?

Other than that, paste the relevant part of the msg here.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

matthewdnye

  • I’m new here
  • *
  • Posts: 28
  • Karma: 1
Re: Image upload and browser with WYSIWYG editors
November 01, 2009, 02:17:16 am
Quote from: xavier on November 01, 2009, 01:37:01 am
Hi,

What mail client are you using ?

Testing html email is probably the only activity in the field that compare disfavorably with dealing with FF vs. IE issues :)

Do you have a message about security blocking external images click here to see them bla bla ?

Other than that, paste the relevant part of the msg here.

Sorry, should have been clear on that. I have tried viewing the message within Outlook and Gmail, and my Outlook permissions are set correctly, so I don't think the client is the problem... Here is the code for the footer (the part I am currently working on):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>NYE4D4 CiviMail Footer</title>
<style type="text/css">
<!--
.style1 {
   font-family: Arial, Helvetica, sans-serif;
   font-size: 9px;
}
.style2 {
   font-family: Arial, Helvetica, sans-serif;
   font-weight: bold;
   font-size: 9px;
}
-->
</style>
</head>

<body>
<table width="100%" border="0">
  <tr>
    <td height="100" colspan="2" align="center" background="http://www.mattnye.com/images/Footer.jpg" class="style1"><div align="center">Copyright 2009 <a href="http://www.mattnye.com" target="_blank">Matt Nye Campaign</a>. All Rights Reserved.<br />
    Political advertisement paid for and approved by Matt Nye, Republican for Brevard County Commission, District 4<br />
    If you no longer wish to receive these emails, please click <a href="{action.optOutUrl}">here</a>.</div></td>
  </tr>
  <tr>
    <td colspan="2"><hr /></td>
  </tr>
 
  <tr>
    <td width="50%"><span class="style1">{domain.address}</span></td>
    <td width="50%" class="style1"><div align="right">Click here to forward this email to a friend.</div></td>
  </tr>
</table>
</body>
</html>


xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Image upload and browser with WYSIWYG editors
November 01, 2009, 06:24:18 am
Ok, don't be like it's a new millennium. Styles have to be inline and background images don't work.

Remember the <table> based layout ? with the <img src> ? That's what you are forced to do. Bless microsoft having switched to MSword as the html rendering engine, and webmail clients.

For the gory details:
http://www.campaignmonitor.com/css/

Good luck.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

matthewdnye

  • I’m new here
  • *
  • Posts: 28
  • Karma: 1
Re: Image upload and browser with WYSIWYG editors
November 01, 2009, 07:22:45 am
Quote from: xavier on November 01, 2009, 06:24:18 am
Ok, don't be like it's a new millennium. Styles have to be inline and background images don't work.

Remember the <table> based layout ? with the <img src> ? That's what you are forced to do. Bless microsoft having switched to MSword as the html rendering engine, and webmail clients.

For the gory details:
http://www.campaignmonitor.com/css/

Good luck.

X+

Thanks! I should have pointed out I know just enough to be dangerous when it comes to code... I did figure out it is displaying properly in hotmail. I will go read up on this now. Thanks so much for your help!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Image upload and browser with WYSIWYG editors

This forum was archived on 2017-11-26.