Personal calendar with EM?
-
Out of curiosity:
What would it take for me to create a functionality, where the user can mark/check and add events to his/her own ‘Favorite List’ and when the web page is shown, the user can go to ‘Favorite Events’ and see the chosen events only. I’m not talking about an ICS implementation, but a stand-alone feature.
Feel free to ask me to elaborate, if my Danglish (Danish-English) isn’t precise enough.
/E
-
Hiya,
I imagine that the best way to do that is create a custom user profile field in which you can insert a serialised array of event IDs that can simply be retrieved at any point when the user is logged in.
Then, you’d just need a button on each event page (which you can add in Event > Settings > Formatting) that uses an AJAX script to add that event ID to the array mentioned above.
Cheers,
PhilGreat input, Phil. Thanks.
Though, you lost me at ‘simply’. 😉
I’ve seen this (primarily) in apps, especially built for larger events (festivals, etc.). Was wondering if there was a workaround in a plugin or similar.
Maybe it would be a USP for the Pro version og E-M?
Thanks again,
EliasenHi Eliasen,
I think Phil summarized it pretty well 🙂 you probably need to hire a developer to do this for you.
You’d need to create the functionality that saves those favourited events to a profile, session, etc and shows that to the user.
once you have an array of event IDs you can do this:
echo EM_Events::output($event_ids);Hi Marcus,
I’m truly confident, that Phil’s approach is the correct one. And, I’m pretty sure I would need external help for this task to be completed. Was just wondering, what it would take for the challenge to be met.
you could make use of #_EVENTID in our placeholders to supply the event id in some way, and then use AJAX to send the id to your server and have some php in the backend sort that out.
that’s the gist of it, a dev should have enough to go on with this
Thanks again, Marcus.
I imagine that should be enough for me to trigger some kinda thoughts with a dev. 🙂
/E
The topic ‘Personal calendar with EM?’ is closed to new replies.