Version: 1.0.0, by Farcaster
Developer Last Online: Jun 2014
Category: Social Group and Album Enhancements -
Version: 3.8.x
Rating:
Released: 01-27-2009
Last Update: 04-05-2009
Installs: 73
DB Changes Uses Plugins Template Edits
Code Changes
No support by the author.
In short, this modification will allow social groups on your forum have their own calendar area and have upcoming events shown on their group page. Here is a list of features:
Upcoming events for a group are shown on the group's page, grouped by day.
The group's next event is shown in more detail and can be configured to show the entire event description or be trimmed to a certain number of characters.
Members can see events for all the social groups they belong to consolidated into one calendar.
The forum home index page can be setup to show upcoming events for social groups.
Non-members can see upcoming events for a public group by viewing the group's page. They will not see events for these groups in the calendar view or on the forum homepage, which will help keep the clutter down.
Group's that are moderated, invite only, or must join to view content, will not display their upcoming events to non-members. Their events are also secured, so following a link to an event by a non-member will result in a no permissions error.
Group owners can optionally allow members to be able to post events, or they can set their group up so that only they can post events.
When clicking on the New Event link from the group's page, the event will automatically be assigned to the referring group.
When creating a new event from the calendar view, the creator can assign the event to any group he has permissions to post events. These events will appear in a drop down box on the event.
Admins and moderators can be set to be excluded from all filtering and permissions. This allows the administrator an unfiltered view of the social group calendar, and the ability to move or edit group's events as needed.
Plays nice with Farcaster's Event Attendance v2.0 (RSVP mod).
Yeah, I know, the file edits are a pain. If there was another way to do it that wasn't a complete hack, I would have. My hope is that they will consider adding more hooks to the calendar.php and functions_calendar.php. That would really help.
The good news is that they don't always update the functions_calendar.php which is where most of the file edits are. If they don't update it in a revision, then you can omit the file when you reupload the "upload" folder.
Bug: The upcoming events on the forum home page sometimes loose the social group names and are no longer filtered appropriately.
If you installed 0.1.0 and completed the steps to add upcoming social events to your forum home page, follow these steps to resolve:
In functions_calendar.php, find:
PHP Code:
// Social Group Calendar **************************************************
if ($vbulletin->userinfo['userid']) {
$eventjoin = " LEFT JOIN (SELECT groupid, name FROM ".TABLE_PREFIX."socialgroup) sg ON sg.groupid = event.socialgroupcalendar ";
$eventselect = ", event.socialgroupcalendar, sg.name as socialgroupname";
}
// Social Group Calendar END ***********************************************
Replace with:
PHP Code:
// Social Group Calendar **************************************************
$eventjoin = " LEFT JOIN (SELECT groupid, name FROM ".TABLE_PREFIX."socialgroup) sg ON sg.groupid = event.socialgroupcalendar ";
$eventselect = ", event.socialgroupcalendar, sg.name as socialgroupname ";
// Social Group Calendar END ***********************************************