• dlvonde

    (@dlvonde)


    Hello All,

    I installed the WP Easy Uploader plugin and began poking around in the wp-easy-uploader.php to try and change a couple things about the interface.

    I found where it creates the radio buttons for the destination path section here

    Then I found the addRadio() function the above code is calling here.

    As you can see in the first link..at first I tried to just change the text under the “manual path” radio button section, but I couldn’t make the line breaks work. Then I decided if I just knew the syntax/variables I should be able to:
    1) Have the manual path radio button be the default selected
    2) Have the string in the upload text box be evaluated and auto populate the manual path text box based on the file type

    So when php creates the page it sets the manual path to selected or “checked” I believe is the proper attribute name.

    Then when the upload file is selected and the path is placed in the upload file texbox, that text is evaluated and something like
    if right 3 characters of string is ppt, stick /wp-content/pptFiles in manual path textbox.

    Does that sound too ridiculous? I know in other languages it’s not, but this PHP is greek to me. I’m having a hard time getting my head around it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dlvonde

    (@dlvonde)

    well I ended up just gutting out the other radio buttons so manual path was the only one there, therefore the selected one :).

    Then I added some inline instructions like “Step 1: do this, Step 2:..etc.”

    Finally right below the manual uploads textbox I added the paths to copy/paste based on what type of file you are uploading

    not the most elegant solution, but it works and keeps me from having to give out my ftp account info.

    Thread Starter dlvonde

    (@dlvonde)

    if anyone’s reading this..I did figure out how to give BOTH admins AND editors access to the easy upload plugin.

    in the wp-easy-uploader.php file, do a find replace:
    find: manage_options
    replace: edit_others_posts

    you could use other keywords to give even more people access to the uploader, it’s up to you.

    theres 3 places it will replace and now the option will pop up/become functional when you log on as an editor.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Attempting Easy Uploader Hack’ is closed to new replies.