Code

Discussion on TinyMCE4 Album Image Manager

Discussion on TinyMCE4 Album Image Manager

By
Cart 49 sales

leaui does not currently provide support for this item.

16 comments found.

Hi, only works with database tables?

can configure to work in folders?

thaks

Hello, first of all, thanks for these module.

Now, to make it work inside a zf2 project, with a simple usecase : one admin panel with tinymce to manage webpages and images inside with file uploads enabled, it is not so well because of configuration and code changes. I finally make it work, but it think is not so well it could.

Now I will speak about the php constant “IMAGE_SRC_PREFIX” in config.php.

Bugs 1) If I set ’/images/filemanager’ it works to display inside the plugin, but it loads inside the textarea content a completely relative url from inside the tinymce plugin folder. Nothing displayed inside the textarea.

Bugs 2) If I set ‘images/filemanager’ it does not display images at all. Not in the GUI, not in the textarea. But it includes some base64 encoded datas with messy paths.

I want to be hostname free at configuration level. Your “absolute” definition is not so well too because you are including the hostname. If many hosts are pointing to the same codebase, then it could be a source of problems. The same occurs with enabling https protocol. At least majors web navigators are displaying alerts about not web secured contents over a https connection. “Man in the middle” vulnerability at usage time with the webusers which do not care about that.

Finally the question “Are you sure to delete this image ?” is really… not necessary for experienced users. Maybe a javascript config option to remove it if we want to ?

Best regards, and good luck!

bonjour

j’utilise un nom de domaine qui pointe sur sur mon dossier web et j’ai le message suivant : SecurityError: Permission denied to access property “LEAUI_DATAS” on cross-origin object

pouvez vous m’aider

Merci

Hello, how can I change to list images under /media/photos/ instead of upload_files? I have no membership and upload concern but only wish to listing images and with multi insertion function. Thanks!

Sorry read feature. But just ask to confirm:

each user will have there own media ( i mean: They only user what they upload). can not see upload of another (i mean all website). Thanks

I want user can upload direct as demo from computer and also from links. But i want who uploaded only see what they upload, can not see another. except admin.


Which URL will these use all availa URL download defaul of wp or any modify?

This plugin will work direct on inser/image in toolbar right? So even i do css hide button “media” insearch of tinymce (out of tootlbar box) will this plugin also work right?


There is 6 collum in upload, can i have 4 collum?

Image title is ” Alt ” info in wordpress media upload defaul, right?

Congratulations! GoodLuck

can I use it with other editors? like xheditor?

No, it’s just for tinymce, CKEditor4, wordpress http://codecanyon.net/user/leaui/portfolio

Can this plugin run with PHP 5.4

Bug Found

cannot use with pdo 5.1x. date: 2-7-58

work around

change the use of pdo to other type of database connection in filedao.php and albumdao.php

Maybe it’s php environment’s problem, this plugin use pdo to connect database

Now work TinyMCE but when open album manager and upload image have this error

Error: a1_28.jpg [33.51 KB] SyntaxError: Unexpected token <

CAN HELP ME PLEASE ????

Sorry to reply to you so late. Maybe it’s your db configuration is wrong, check the db configuration in config.php file.

Nice, I buy today, I use with tinyMCE and not work… I put in my TinyMCE this…

tinymce.init({ mode : “exact”, elements : “elm1”, statusbar: false, height : ‘450px’, toolbar: ‘leaui_image | styleselect | bold underline italic | alignleft aligncenter alignright alignjustify | bullist numlist | media | forecolor backcolor’, plugins: [ ‘leaui_image advlist autolink link lists charmap preview’, ‘searchreplace wordcount code media’, ‘save textcolor ‘ ], auto_focus: “main_editor”, relative_urls: false, convert_urls: false, remove_script_host : false, entity_encoding: ‘raw’, menubar: false });

But in textarea in my form not see none, not open tinyMCE editor. I put in plugin/image all as write in documentation and setting config.php. Why in my program not see in textarea Tinymce editor?

Sorry to reply to you so late. You should debug your program in this way: 1) Please check that the editor will run well if you not set leaui_image plugin 2) elements : “elm1” ? Maybe your should set the “selector” option: tinymce.init({selector: “textarea”});

Nice plugin. Is it possible to define the “uploads folder” somewhere outside the plugin folder? Now it is in the tinymce/plugins/”upload_files”. But, i would like to have it outside..is it possible?

Yes, of course.
You can modify the config.php file: the ‘UPLOAD_PATH’ and ‘IMAGE_SRC_PREFIX’ must set in a right way.

Consider that if you want upload file to upload_files_2 which in your root directory, you should set the config.php:

define('UPLOAD_PATH', '../../../../upload_files_2'); // upload file path relative by config.php and target to upload_files_2, change it by your way.

define('IMAGE_SRC_PREFIX', 'http://localhost/leauicom/upload_files_2'); // the image's src prefix, upload_files/user_1/a.jpg. need it to show image

Hello I wonder how would the album, viewed by someone else! that will be in the right phpdolphin? response waiting to buy!

Hi, everyone has it’s own albums and images, the album can’t be viewed by others. This plugin has two tables: album and image, each table has a ‘user_id’ column. Pardon, I hasn’t use ‘phpDolphin’.

dear leaui,

i have try to change config.php in

define(‘UPLOAD_PATH’,’../../../../../../uploads/images’); // upload file path define(‘IMAGE_SRC_PREFIX’, ’../uploads/images’); // the image’s src prefix, upload_files/user_1/a.jpg. need it to show image

because i have the dir of images in the

ROOT —uploads —images

folder.

but doesnt work. how i can change the settings to do work? thank you

Yes, Update /server/page/File.php, line 39
$image_path = $uploader->save('user_'. $user_id, $uploader->random_filename());
Update to :
$image_path = $uploader->save("", $uploader->random_filename());

thank you very much, i appreciate your support. i think you have do a great work.

it’s possibile save the file with it’s real name instead a random filename?

sorry with my question but i think that this modifies gives at other persons.

You ara welcome and it’s my responsibility & my pleasure to do this.

If you don’t want to save file to path “user_” and save it in real name, just update that line to :
$image_path = $uploader->save("");

Wonderful work. Is it expendable? I want to use my membership system.

Yes, it support multiple users, each user has its own albums and images.

Yes of course.

Nice work, very useful! :)

Thanks!

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey