By Mike Waxman on Tuesday, 25 June 2019
Posted in General Issues
Replies 21
Likes 0
Views 840
Votes 0
Hi,

We are using EasyDiscuss 4.1.5 for a private forum on a clients website (https://lineup.com/success/). The forum is generally working well, but the client is complaining because emails sent from the forum (email notifications of new posts) do not display the images that they include in their posts.

We can see that the problem is that the forum is private / password protected. If we copy / paste the image links from the emails into a browser the links work if we are logged into the website, but they do not work if you are not logged in. Unfortunately, we cannot find any simple solution to get these images to be displayed in the emails without making the entire forum public. We obviously cannot do this, so can you help?

Many thanks,

Mike
Hey there,

It looks like your EasyDiscuss subscription has expired and in order for you to continue requesting for support, you will need an active subscription. If you have already renewed, please let us know so that we can correct this for your account.

Thank you for understanding.
·
Wednesday, 26 June 2019 12:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Irwin,

We have renewed our subscription now. I look forward to hearing from you.

Thanks,

Mike
·
Wednesday, 26 June 2019 23:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

May I know how did they include the image into their post? Is it from here as shown in the screenshot https://take.ms/WXz0E or via attachment?

If I understand correctly, the images that they include in their posts do not display on the email notifications of new posts if the post is private / password protected.

If yes, It seems that I can't replicate it on my local site and can you include your site's access and FTP's access once at http://stackideas.com/dashboard/site so that we can have a better check of it?

If no, can you explain more about it so that we can have a better understanding of it?
·
Thursday, 27 June 2019 10:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Irwin,

No, users are apparently not using the 'Picture' widget you have highlighted since they cannot upload images this way. They are using the 'Upload Files' button in the 'Attachments' section / tab to upload images, and they are then clicking on the 'insert' link to insert the images into the post / message body.

Here's an image link from an example email created after posting a question.

https://www.lineup.com/success/forum?controller=attachment&task=download&tmpl=component&id=175

If you are logged in this image is displayed, but if not it won't.

If there is now way of getting these image 'attachments' to display in email messages is there an alternative method? I guess the 'Picture' widget you highlighted would work, but the users can't upload images with this option, so it's not a useful solution?

Thanks,

Mike
·
Thursday, 27 June 2019 19:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I just tried again on my local site with private / password protection and I still can't replicate it. https://take.ms/4O8GR

Can you include your site's access and FTP's access once at http://stackideas.com/dashboard/site so that we can have a better check of it and find out the cause on your site?
·
Friday, 28 June 2019 11:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Irwin,

Sorry I can't easily provide FTP access as the site is on our clients server and we have to use a key to get access. I can request access for you, but this will be difficult and time consuming. Is there anything else we can do or provide that will help?

Thanks,

Mike
·
Friday, 05 July 2019 15:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

It would be great that we have your site's access and FTP's access so that we can better check of it and solve it quickly if not it will be very difficult for us to figure it out what goes wrong.

Can we have the permission to do a testing post for testing purpose when we can have a better check for you?

You can add your site's access and FTP's access once at http://stackideas.com/dashboard/site .
·
Friday, 05 July 2019 17:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Irwin,

Sorry for the delay. We have now created and up-to-date staging site for testing here:

https://lineup.alch.me/success/

You will find access details for this site on our stackideas dashboard. We have deleted all users apart from a few test accounts, so you can register on the site and then create some subscriptions and posts to test the emails. We don't have a cronjob setup on this server so we're running the email script using the following URL:

https://lineup.alch.me/success/index.php?option=com_easydiscuss&task=cron

Just in case it saves time, this EasyDiscuss forum has been setup on a Joomla installation which is in the sub-folder -'/success'. The Joomla installation in the root folder is an entirely different website.

I have also uploaded an example email and forum post form from the site to show how the images are not displayed. As described before, these images were uploaded using the 'Attachments' tools.

Let me know if you need anything else.

Thanks,

Mike
·
Thursday, 11 July 2019 21:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mike,

After I checked further on this, the reason why it doesn't show the image in email is because this forum menu item you set to only registered user can able to access this, mean if the guest user access this link https://lineup.alch.me/success/forum , system will required user to login first.

In other word, the email there unable to show the image when they trying to access one of this attachment URL on the site

e.g. https://www.lineup.com/success/forum?controller=attachment&task=download&tmpl=component&id=175

There is no alternative solution for this, unless you set your forum menu access from registered to public access or :

1. Edit the email template PHP file do not render any image and attachment file.

2. Switch to wysiwyg editor (e.g. Tiny-MCE editor) and turn off that attachment feature.
- so user can use this editor insert the image into post content http://take.ms/wQOoQ
·
Friday, 12 July 2019 12:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

We had figured out that the problem was due to the forum being private, but thanks for confirming this and thanks for the suggestion to use an alternative wysiwyg editor. Unfortunately we are still having problems though.

We have now switched to use JCE Pro, and having configured a few setting the editor displays ok within the forum, but for some reason forum posts will not save properly. Whenever the JCE Editor is used to add content we get the following error message when we save the posts:

"The post content cannot be empty. Please enter some contents for your post"

If we switch the editor off (on the front end) the post will save, but not with any content (including images) that is added via the editor. Can you help?

Here's a few setting we changed in case it helps or saves time:

EasyDiscuss \ Settings \ Composer - Default Editor : Editor JCE
Components \ JCE Editor Pro \ Editor Profiles \ Setup \ Front End \ User Groups - Registered
Components \ JCE Editor Pro \ Editor Profiles \ Features & Layout \ File Browser (option checked)
Global Configuration \ Text Filters \ Registered - No Filtering

We would prefer to use the JCE Editor, but will use an alternative editor if necessary, We did actually try using TineMCE too, but have problems with that as there is no file / image upload option within the editor on the front end. Please feel free to change to TinyMCE if you think that is a better solution and you have a fix for the image upload problem.

Thanks,

Mike
·
Monday, 15 July 2019 22:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mike,

This is what I tested so far :

1. It seems like only happen on your current 2 templates e.g. Customerportal and Easydiscuss_new , it look like both template also using the same structure if I am not wrong.

2. As long as I switch to other template, it work just fine.

3. If I toggle that editor (open HTML content) and click reply, it seems work, you can check my screenshot here : https://monosnap.com/file/Eb440bhPdvtcdbcAkiYGTpb3pJlyed .

So I suspect something conflict with your template and I still haven't figure out which part conflict with this yet.

Can you send us this 2 template installer (Customerportal and Easydiscuss_new) and JCE PRO installer so we can check further again in my locally?
·
Tuesday, 16 July 2019 10:50
·
0 Likes
·
0 Votes
·
0 Comments
·

After I checked further on this, the reason why it doesn't show the image in email is because this forum menu item you set to only registered user can able to access this, mean if the guest user access this link https://lineup.alch.me/success/forum , system will required user to login first.


Can ED create API for this?
I believe this have same issue with Facebook share and Open Graph.
·
Tuesday, 16 July 2019 15:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

You should find the template and JCE Pro installer attached, Let me know if you have any problems or if you need anything else.

Thanks,

Mike
·
Tuesday, 16 July 2019 17:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Can ED create API for this?
I believe this have same issue with Facebook share and Open Graph.

Currently our Easydiscuss REST API isn't extensive yet as right now, but if you would like to retrieve the discussion data, you still can able to retrieve it.

By the way, I think this original issue can't solve it by using API because the Easydiscuss current behavior is the attachment link is not generate as direct file path, it actually routed it as to use forum menu item alias, this is why a little bit tricky to solve this.
·
Tuesday, 16 July 2019 17:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Let me know if you have any problems with the template files or if you need anything else.

Thanks,

Mike
·
Thursday, 18 July 2019 16:56
·
0 Likes
·
0 Votes
·
0 Comments
·
I am really sorry for the delayed of this reply because I doesn't noticed you have replied me last time when I replying to another user last time.

I will continue to check on this and keep you update.
·
Thursday, 18 July 2019 19:17
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Mike,

It seems like I getting this error when I set your provided that template to default site template :


Error: Class 'Helix' not found: Call to a member function Header() on null


May i know do you have that template installer which include those helix framework plugin?
·
Friday, 19 July 2019 11:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Sorry for the delay... You should now find the Helix template attached.

Let me know if you need anything else.

Thanks,

Mike
·
Monday, 22 July 2019 17:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, after check further, it seems like this following Javascript from your template conflict it.

<script async type="text/javascript" src="//cdns.canddi.com/p/9358cd4b06ead62016fe4387e6df3061.js"></script>


I am not sure what this Javascript file trying to do, as long as I remove this line of code under this file JoomlaFolder/templates/easydiscuss_new/index.php then it seems work fine now.

Can you give it a check again?
·
Tuesday, 23 July 2019 00:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

I'm sorry it's taken a long while to get back to you. That Javascript could not be removed as it's some external tracking that the client is using. It has taken some time, but that problem has been fixed and we can now make rich HTML posts using JCE Pro. However we now have another problem - all the html formatting is now being stripped from the forum post emails!

If you can remember... the actual problem we are trying to resolve is that we can't get EasyDiscuss emails (forum posts) to include images. The issue with using the default editor is it can only include images added as attachments, and these do not get displayed in the emails as our forum is secure / password protected. On your suggested we have changed the WYSIWYG editor to use one that has a tool allow front end forum users upload and to insert images. This seems to work OK on the website and the forum posts look fine, but the emails that are now sent (the forum posts) seem to have all of the HTML formatting (including image tags) removed.

Can you help please!

Thanks,

Mike
·
Tuesday, 13 August 2019 20:33
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem Mike,

I've checked the code again, it seems like the current behavior is strip all the HTML content from the email.

Can you try download my attached file and replace into this file location on your site and see how it goes?

JoomlaFolder/administrator/components/com_easydiscuss/includes/post/post.php

But do take note, if you didn't plan to update your site Easydiscuss to latest version then you have to manually modify this few line of code for avoid to strip the HTML content, you can check my attached screenshot below.
·
Wednesday, 14 August 2019 13:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post