Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • I still can’t get it to work. Here is the full shortcode I’m using:

    [s2member_secure_files_browser collapseeasing=”swing” collapsespeed=”500″ cutdirnames=”0″ cutfilenames=”0″ dirbase=”%2Fannual_documents%2F%username%” dirfirst=”0″ displayall=”0″ displaybirthdate=”0″ displaycomment=”0″ displaydownloaded=”0″ displaysize=”1″ displaymodificationdate=”0″ dirzip=”0″ expandeasing=”swing” expandspeed=”500″ folderevent=”click” hidden=”0″ multifolder=”1″ openrecursive=”1″ s2alertbox=”1″ search=”0″ searchgroup=”0″ searchdisplay=”0″ names=”access-s2member-ccap-garvey:” sortby=”4D” /]

    I want it to target this folder:

    s2member-files/annual_documents/testuser (each user will have a folder under the annual_documents directory that will be targeted based on their username)

    I have this folder set up and I’m logged in as testuser, but I can still see the entire directory tree under s2memberfiles/ instead of just the contents of the s2member-files/annual_documents/testuser folder.

    I only want it to show the files that are in the sub-folder and not all of the directories under s2memberfiles.

    I should mention I had it working when I was targeting the annual_documents folder (it showed all the files under annual_documents), but it does not seem to work when I target the user sub-directory of annual_documents.

    Also changing dirbase=”%2Fannual_documents%2F%username%” to dirbase=”%2Fannual_documents%2Ftestuser” works how I want it to also. I just can’t get the %username% function to work.

    Oh! I didn’t realize that was an option. I think I’m still doing something wrong…

    I have my directories set up as follows currently:

    s2member-files/administration/access-s2member-ccap-user1
    s2member-files/administration/access-s2member-ccap-user2
    s2member-files/annual_documents/access-s2member-ccap-user1
    s2member-files/annual_documents/access-s2member-ccap-user2

    so I tried using this in the shortcode to access the users in the annual_documents folder dynamically:

    dirbase=”%2Fannual_documents%2Faccess-s2member-ccap-%username%”

    Unfortunately, I did something wrong because it outputs everything within the entire s2member-files directory instead of the individual user’s sub-folder with in the annual_documents folder.

    Does that make sense?

    I would love to have the same feature on a website I’m working on. Can you provide some info on what code to add to the plugin to make %username% dynamic in the shortcode? Thanks!

    Thread Starter sagedel

    (@sagedel)

    Got it working, realized my wordpress was set to the wrong server time so it thought today was tomorrow.

    I had the same problem… you have to go to Settings > Reading and then select the first option for “Your Latest Posts”.

    Then go to your blog page in “pages” and select the template for “blog page” so that your blog page will work properly as well.

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