We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28849
    • 9 Posts
    Another question about images upload in fron-end.

    Now, there is an ajaxfilemanager in FCKeditor an it work great. In manager. But how to show browse button in front-end? I cant upload images, only paste a url.

    Maybe i should modify strings in fckconfig.js? Now i got this:

    FCKConfig.ImageUpload = true ;
    FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Image' ;
    


    Is this path right?

    My php connector actually here (\manager\media\browser\mcpuk\connectors\php\connector.php)
      • 4018
      • 1,131 Posts
      Quote from: anablepo at Jan 26, 2008, 02:32 AM

      Is there a way to insert internal links into pages the way that TinyMCE does (via dropdown with a list of pages perhaps?)

      Not yet there isn’t. Reason is that the internal links dropdown in TinyMCE is making use of a built-in function of the Links plugin. I think there was a plugin for FCKEditor that someone wrote but not much came out of it. It’s a good idea though and one that will likely be explored in the near future. In the interim, you can use the traditional means of inserting an internal link by using the document ID of a page. For instance, if the document ID of a page is 38 then you could insert the following into the URL/HREF contents of FCKEditor:

      [~38~]

      MODx will see it and will change it to the real URL of the page when it is parsed. Granted, not as slick as the internal links thing in TinyMCE but it gets the job done. smiley

      Quote from: sunchess at Feb 16, 2008, 07:27 PM

      Now, there is an ajaxfilemanager in FCKeditor an it work great. In manager. But how to show browse button in front-end? I cant upload images, only paste a url.

      Maybe i should modify strings in fckconfig.js? Now i got this:

      FCKConfig.ImageUpload = true ;
      FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Image' ;
      


      Is this path right?

      My php connector actually here (\manager\media\browser\mcpuk\connectors\php\connector.php)

      If you’re using the new Ajax File Manager beta (which, consequently, is in dire need of an update), the resource browser path is controlled by the FCKEditor plugin. Right now though the plugin is configured to only allow the use of the resource browser when a user is within the manager itself. This is for security reasons. Anyone who uses the resource browser will be able to see and do anything with the stuff in the resource browser. If you were to allow for the use of the resource browser on the front-end then you run the risk of allowing those users to delete or modify something that a manager user does. Unless you trust your users and they are all being authenticated on the front-end as web users, this isn’t a very good solution. A better solution would be to have a browse button and allow them to upload a file into a very specific directory of your choosing. A snippet instance or a custom template variable widget would be a good solution for this. But simply giving users freewill to browse and manipulate a whole directory with the resource browser has some pretty serious security implications. If you really want to do this, I can give you the modifications to the code...but I honestly can’t support it.

      I’m aware that some users really want this. As such, I’ll be exploring the concept of user-assigned directories. Problem is that a custom resource browser has to be written to support this. I’m currently exploring different avenues and hope to get the initial development started soon. Don’t have a time table set yet. Hopefully soon. smiley
        Jeff Whitfield

        "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
        • 28849
        • 9 Posts
        Quote from: Bravado at Feb 18, 2008, 07:47 AM

        If you really want to do this, I can give you the modifications to the code...but I honestly can’t support it.

        I’m completly trust my guys!=) So if there is a way to solve the problem even with secutity problems, help me with solution please

        And maybe, for now its better not to use ajaxmanager, if you need resourse browser in front-end? Usage of an older version oа FCKeditor in front-end is not a problem.
          • 4018
          • 1,131 Posts
          Are we talking about having a requirement to have a webuser authenticated? If not, that’s a bad idea. It might be possible to re-factor the code a bit to allow for just authenticated manager users and web users. Other than that, I just wouldn’t feel right about doing it so that any un-authenticated user can have free access to the file browsers. There’s a potential for code injection with a lot of these file browsers so I’d like to avoid that. smiley
            Jeff Whitfield

            "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
            • 3188
            • 75 Posts
            Hello there,

            I just tried out 2.6 beta.

            Have this error in the manager once i press edit document.

            cument.parser.class.inc.php(745) : eval()’d code on line 47 and defined in C:\wamp\www\assets\plugins\fckeditor26b\fckeditor.functions.php on line 95

            Hope it can be fixed.

            Kindest Regards.
              • 4018
              • 1,131 Posts
              Hey beryl,

              Thanks for posting this. Will look into it for a fix. smiley
                Jeff Whitfield

                "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                • 3188
                • 75 Posts
                No hurries though, i switched to TinyMCE and my client like it much better.
                  • 4018
                  • 1,131 Posts
                  Well...looked at the code. Don’t see anything that could trip it up. Gonna upgrade the plugin to the new Release Candidate. Guess we’ll see. smiley
                    Jeff Whitfield

                    "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                    • 13647
                    • 3 Posts
                    Hello everybody,

                    can anybody point out to me how to change the toolbar settings of the fck editor?

                    Thanks in advance.

                    Jaap

                      • 6726
                      • 7,075 Posts
                      Quote from: Bravado at Feb 18, 2008, 07:47 AM
                      Right now though the plugin is configured to only allow the use of the resource browser when a user is within the manager itself. This is for security reasons. Anyone who uses the resource browser will be able to see and do anything with the stuff in the resource browser. If you were to allow for the use of the resource browser on the front-end then you run the risk of allowing those users to delete or modify something that a manager user does. Unless you trust your users and they are all being authenticated on the front-end as web users, this isn’t a very good solution.

                      Sorry for digging up an old post, but I am currently in need of giving access to authenticated web users to MCPUK to update an image TV in the context of an FDM form.

                      If I am not wrong, the code which limits the access to manager users is in [tt]manager/media/browser/mcpuk/connectors/php/config.php[/tt]

                      Now how would I go about changing the manager check with a web user check ?
                        .: COO - Commerce Guys - Community Driven Innovation :.


                        MODx est l'outil id