ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How would/could I achieve this client request?

July 10, 2011 2:40pm

Subscribe [5]
  • #1 / Jul 10, 2011 2:40pm

    Martagnan

    10 posts

    Hello,
    My client is a photographer for schools and family portraits.

    I’d like to offer the ability for his customers to log-in and see the photos he’s taken of them. Obviously this needs to be restricted to the particular customer so nobody else can see their photos.

    I have a plan to use Matrix for the gallery “front-end” so a way of replicating this to individual members would be ace.

    Any ideas?

    Thanks

    Martin

  • #2 / Jul 10, 2011 3:07pm

    Wouter Vervloet

    758 posts

    Hi Martin.

    With the Solspace User add-on you can assign multiple authors to an entry. After that it is as simple as:

    {exp:channel:entries channel='photos' author_id='{logged_in_member_id}'}

    Though the User add-on does cost a few buck, it’s worth its weight in gold when dealing with members on a site. (does software even have weight?)

    Wouter

  • #3 / Jul 10, 2011 3:15pm

    Martagnan

    10 posts

    Thanks Wouter,
    Ill take a look at that.

    May need to adjust the quote :(

    Martin

  • #4 / Jul 10, 2011 3:19pm

    Wouter Vervloet

    758 posts

    Thanks Wouter,
    Ill take a look at that.

    May need to adjust the quote :(

    Martin

    Features cost money, it’s as plain as that, and if he can’t afford another $100 USD, then maybe he should consider a different line of work as it clearly isn’t paying enough. 😊

  • #5 / Jul 14, 2011 1:41pm

    NicoDG

    26 posts

    Hi Martin , with Zoo Visitor you can just attach a channel images fieldtype or upload the photo’s in file fields inside a member profile, should make it easier for you client to manage too http://ee-zoo.com/add-ons/visitor/

  • #6 / Jul 14, 2011 2:31pm

    lebisol

    2234 posts

    Are multiple authors really needed?
    1 customer = 1 author done, no plugins needed.

  • #7 / Jul 14, 2011 4:21pm

    Martagnan

    10 posts

    Hi lebisol,
    Can you elaborate?

    Cheers

    Martin

  • #8 / Jul 14, 2011 4:42pm

    lebisol

    2234 posts

    If you are using matrix to build a gallery then we are still looking into just one entry with multiple images.
    All you have to do to ‘give access’ is choose the client/member as the author of the entry and then present it to them eg.:

    {exp:channel:entries channel="photos" author_id="CURRENT_USER"}
    {title}
     {field1}
     {field2}
     ...
    {/exp:channel:entries}
  • #9 / Jul 14, 2011 11:53pm

    http://devot-ee.com/add-ons/ac-member-list or http://devot-ee.com/add-ons/member-list-custom-field would let you associate a client (with an account) with a custom field. Then check if the current_user = that field.

  • #10 / Jul 16, 2011 3:33pm

    Martagnan

    10 posts

    Hi lebisol,
    Thanks for the advice. I just got round to trying your solution and it works!

    Another question for the community…
    Is there a way to show a list of entries by author?  When a user is logged in they see a list of their own entries?

    Thanks

    Martin

  • #11 / Jul 17, 2011 7:59pm

    lebisol

    2234 posts

    Yes…the snip above is exactly that.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases