Author |
Message |
rovshan
Hangin' Around

Joined: Nov 26, 2005
Posts: 40
|
Posted:
Wed Nov 18, 2015 3:03 pm |
|
Hello ,
I started this topic because did not find usefull information and think this issue is interesting for community.
I would like to modify Submit News module on my blog => offer to registered users (friends) create articles by uploading images via ckeditor.
I use actually RN 2.5 with update fckeditor till nukeWYSIWYG(tm) 3.6.3.1 for RN 2.5 which include ELFINDER for upload and browse images/files/media to the server.
1. First question is, if someone is already updated the ckeditor for last version 4 !? Please let us to know.
2. If someone already implement the integration of Upload Image button in PHPNukeUser toolbar for version mentioned above please share your experience.
Thanks. |
|
|
|
 |
rovshan

|
Posted:
Wed Nov 18, 2015 3:19 pm |
|
I found this topic, but did not find solution:
Only registered users can see links on this board! Get registered or login! |
|
|
|
 |
rovshan

|
Posted:
Wed Nov 18, 2015 5:47 pm |
|
I just uploaded Ckeditor 4.5.5 it seems work.
To install:
1. rename your old folder includes/ckeditor to old_ckeditor
2. upload files to empty folder includes/ckeditor
3. copy files
ckeditor.php
class.ckeditor.php
from includes/old_ckeditor inside includes/ckeditor
4. add in config.js
after line
CKEDITOR.editorConfig = function( config ) {
thess lines
config.toolbar = 'PHPNuke';
config.toolbar_PHPNuke = config.toolbar_Basic;
config.toolbar = 'PHPNukeAdmin';
config.toolbar_PHPNukeAdmin = config.toolbar_Full; |
|
|
|
 |
neralex
Site Admin

Joined: Aug 22, 2007
Posts: 1775
|
Posted:
Thu Nov 19, 2015 9:18 am |
|
An registered user can also upload images with nukeWYSIWYG(tm) 3.6.3.1 when the emelent was added to the used toolbar.
Check this link:
http://www.media.soefm.de/ftopicp-15.html
Never tried to start an update of CK but i will give it a try. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
rovshan

|
Posted:
Thu Nov 19, 2015 10:03 am |
|
Thank you for support neralex
I will try to integrate your solution in ckeditor 4 and let you know. |
|
|
|
 |
rovshan

|
Posted:
Fri Nov 20, 2015 4:02 am |
|
I checked neralex solution, but as i understand this solution helps to create new toolbar.
The image/file/ uploads are managed via Elfinder via this function in mainfile.php
if (is_admin($admin)) {
$editor->setBrowser('includes/elfinder/elfinder.php');
$editor->setUploader('includes/elfinder/php/modules/' . $wysiwyg . '.php');
}
So it is NOT accesible to users.
I just checked, there is new version (nightly build) of Elfinder Only registered users can see links on this board! Get registered or login!. So I suggest that we need to integrate new version and put functions in elfinder to manage registered users to upload files/images.
I suggest this scenario: when registered user wants to upload file/image then script create directory for him and allow user to view and upload only in this directory. Another user will have another directory etc.
What is good in this case, that RN may propose to create separate Image Gallery for users by using assigned directory even in fly.
As well as, user can use the same uploaded before images in other modules.
How we can dynamically assign users to directories with all permissions? Any idea? What is the best solution for that?
Thank you for support. |
|
|
|
 |
rovshan

|
Posted:
Fri Nov 20, 2015 4:33 am |
|
just for info :
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
|
 |
neralex

|
Posted:
Fri Nov 20, 2015 10:13 am |
|
Mate, what i pointed in the post of my link is a way to create a new toolbar and this example shows how you can add/delete/move the editor elements in nukeWYSIWYG(tm) 3.6.3.1. You question was how to add the image item and the answer of this question shows my post - not more!
What you are trying to suggest is a not stable version of elfinder and I would personally never use a nightly build to secure my own websites and I wouldn't give a registered user the chance to upload a file via the editor. Call me paranoid but it makes in my eyes no sense because for that you need a moderation of each user submission.
Your links have nothing to do to let it work for users...
Why don't you change the nuke-based if-statement instead to write that isn't accesible? But I think Palbin, he wrote the funktions for nukeWYSIWYG(tm) 3.6.3.1, has set this rule not for fun. It could be there are some functions that shouldn't be used by other users like an admin.
Only if it will work somehow on your end with a new CK version then please beware to suggest it other users, when you can't make sure that is really secure! I would suggest you to contact Palbin to ask him why he limit the access to elfinder only for admins before open an security hole without to know what are you doing.
rovshan wrote: | I suggest this scenario: when registered user wants to upload file/image then script create directory for him and allow user to view and upload only in this directory. Another user will have another directory etc.
What is good in this case, that RN may propose to create separate Image Gallery for users by using assigned directory even in fly.
As well as, user can use the same uploaded before images in other modules. |
I suggest you to re-think it again because it makes no sense and i want tell you why.
The editor uploads are working file-based and isn't database driven. Each gallery is storing all related stuff of the files in a database and if a user would delete a image with the editor it wouldn't delete an database entry of another module there the image is used. That would create empty entries and it isn't outside of the logic for each user. The editor is only a help to add content in a formular without to know how HTML works to make sure that each input will show in a correct validation without to create unwanted errors on your website.
Good luck! |
|
|
|
 |
|