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).
if you remove the &groupid=2 from the url, non members of the social group are still able to post events. (most members are in the same usergroup and thus have rights to create an event) http://www.something.com/forums/cale...ype=single&c=2
I can't add a new social group - I get an error no calendar specified.
Quote:
Originally Posted by Wayne Luke
I was evaluating this to see if I want to keep it and click Install. However I cam across an error.
Warning: Invalid argument supplied for foreach() in [path]/calendar.php(1825) : eval()'d code on line 70
This leads to the plugin on calendar_add_complete and this code:
PHP Code:
if (count($othergroups)>0) {
$socialgrouplist .= "<option>-------------------</option>";
}
// Add options to social group list.
foreach ($othergroups as $socialgroup) {
$selected = ($groupid==$socialgroup['groupid']) ? 'selected="selected"' : "";
$socialgrouplist .= "<option value=\"$socialgroup[groupid]\" $selected>$socialgroup[name]</option>";
}
I don't have any "$othergroups" as I am the owner of all groups on the site. So shouldn't the Foreach be within the if block with the divider line so that it doesn't try to process a loop without data?
I changed the above code to:
PHP Code:
if (count($othergroups)>0) {
$socialgrouplist .= "<option>-------------------</option>";
// Add options to social group list.
foreach ($othergroups as $socialgroup) {
$selected = ($groupid==$socialgroup['groupid']) ? 'selected="selected"' : "";
$socialgrouplist .= "<option value=\"$socialgroup[groupid]\" $selected>$socialgroup[name]</option>";
}
}
Clears up the error. Wouldn't be noticeable on an active site with different groups created.
Was getting the same error, thanks for the fix! Mod working now
How can I change that template so it shows multiple events from the same day? At the moment it only displays the first event from the day. Some of the events on my forum are on a schedule so it would be good to show the next event when the time is reached or to show all events from the same day in time order.
Okk, error.. even after applying fix in this thread:
Warning: Invalid argument supplied for foreach() in [path]/calendar.php(1619) : eval()'d code on line 104
I'm wondering about the user's Social Group Calendar or Calendars appearing in a widget on the VB 4.0 CMS?
Really what I want is a usergroup based Personal Entry page - but I'm hoping to use the CMS to do it
- together with the Advanced Navbar
- and Calendar mods.
I have work teams that need to see their upcoming deadlines when they log in.
A Personal entry page could display more.