We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    Hi!
    Why I don’t see the "Browse" button (when I’m trying to add Image) when I’m trying to post some blog with my NewsPublisher?

    For better understanding... here are the pictures of what I’m talking about...



    I’m using TinyMCE - 2.1.1.1 and NewsPublisher - 1.4
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 4018
      • 1,131 Posts
      The reason why the file browser isn’t available is because it’s disabled for front-end use. Sucks for sure...but it’s better than having non-manager users accidentally deleting your files and images. Not only that but the file browser had to be modified so that it uses manager-only variables and thus wouldn’t work right on the front-end anyways without a manager session. Again, definitely sucks...but the good news is that we’ll be replacing the file browser with a better alternative that will allow for front-end use...at least that’s the goal. The current file browser is a bit old and really needs to be ditched. smiley

      Jeff
        Jeff Whitfield

        "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
        • 25663 MODX Staff
        • 12,272 Posts
        The file browser used to function on the front end. Could that be re-enabled, dire-warnings understood?
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 4018
          • 1,131 Posts
          Not without undoing the security fixes we added back prior to 0.9.5 coming out. Has alot to do with the config.inc.php file for the file browser script. If we skip the manager session then there’s the possibility of script injection. Guess we’ll need to look into it.

          Jeff
            Jeff Whitfield

            "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
            • 37550 ☆ A M B ☆
            • 711 Posts
            I have a solution for this, I will try and publish it thsi weekend and how you can do it and still keep it secure.

            Basically I’ve modded the websignup snippet so you can tell it to create a user asset folder i.e.

            /assets/webusers/username

            I’ve also tweaked fck to enable the browse button and point it to the webusers folder when a webuser is logged in, so now on one site ive done it on webusers can now upload flash, video, files, and images smiley

            Aaron.
              http://www.onesmarthost.co.uk
              UK MODX Hosting with love.
              • 25663 MODX Staff
              • 12,272 Posts
              Very cool Aaron ... that’d be a killer solution! laugh
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 20349 ☆ A M B ☆
                • 453 Posts
                And what could I do now?
                I need to have an option so my webusers in certain group (ex. Editors) can upload pictures on server and put them in their news...
                  BASE - Web Design Studio
                  MODX Ambassador

                  Website
                  • 9549
                  • 93 Posts
                  I need to have the file browser in the front-end for my web users and as you know that’s pretty hard with the newest modx release and tinymce. So I downgraded to TinyMCE 2.0.08 in order to get the file browser to work in the front-end. Sure, not the way to go but I want it to work! smiley However, I’m getting this error (probaly not a suprise)

                  INCLUDE_ORDERING_ERROR
                  
                  Please use the MODx Content Manager instead of accessing this file directly.


                  when clicking on a uploaded image in the file broswer.. What would be the best option now?
                    • 22303 MODX Staff
                    • 10,725 Posts
                    Downgrading TinyMCE is definitely not going to help; the issue is with the MCPuk resource browser, not TinyMCE. Customize this at your own risk for the front-end. It’s a security risk to have those files even accessible to unauthenticated users, so make sure if you customize it, you properly secure it as well...
                      • 9549
                      • 93 Posts
                      Okey, I could probaly convert my web users to manager users and use the ManagerLogin instead. The resource browser in front-end is a must.

                      So bottomline is... we must simply realize that the resource browser is dead and gone for the front-end and wait for a better solution?