Avatar billede pepsiman Juniormester
06. december 2008 - 11:08 Der er 10 kommentarer og
1 løsning

fckeditor og henter video eller billed fra harddisk.

Hej alle.

jeg skal henter noget billeder fra harddisk,men jeg kan ikke forbindelse med harddisk,for det kræver at jeg skriver noget med c:\........,der forbindelse mellem hjemmesider og harddisk.

Hvad skal jeg skriver?


// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '' ;

Mvh Ole
Avatar billede zips Juniormester
06. december 2008 - 12:59 #1
Det du viser her er kun hvis du vil have en fast sti til en mappe som du vil bruge til dine billeder.

Så hvis du indsætter 'C:\\MySite\\userfiles\\' vil den lave de to mapper og en som hedder image. men det er jo kun hvis du tester local.

Er det local eller på en server du arbejder?
Er $Config['Enabled'] = false ; vil du få denne fejl _The connector is disabled_
Avatar billede pepsiman Juniormester
06. december 2008 - 14:24 #2
hej

jeg bruger server..

$Config['UserFilesAbsolutePath'] = 'c:\\....' ;







ja, sådan viser en fejl
Avatar billede zips Juniormester
06. december 2008 - 14:27 #3
Set $Config['Enabled'] = true ; så burde det virke :)
Avatar billede pepsiman Juniormester
07. december 2008 - 10:29 #4
Hej igen . jeg har prøvet det,men det virker ikke.

jeg tror at det skal være local.

config.php
<?php
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
*  - GNU General Public License Version 2 or later (the "GPL")
*    http://www.gnu.org/licenses/gpl.html
*
*  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
*    http://www.gnu.org/licenses/lgpl.html
*
*  - Mozilla Public License Version 1.1 or later (the "MPL")
*    http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Configuration file for the File Manager Connector for PHP.
*/

global $Config ;

// SECURITY: You must explicitly enable this "connector". (Set it to "true").
// WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only
//        authenticated users can access this file or use some kind of session checking.
$Config['Enabled'] = true ;


// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/userfiles/' ;

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '' ;

// Due to security issues with Apache modules, it is recommended to leave the
// following setting enabled.
$Config['ForceSingleExtension'] = true ;

// Perform additional checks for image files
// if set to true, validate image size (using getimagesize)
$Config['SecureImageUploads'] = true;

// What the user can do with this connector
$Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolders', 'GetFoldersAndFiles', 'CreateFolder') ;

// Allowed Resource Types
$Config['ConfigAllowedTypes'] = array('File', 'Image', 'Flash', 'Media') ;

// For security, HTML is allowed in the first Kb of data for files having the
// following extensions only.
$Config['HtmlExtensions'] = array("html", "htm", "xml", "xsd", "txt", "js") ;

/*
    Configuration settings for each Resource Type

    - AllowedExtensions: the possible extensions that can be allowed.
        If it is empty then any file type can be uploaded.
    - DeniedExtensions: The extensions that won't be allowed.
        If it is empty then no restrictions are done here.

    For a file to be uploaded it has to fulfill both the AllowedExtensions
    and DeniedExtensions (that's it: not being denied) conditions.

    - FileTypesPath: the virtual folder relative to the document root where
        these resources will be located.
        Attention: It must start and end with a slash: '/'

    - FileTypesAbsolutePath: the physical path to the above folder. It must be
        an absolute path.
        If it's an empty string then it will be autocalculated.
        Useful if you are using a virtual directory, symbolic link or alias.
        Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
        Attention: The above 'FileTypesPath' must point to the same directory.
        Attention: It must end with a slash: '/'

    - QuickUploadPath: the virtual folder relative to the document root where
        these resources will be uploaded using the Upload tab in the resources
        dialogs.
        Attention: It must start and end with a slash: '/'

    - QuickUploadAbsolutePath: the physical path to the above folder. It must be
        an absolute path.
        If it's an empty string then it will be autocalculated.
        Useful if you are using a virtual directory, symbolic link or alias.
        Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
        Attention: The above 'QuickUploadPath' must point to the same directory.
        Attention: It must end with a slash: '/'

        NOTE: by default, QuickUploadPath and QuickUploadAbsolutePath point to
        "userfiles" directory to maintain backwards compatibility with older versions of FCKeditor.
        This is fine, but you in some cases you will be not able to browse uploaded files using file browser.
        Example: if you click on "image button", select "Upload" tab and send image
        to the server, image will appear in FCKeditor correctly, but because it is placed
        directly in /userfiles/ directory, you'll be not able to see it in built-in file browser.
        The more expected behaviour would be to send images directly to "image" subfolder.
        To achieve that, simply change
            $Config['QuickUploadPath']['Image']            = $Config['UserFilesPath'] ;
            $Config['QuickUploadAbsolutePath']['Image']    = $Config['UserFilesAbsolutePath'] ;
        into:   
            $Config['QuickUploadPath']['Image']            = $Config['FileTypesPath']['Image'] ;
            $Config['QuickUploadAbsolutePath']['Image']     = $Config['FileTypesAbsolutePath']['Image'] ;           
       
*/

