Event Photography - Add-On

Well the work for producing a contributable event photography solution is complete. Before I post the code I'd like some feedback.

If you go to my site http://www.daugharty.com and click galleries you will only see two listed (published) galleries, however if you go back to the home page, you will see an event ID field. Enter either the number 100 or 200 for event ID's and you will be redirected to hidden albums.

I had passwords on these but I took them off for you to see how the integration works. Please provide feedback and I'll post the code as an installable contrib.

I've got error processing left to do if the event ID does not exist. Right now it gives a blank page.

Thanks in advance for the feedback.

Comments

  • acrylian Administrator, Developer
    It's basically just a kind of search function to get unpublished albums directly? I can imagine that this could indeed be useful sometimes and an alternative to the password protection.
    So the ID is a special id? Why not use the album name or the already given album id?
  • because the event ID can be alpha-numeric and is a number used to setup for an event thus allowing me to include this number on the form that I take to each event.

    The password on the album will be included in a form field on the events page so it's posted during load of the album.
  • acrylian Administrator, Developer
    Alright, maybe it's because I am not a photographer that I did not understand the concept of event photography completly. If you find it useful, others might too. So if you want you can post it directly on the trac. Or we just link to your site from our extensions page, if you prefer to have a download or so on you site.
  • Seems that the password is back. No worries, though.

    How is the implementation done? Looks like you look up the event ID and match it to an album name?
  • I will post the code next week after I clean it up a little but here is what was done

    1) setup.php modified to add a new table called events with colums (eventid, eventdesc and albumid)
    2) admin.php option-defaults.php and admin-functions.php modified to enable events functionality (New gallery options) .. includes upload option to flag an album for an event (adds rows to the events table)
    3) new php created called events.php that enables a view of available events with a thumbnail and also support a query string to call the php with an event ID so it can be used as a form processor for front-side site pages.

    In general the events.php page joins against the albums table based on the album ID that is stored in the events table as a means of looking up the album title for redirect.

    Usage for me is to unpublish an album so it's not visible in the gallery and provide access via an event ID that I gave people during their session.
  • Sounds great. Be sure you check the latest SVN before your final version. There have been some changes in some of the files you are modifying.
  • code Member
    Whats with this feature. I am looking for this feature also...
Sign In or Register to comment.