Discussion on TinyMCE4 Album Image Manager

leaui

leaui supports this item

Supported

11 comments found.

Nice work, very useful! :)

Thanks!

Yes of course.

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.

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("");

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’.

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

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”});

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.

pwin

pwin Purchased

Can this plugin run with PHP 5.4

pwin

pwin Purchased

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

can I use it with other editors? like xheditor?

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

Congratulations! GoodLuck

by
by
by
by
by
by