PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
emmaphp
Worker
Worker


Joined: Aug 22, 2006
Posts: 175

PostPosted: Sun Feb 24, 2008 8:24 am Reply with quote Back to top

Hi All,

I recently installed the latest version of Raven Nuke (Version 2.20.00).

I have some questions about how to make some modifications to the included/integrated FCK editor and have been browsing the raven forums for some answers.

I cannot find any specific ultimate answers to the questions, so wonder if you could address them now, or point to me to any links that may have the information I require, (if they have already been addressed/resolved).

1. By default, the FCK editor allows any admin users to upload images. I would like to know how to change the folder that images are uploaded to?

2. On the FCK editor menu, I do not see an option to upload anything other than images. However the upload directory, (located at includes/FCKeditor/upload), where the uploaded images directory is located, contains 4 further directories, (File, Flash, Image, Media), suggesting that there is more than one way/button on the FCK editor menu to upload images. Is this correct? If so, where are the other upload facilities...i.e for Flash, Image, Media?

3. I realise that for security issues, by default the FCK editor does not allow users to upload images. How can I change this so that my website does allow users to upload images, (when they submit a news item)? Also, can I restrict this if desired, to only allow registered users to upload images (when they submit a news item)?


Thanks in advance.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4642

PostPosted: Sun Feb 24, 2008 10:12 am Reply with quote Back to top

If you look in
includes/FCKeditor/fckconfig.php you can see how the different toolbars are assigned.
You would need to trace the toolbar itself to add specific funtionality and set the relevant paths so that files were uploaded to the correct directories etc.
Sorry I couldn't help more.
You caould also take a t look at the FCKeditors development site for more specific information if you needed.
View user's profile Send private message Send e-mail Visit poster's website
emmaphp
Worker
Worker


Joined: Aug 22, 2006
Posts: 175

PostPosted: Sun Feb 24, 2008 10:18 am Reply with quote Back to top

Hi Guardian,

Thanks for your reply to my original posting and it is appreciated. Smile

However I do not see a file called fckconfig.php where you suggested, (but there is fckconfig.js).

I would still appreciate it further if someone could address the 3 individual/specific points I highlighted. Cool

Thanks in advance everyone. Cheers
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4678

PostPosted: Sun Feb 24, 2008 10:40 am Reply with quote Back to top

1.
Only registered users can see links on this board!
Get registered or login to the forums!
or
Only registered users can see links on this board!
Get registered or login to the forums!


2. You can add a flash icon to your admin toolset that lets you include flash and upload it. But you'll need to allow the appropriate HTML tags (e.g. object) in the $allowable_html array in config.php. I believe the Save function allows you to save HTML files generated via the editor - not sure it's intended to work like an FTP transfer through FCKeditor. Also not sure how the media directory is used. I could not find any evidence that either /media or /file is used by searching the code.

3.
Only registered users can see links on this board!
Get registered or login to the forums!
explains how to allow upload and what changes are required to allow specific NSN groups to upload.
View user's profile Send private message
emmaphp
Worker
Worker


Joined: Aug 22, 2006
Posts: 175

PostPosted: Sun Feb 24, 2008 1:15 pm Reply with quote Back to top

Hi KGuske,

Thank you for your concise reply to my original posting. Smile

I have begun checking the information you have provided and am currently trying to edit the includes/FCKeditor/fckconfig.js file.

I see clearly the following 2 facts:


1. Modifying the code/values for the code FCKConfig.ToolbarSets["NukeUser"] adds or removes functionality from ALL website users FCKEditor toolbars.

2. Modifying the code/values for the code FCKConfig.ToolbarSets["PHPNukeAdmin"] adds or removes functionality from the Administrators FCKEditor toolbars.


What I cannot work out and would appreciate information for, is what the following code is relative to and what will be changed if it modified:


1. FCKConfig.ToolbarSets["Artikel"]

2. FCKConfig.ToolbarSets["Default"]


Thanks in advance.
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4678

PostPosted: Sun Feb 24, 2008 1:36 pm Reply with quote Back to top

Those are additional toolsets. If I remember correctly, Artikel was defined by an earlier version of FCKeditor for PHP-Nuke, and I left it there in case some still used that toolset. Default was also defined, though I'm not sure if it's used. You can make changes to these toolsets or define new tool sets, but they won't get used unless changes are made to the applications (modules, admin functions, etc.) to specify the new or changed toolset.
View user's profile Send private message
emmaphp
Worker
Worker


Joined: Aug 22, 2006
Posts: 175

PostPosted: Sun Feb 24, 2008 4:56 pm Reply with quote Back to top

Hi KGuske,

Again thank you for that last reply.

Currently, I am struggling to identify which part of the code, (in the fckconfig.js file), should be modified/changed, in order to change the directory any uploaded files are placed in. Crying or Very sad

I see that in a previous post you explained:

kguske wrote:
You can change the directories where you want to upload stuff in the fckconfig.js, but I can't think of any really good reasons for doing that.


The reason I am interested in this information is two fold:

1. I want uploaded images to be placed in a directory with a more specific/appropriate name, (such as user_submitted_news_images). This would prove easier to locate on the server, particularly if someone less experienced as you or I has to find this at a later time etc.

2. I may even simply rename the current directory the uploaded files are placed in, (without moving it to another part of my directory structure), but again I require the information in order to change the relevant code in the fckconfig.js file. Wink


I look forward to receiving your further reply. Smile
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4678

PostPosted: Mon Feb 25, 2008 9:00 pm Reply with quote Back to top

emmaphp wrote:
Currently, I am struggling to identify which part of the code, (in the fckconfig.js file), should be modified/changed, in order to change the directory any uploaded files are placed in. Crying or Very sad

My mistake. The path can be configured in:
includes/FCKeditor/editor/filemanager/upload/php/config.php

You can specify whether or not to UseFileType in the target path (or upload everything in the same directory).

You can also specify the UserFilesPath to change it to something other than /includes/FCKeditor/upload/.

Please understand that we haven't tested this, so we cannot support it if it doesn't work correctly.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum