Posts Tagged ‘CMSMS’

Integrating Calendar and Google Maps in CMSMS

Tuesday, January 19th, 2010

I recently had to do a website for a family friend who’s getting married. They were having a destination wedding, and one of the things they wanted to do on the site was have calendar items below a Google Map, with the addresses associated with the events reflected on the map.

I could have had it be a little redundant, but this is the sort of puzzle I like figuring out, so I set to work.

I use CMS Made Simple for most of the sites I do for folks nowadays, because it’s open source and excellently put together.

I installed Calguy’s Calendar and Google Maps modules, and set to work. I created an upcoming list template to display all the events; pretty easy.

One of the field definitions on the Calendar module was “Address” so that they could put in the event’s location. This would come in handy for my map points!

Next was getting the map set up. After setting up the module with the API key for Google Maps, I created an new map and added a central map point. (the map won’t display without one, something I didn’t realize at first)

The Google Maps module includes a plugin for creating dynamic map points on the fly. I created another upcoming list template in the calendar module to automatically create these map points dynamically. Sample code below. I had to use the smarty “assign” function to get them to work correctly; don’t ask me why.


{foreach from=$events key=key item=event}
{assign var=event_title value=$event.event_title}
{assign var=event_date value=$event.event_date_start|date_format:"%e"}
{assign var=event_summary value=$event.event_summary}
{assign var=event_address value=$event.fields.Address}

{cggm_add_dynpoint map=1 name="$event_title" address="$event_address" description="$event_summary"}
{/foreach}

This way, any new calendar item they created would be created on the map!

Note: when you add any code or dynamic points, make sure to add them below wherever you create the map! Otherwise they don’t show up!

Front End User Photo Galleries

Tuesday, January 19th, 2010

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tmahoney/public_html/wp-content/plugins/attachment-manager/wp-attachment-manager.php on line 402

This was somewhat quick and dirty. However, it works very well for what I need and if anyone else would like to use it, go for it.

I had a need for a way to enable an administrator to manage photo galleries on a per-user basis. I figured that the best thing to do would be to make some sort of connector between Photo Album and FrontEndUsers, but I wasn’t quite sure that was possible, and also whether or not I could pull it off regardless. So, instead I edited FrontEndUsers, and Copied and created a new Module from Photo Albums and called it FEUAlbum. Neither of these modules will be supported by me, (unless there’s money involved) and I don’t expect to extend them beyond what I’ve done. Obviously the original authors of the modules are not going to support an edited version of their module.

Those disclaimers aside, here we go.

Vanilla installation of CustomContent is used.

In FrontEndUsers, I created a new “field type” in the User Properties called “Album.” Adding this to a group will make a link appear when you edit a user. Clicking the link, if the user has no photo album at the moment, will create the photo album using the user’s FEU id as the album id, and the user’s username as the album name. If the user has a current album created already, this link will take the administrator to it to manage it.

Copying Album to a new module was easy. Installing FEUAlbum will NOT overwrite anything from the original module (Album) and both can run side-by-side. New database tables were created throughout and the links to files are correct. All other functionality, including templates, works as expected.

Insert the module tag in the template or page like so:

{cms_module module="FEUAlbum" albums=$ccuser->LoggedIn()}

Calls the module and uses the user’s ID as the album number, which pulls in the relevant album. Obviously the user should be required to log in before access to the album is allowed.

The goal was to do the least amount of work and get the greatest functionality out of it. One caveat is that each user can only have 1 album assigned to them.

I hope this helps someone out; I’ve attached zip files for the edited modules.