nukeSEO.com - PHPNuke SEO Search engine optimization, professional tools including nukeSEO, nukeSPAM, nukeFEED, nukePIE, nukeWYSIWYG and more

 

. Welcome to nukeSEO.com  ! 
.
.
.
Support nukeSEO
Make donations with PayPal!
May´s Goal: $100.00
Due Date:   May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Donations


Tag This



.
nukeSEO.com: Forums


 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Alow user to upload image
 
 
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeWYSIWYG (tm)
View previous topic :: View next topic  
Author Message
guilherne
Newbie
Newbie


Joined: Nov 12, 2012
Posts: 1

PostPosted: Wed Nov 14, 2012 10:19 am    Post subject: Alow user to upload image Reply with quote

Hi.
CKEditor is working fine in my Raven Nuke 2.5 site
I need to allow my users to upload images in the Submit_News modules. I know admin can upload images but users can not. Do you know how to permit users to upload images in story text field?
I have already tried to do that in mainfile.php in function wysiwyg_textarea:

Original:
if (is_admin($admin)) {
$editor->setBrowser('includes/elfinder/elfinder.php');
$editor->setUploader('includes/elfinder/php/modules/' . $wysiwyg . '.php');
}

Change
I have tried with No success the changes below:

if (is_admin($admin) or is_user($user)) {
$editor->setBrowser('includes/elfinder/elfinder.php');
$editor->setUploader('includes/elfinder/php/modules/' . $wysiwyg . '.php');
}
I also have put $user in the global line of function wysiwyg_textarea

Thanks for your attention.
  
Back to top
View user's profile Send private message
Guardian
webmaster


Joined: Dec 25, 2005
Posts: 371
Location: Angra do Heroismo

PostPosted: Tue Nov 20, 2012 7:21 pm    Post subject: Reply with quote

I don't think you can limit the upload to just images, a user might upload a script or executable file, which is why it is restricted to admins.
A user might also upload an image to which he/she does not own the copyright, which could cause problems - just some things to think about!

I think you may also need to change the code where the toolbar is used. In the Submit New module, where the form uses the wysiwyg_editor function, you may also need to change the toolbar from 'NukeUser' to 'NukeAdmin' - I don't have the code in front of me to give you the exact name.
Please keep in mind that you would be circumventing some security precautions and are putting your site at at risk.
  
Back to top
View user's profile Send private message Visit poster's website
rovshan
Newbie
Newbie


Joined: Mar 14, 2006
Posts: 4

PostPosted: Wed Nov 18, 2015 3:33 pm    Post subject: Upload images in Submit News module Reply with quote

I am trying to add Upload images tab in PHPNukeUser config in nukeWYSIWYG 3.6.1
I suggest that there are the posibility to offer registered users when they publish article in Submit News module to upload images. Offcause with restriction of file extention like : .png / .jpeg and etc.

I tried to find the way via config.js in ckeditor folder but could not find the right way.
I found the way to remove the tab from all toolbars :
config.removeDialogTabs = 'image:advanced;'; but not to add Smile

As well as the problem is become more complicate for me because image upolad integrated via ELfinder, which has also own configuration.
I kindly ask you to give me any idea from where I need to start implement this functionality. Thanks.
  
Back to top
View user's profile Send private message
rovshan
PostPosted: Wed Nov 18, 2015 4:05 pm    Post subject: Reply with quote

I created topic in RavenScript forum Only registered users can see links on this board! Get registered or login!
  
Back to top
rovshan
PostPosted: Wed Nov 18, 2015 6:46 pm    Post subject: 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;
  
Back to top
Display posts from previous:       
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeWYSIWYG (tm) All times are GMT - 5 Hours
 
 Page 1 of 1

 

Jump to:   
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 cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group


Page Generation: 0.05 Seconds