By Andy on Sunday, 18 February 2018
Posted in Technical Issues
Replies 1
Likes 0
Views 574
Votes 0
My users remain confused about how to get access to post on an event timeline. It's not clear that they need to RSVP first... I'm trying to write some code in the event page module position which will alert them to RSVP in order to post...

I need some help working out which EasySocial table(s) to query to help with this. I'm trying to see if the current logged in user has RSVP'd to the event being viewed... I guess it's something like

SELECT from some EasySocial table(s) WHERE UserID = CurrentLoggedin

I'm able to do the PHP bits that would get the current UserID and evaluate the result of this select to show a message if needed.. but it's just which table(s) to look at is what I'd need... and maybe there would be some PHP first as well to extract the current event ID.

Thanks for any help!
You can try this

[gist]
<?php
$view = JRequest::getVar('view');
$id = JRequest::getInt('id');

if ($view == 'events' && $id) {
$event = ES::events($id);

// User is attending
if ($event->isMember()) {
// Enter your codes here
}
}

[/gist]
·
Sunday, 18 February 2018 13:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post