Title: Direct user
Last modified: August 22, 2016

---

# Direct user

 *  Resolved [willettdave](https://wordpress.org/support/users/willettdave/)
 * (@willettdave)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/direct-user/)
 * Hi. I have a directory structure for my clients (example):
 * public_html/client-private/25411
    public_html/client-private/25412 public_html/
   client-private/25988
 * Each folder holds images for each client which I need to return in the iframe
   specific to that user. Within each folder there is a single page php gallery 
   and I can return this with example:
 * [advanced_iframe securitykey=”MyKey” src=”[http://www.MyWebSite.com/client-private/25411″%5D](http://www.MyWebSite.com/client-private/25411″%5D)
 * As I have several customers and they each have their own folder within the directory,
   how can I have the correct folder contents showing when the owner of that folder
   logs in.
 * So if folder 25411 has Mr Jones images within it, when he logs in the iFrame 
   should show the contents of his folder ??
 * [https://wordpress.org/plugins/advanced-iframe/](https://wordpress.org/plugins/advanced-iframe/)

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

 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/direct-user/#post-5886978)
 * and where does the e.g. 25988 come from?
 *  Thread Starter [willettdave](https://wordpress.org/support/users/willettdave/)
 * (@willettdave)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/direct-user/#post-5887012)
 * Hi. in the above post, the folders, 25411, 25412, 25988 are all examples.
    The
   folders are named as the JobID’s generated by our management system.
 * We use a windows package which does the following:
 * Checks to see if a a JobID folder exists in public_html/client-private/
    If it
   doesn’t it will create it. Then it will upload images and pdf docs into this 
   folder.
 * So the JobID can be any number.
    Does this help?
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/direct-user/#post-5887013)
 * How should the plugin know that folder 25411 belongs to Mr Jones?
 * You need a mapping somewhere.
 *  Thread Starter [willettdave](https://wordpress.org/support/users/willettdave/)
 * (@willettdave)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/direct-user/#post-5887019)
 * We will give Mr Jones a login will consist of a username and the unique JobID.
 * So for example:
 * Username:mrjones
    UniqueID:25411
 * I haven’t done the mapping yet.
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/direct-user/#post-5887109)
 * Advanced iframe pro has a features that e.g. the username, userid in WordPress
   can be added to the url.
    In your case this would have to be extended to read
   the uniqueID.
 * Best, Michael
 *  Thread Starter [willettdave](https://wordpress.org/support/users/willettdave/)
 * (@willettdave)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/direct-user/#post-5887177)
 * Hi, would it be possible to include the post or page name to the shortcode?
 * example
    public_html/client-private/POSTNAME
 * So if I named the post or page as 25411, the url in the iFrame would use the 
   posts name as the last parameter?
 * Regards
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/direct-user/#post-5887180)
 * so the url in the browser is like
    [http://www.mydomain.com/client-private/POSTNAME](http://www.mydomain.com/client-private/POSTNAME)?
 *  Thread Starter [willettdave](https://wordpress.org/support/users/willettdave/)
 * (@willettdave)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/direct-user/#post-5887181)
 * Hi again.
 * The url can be any of the following:
 * [http://www.mydomain.com/client-private/25411](http://www.mydomain.com/client-private/25411)
   
   or [http://www.mydomain.com/client-private/12345](http://www.mydomain.com/client-private/12345)
   or [http://www.mydomain.com/client-private/65844](http://www.mydomain.com/client-private/65844)
 * it is only the end characters after the last / which changes.
    If I can pull 
   the page title ( assuming I name the page 25411 etc ) then I can complete the
   iFrame shortcode.
 * [advanced_iframe securitykey=”ASecureKey” src=”[http://www.mydomain.com/client-private/”%5D](http://www.mydomain.com/client-private/”%5D)&
   page title
 * ( hope I’m making sense )
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/direct-user/#post-5887183)
 * Extracting part of the url and adding this to the iframe url will be one of the
   features of the next version 6.4 of the pro version of this plugin.
 * I currently work on the tutorial videos.
 * Best, Michael

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

The topic ‘Direct user’ is closed to new replies.

 * ![](https://ps.w.org/advanced-iframe/assets/icon-128x128.png?rev=1028488)
 * [Advanced iFrame](https://wordpress.org/plugins/advanced-iframe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-iframe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-iframe/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-iframe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-iframe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-iframe/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/direct-user/#post-5887183)
 * Status: resolved