Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> FCKeditor/WYSIWYG Issues
Author Message
rovshan
Hangin' Around


Joined: Nov 26, 2005
Posts: 29

PostPosted: Wed Nov 18, 2015 3:03 pm Reply with quote

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.
 
View user's profile Send private message
rovshan
PostPosted: Wed Nov 18, 2015 3:19 pm Reply with quote

I found this topic, but did not find solution:
Only registered users can see links on this board! Get registered or login!
 
rovshan
PostPosted: Wed Nov 18, 2015 5:47 pm Reply with quote

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
The Mouse Is Extension Of Arm


Joined: Aug 22, 2007
Posts: 1296
Location: Germany

PostPosted: Thu Nov 19, 2015 9:18 am Reply with quote

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:
Only registered users can see links on this board! Get registered or login!

Never tried to start an update of CK but i will give it a try.
 
View user's profile Send private message
rovshan
PostPosted: Thu Nov 19, 2015 10:03 am Reply with quote

Thank you for support neralex Cheers
I will try to integrate your solution in ckeditor 4 and let you know.
 
rovshan
PostPosted: Fri Nov 20, 2015 4:02 am Reply with quote

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
PostPosted: Fri Nov 20, 2015 4:33 am Reply with quote

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
PostPosted: Fri Nov 20, 2015 10:13 am Reply with quote

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!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> FCKeditor/WYSIWYG Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©