$Config['AllowedExtensions']['File']    = array('7z', 'aiff', 'asf', 'avi', 'bmp', 'csv', 'doc', 'fla', 'flv', 'gif', 'gz', 'gzip', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'ods', 'odt', 'pdf', 'png', 'ppt', 'pxd', 'qt', 'ram', 'rar', 'rm', 'rmi', 'rmvb', 'rtf', 'sdc', 'sitd', 'swf', 'sxc', 'sxw', 'tar', 'tgz', 'tif', 'tiff', 'txt', 'vsd', 'wav', 'wma', 'wmv', 'xls', 'xml', 'zip') ;
$Config['DeniedExtensions']['File']        = array() ;
$Config['FileTypesPath']['File']        = $Config['UserFilesPath'] . 'file/' ;
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ;
$Config['QuickUploadPath']['File']        = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;

$Config['AllowedExtensions']['Image']    = array('bmp','gif','jpeg','jpg','png') ;
$Config['DeniedExtensions']['Image']    = array() ;
$Config['FileTypesPath']['Image']        = $Config['UserFilesPath'] . 'image/' ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
$Config['QuickUploadPath']['Image']        = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;

$Config['AllowedExtensions']['Flash']    = array('swf','flv') ;
$Config['DeniedExtensions']['Flash']    = array() ;
$Config['FileTypesPath']['Flash']        = $Config['UserFilesPath'] . 'flash/' ;
$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/' ;
$Config['QuickUploadPath']['Flash']        = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'] ;

$Config['AllowedExtensions']['Media']    = array('aiff', 'asf', 'avi', 'bmp', 'fla', 'flv', 'gif', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'png', 'qt', 'ram', 'rm', 'rmi', 'rmvb', 'swf', 'tif', 'tiff', 'wav', 'wma', 'wmv') ;
$Config['DeniedExtensions']['Media']    = array() ;
$Config['FileTypesPath']['Media']        = $Config['UserFilesPath'] . 'media/' ;
$Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'media/' ;
$Config['QuickUploadPath']['Media']        = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Media']= $Config['UserFilesAbsolutePath'] ;

?>
Avatar billede zips Juniormester
07. december 2008 - 10:50 #5
Når jeg tester local, virker det fint med at sætte den true, men jeg kan også se at jeg har jo hentet den nye FCKeditor for at teste, i forhold til din version, men det burde stadig virke.

Og har testet med denne sti $Config['UserFilesAbsolutePath'] = 'C:\\MySite\\userfiles\\' ;

Her opretter den selv alle mapper samt en som hedder image.

jeg bruger denne version 2.6.3 http://www.fckeditor.net/download
Avatar billede pepsiman Juniormester
07. december 2008 - 14:29 #6
jeg købte fckeditor hos dreamweaver, fordi det kan integer med dreamweaver.
http://www.justdreamweaver.com/wa-irite-wysiwyg.html

jeg har skrevet c:\\mysite\\usefiles,men det fungere ikke for det skal være på danske.
jeg har glemte at hvad hedder det på danske.^^
Avatar billede zips Juniormester
07. december 2008 - 14:46 #7
Jeg har gjort dette for at finde ud af hvad der sker.

1. hentet FCKedtor http://www.fckeditor.net/download
2. udpakket den i min localhost mappe
3. gået ind i sampel gennem min localhost http://localhost/fckeditor\_samples\default.html
4. prøvet at indsætte et billede, men får denne fejl _The connector is disabled_
5. rettet $Config['Enabled'] = false; til true
6. indsat en sti i $Config['UserFilesAbsolutePath'] = 'c:\\mysite\\usefiles' ;
Dette giver mig adgang til mappen images som ligger her c:\mysite\usefiles\image

Ændres dette ikke vil mappen image blive oprettet under mappen FCKedtoren

Håber du kan se noget ud af dette, og måske se hvordan du skal sætte dine parameter så det kommer til at virke.
Avatar billede pepsiman Juniormester
07. december 2008 - 15:04 #8
jeg har testet det med dit forslag. ingen virker..

jeg har beslutter at fjerne værktøj med billeder fra fckeditor og laver eget upload_image.. så ingen problem...

men kender du noget til upload_video? hvilken kode?

det vil siger at mit webcam capture mig,så gemmer det i harddisk.og henter det frem fra upload_video via gennemse.på samme måde med image. men forskel er at image og video er ikke samme code. det minder om tv2 --http://nyhederne.tv2.dk/article.php/id-18918421.html
Avatar billede pepsiman Juniormester
07. december 2008 - 15:07 #9
jeg ønsker ikke popup message på video. kun på sider.
Avatar billede zips Juniormester
07. december 2008 - 15:12 #10
Nej det kender jeg desværre ikke :(
Avatar billede pepsiman Juniormester
04. februar 2011 - 13:40 #11
Jeg griner lidt . Det er længe siden at jeg stillede et spørgsmål her.:) Jeg har allerede løst problemet med det

lukker her
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester