• Resolved Futuresweb

    (@webmasterfutureswebcom)


    First off, I want to say what a great plugin. Nice work!

    I would like to add two different fileup directories to the same webpage.

    This is the code I’m using:

    [fileup base=”2″ showto=”administrator” filegroups=””]
    [fileup base=”1″ showto=”administrator” filegroups=””]

    It doesn’t matter what order the code is on the page:

    [fileup base=”1″ showto=”administrator” filegroups=””]

    [fileup base=”2″ showto=”administrator” filegroups=””]

    The displaying twice occurs after I choose a destination directory from the dropdown menu on the webpage (logged in as an administrator) that I want to upload a file to. Each destination directory displays both of my directories respectively (when highlighted) but when I choose one, it auto chooses the other as the same….

    I noticed that in the configuration options for upload file, that when I choose my base directory one of them is highlighted in a red color??? Could that be a problem?

    Thank you!

    https://ww.wp.xz.cn/plugins/file-away/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author thomstark

    (@thomstark)

    Hi, Jeff.

    Thanks for the feedback.

    Firstly, the fileup shortcode isn’t really designed for use on the same page more than once. (You can have more than one instance of it as long as the same user doesn’t have access to both of them.)

    But if you’re only giving these to administrators, you only need one! 🙂
    Just point it to the parent-most directory. Not sure if you’re aware but when you click on the destination directory, it reloads with that selection’s subdirectories, and you just keep choosing from the dropdown until you get to the destination you want. In other words, if you’re an admin, you can upload to anywhere with one [fileup] shortcode if you point it to the outermost directory that you’d need.

    Plugin Author thomstark

    (@thomstark)

    Also, you can do,

    [fileup showto=administrator base=1][fileup hidefrom=administrator showto=author base=2]

    That would work too, as long as no user sees both of them, you won’t run into any conflicts.

    Thread Starter Futuresweb

    (@webmasterfutureswebcom)

    i see how it displays both child directories when pointing to the parent directory but then the data disappears from the page since I’m using [fileaway base=2 and the base 2 is now pointing to the parent directory which has no data.

    So how would I get the data from both child directories to appear on the webpage?

    It only seems display both when I add the actual child directory to the setup below. Is there additional code that I can add to the webpage to call the child directories data?

    My setup:

    base directory 1: /xxx/parent/
    base directory 2: /xxx/parent/

    Code on webpage:
    [fileaway base=1 hcolor=green sortfirst=filename-desc paginate=yes pagesize=5 heading=”news1″]

    [fileaway base=2 hcolor=green sortfirst=filename-desc paginate=yes pagesize=5 playback=”on” heading=”news2″]

    Plugin Author thomstark

    (@thomstark)

    I’m confused. I thought we were talking about fileup. Point your fileup shortcode to the parent-most directory (for administrators). Point as many fileaway shortcodes wherever you want. You have 5 base dir settings to play with.

    Plugin Author thomstark

    (@thomstark)

    I’m also confused by this:
    base directory 1: /xxx/parent/
    base directory 2: /xxx/parent/

    Are you pointing to the same directory for both settings? ‘Cause that’s kind of redundant.

    Plugin Author thomstark

    (@thomstark)

    Resolved. Your base directories are now setup like this:

    Base 1: /xxx/parent/sub1
    Base 2: /xxx/parent/sub2
    Base 3: /xxx/parent/

    Your [fileup] shortcode is pointed to base 3.

    Thread Starter Futuresweb

    (@webmasterfutureswebcom)

    thanks, awesome!

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

The topic ‘two base directories on same page’ is closed to new replies.