Image Attachments to show IN the Forum post?

Currently when you want to add a image to a Forum topic, you can do it by:

 

1. Adding it as an attachment

2. Insert it using a URL

 

What I would like to know is.. Is there a way to have the image attachment actually show up in the post without having to click the attachment link (like in Vanilla forums)? This may not be possible unless you can somehow restrict forum attachments to be 'images only'..but curious to know.

Nothing to see here
Quote · 11 Oct 2014

Yes, with the default forum topic, you have to first save the post then go back and edit to insert the images to the post.  The reason, as you know, is that the post has to be saved first in order to have the URLs to the inserted images; the forum would need to be rewritten so that when you added the image it saves the image and creates a URL for the editor.

One way is to add a plugin that will allow a person to upload an image which is saved to the server immediately and the img tag is inserted in real time.  One such plugin though does not have a file manager, so members can not reuse the image, if they want to add the same image in the future, it will save a duplicate image, it will save a duplicate image each time the user/member loads the same image.  Therefore, I think the best solution is to have a file manager plugin for TinyMCE that is for each user.  If Dolphin 7.x (and Dolphin U; hate that name) goes to TinyMCE 4, it will require a compatible file manager; I have integrated an open source file manager into TinyMCE 4 but will need to check licensing to see if I could release it.  If you are not going to use TinyMCE 4, then there is a flash base integration already listed here in the forums for Dolphin 7.1.x.  If you have users that are going to be on mobile devices without flash, then you need another solution.

Geeks, making the world a better place
Quote · 11 Oct 2014

So I guess the short answer is no. I do have users who use mobile devices. so the existing TinMCE does not work for them.

 

Definitely need a different solution.

Nothing to see here
Quote · 11 Oct 2014

 

So I guess the short answer is no. I do have users who use mobile devices. so the existing TinMCE does not work for them.

 

Definitely need a different solution.

I could see about getting the non-flash file manager integrated in the current TinyMCE as well.  I have been thinking of doing that so my mobile users will have a solution for inserting images into posts and comments directly.

I have tested a lot of open source file managers with Dolphin and found that many have issues.  It seems that some aspect of the javascripts/jquery files of Dolphin is interfering with the jquery based file managers; I did not bother trying to track down the conflicts.

By the way, the PKForum module in the market has a built-in file upload/insertion plugin, it is the one I mentioned above.  It is quick and easy and most likely members won't be inserting the same images over and over.  PKForum offers so much more as a forum than the Orca forum so if you have the funds for the module, I would use it over the Orca forum.  The plugin that PKForum uses is open source and can be added to Orca forum in the TinyMCE init.  To see it in action, you may be able to demo PKForum and see how it works.  However, as I said, if you want a much better forum for a site, then PKForum is the cat's pajamas.

Geeks, making the world a better place
Quote · 11 Oct 2014

I sent a message to Prashank with some questions, so we shall see. Looks like PKForums will work though.

Nothing to see here
Quote · 11 Oct 2014

I have not enough js-knowledge but I think the solution is simple: Just need to replace the A tag to IMG tag.

I've tried it in browser html editor and worked as expected.

 

Can anybody make from this idea a js script?

Or maybe it should apply directly in the forum-engine's php source?

Quote · 25 Jun 2016

Any update on an up-to-date TinyMCE implementation?

It's quite troublesome to only have url images attachable to a forum post.

Also attaching something to a forum reply gives an error which I can't resolve as there is nothing in the logs or any other sign of what is wrong.

Checked the rights for modules/forum/data/attachments I have folders with files in there and the rights are 777 which should definitely work. Any suggestions?


Activating the files module doesn't seem like a very easy to use solution either.

Any help is very much appreciated. Cheers!

Quote · 29 Apr 2017

Try to check if there are other subfolders modules/boonex/forum/data/attachments, it maybe it can't store file in some subfolder there.

Checked the rights for modules/forum/data/attachments I have folders with files in there and the rights are 777 which should definitely work. Any suggestions?

 

Rules → http://www.boonex.com/terms
Quote · 1 May 2017

Hi AlexT
Thanks for your suggestion. I have a folder structure like this in the attachments folder:

modules/boonex/forum/data/attachments/

├── [drwxr-xr-x]  2

│   └── [drwxr-xr-x]  2U

│       └── [drwxr-xr-x]  2Ud

│           └── [-rw-r--r--]  2Udh6jficW

├── [drwxr-xr-x]  7

│   └── [drwxr-xr-x]  7M

│       └── [drwxr-xr-x]  7Ms

│           └── [-rw-r--r--]  7MsvuxAxff

 

I see the permissions are wrong, however the permissions of the superior folder is 777. Any suggestion how I can make the system set the permissions for the subfolders correctly after attaching an image to a forum post?

Also, can I delete this information or can it be re-associated with the posts where the attachment originally came from?

Thanks and cheers!

 

Quote · 1 May 2017

Try to run the following commands in modules/boonex/forum/data/attachments/ folder, it will fix permissions for forum attachments:

cd /path/to/modules/boonex/forum/data/attachments/
find . -type d -exec chmod 777 {} \; find . -type f -exec chmod 666 {} \;

 

Rules → http://www.boonex.com/terms
Quote · 6 May 2017

Thanks AlexT for the tip. Sadly still getting the same error message.

I'm not sure how to troubleshoot this issue, as I can't really find anything in any logs... or I might not be looking in the right place?

Quote · 12 May 2017

@jp-bpl 

Also attaching something to a forum reply gives an error which I can't resolve as there is nothing in the logs or any other sign of what is wrong.

 What is the exact error ? screenshot please

Rules → http://www.boonex.com/terms
Quote · 14 May 2017

@AlexT

To clarify a bit: it doesn't matter if I am creating a new post or editing an existing post, I get the same error.

The attached pictures below is exactly how I was trying to add an image "maggie8.jpg"

Thanks for your help!

Quote · 15 May 2017

If permissions in /modules/boonex/forum/data/attachments/ folders/files are correct then it maybe file is too big for upload or no space left on the server, I have no other thought for now.

Rules → http://www.boonex.com/terms
Quote · 17 May 2017

Hi Alex

 

I found some errors in the log file: modules/boonex/forum/log/orca.error.log

Cannot complete query (query): Field 'att_downloads' doesn't have a default value

 

Might this be related to the issue?

Quote · 23 Sep 2017

Yes, this maybe the cause of this problem!

Please try to apply modification as described in this ticket:

https://github.com/boonex/dolphin.pro/issues/597

Thank you for the report.

Rules → http://www.boonex.com/terms
Quote · 23 Sep 2017

Hi AlexT

Thanks, that fix works great!

The only error I also get in the same file is "Cannot complete query (query): Unknown column 'user' in 'where clause'".

I'm not sure when this happens though.

Quote · 24 Sep 2017

Could you please provide full error with original query and call stack? so we can try to identify the problem.

Rules → http://www.boonex.com/terms
Quote · 9 Oct 2017
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.