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).
I have imported the xml file and have not yet done the code edits. I noticed on my forums that when I click on a Group to see the Group's page, I get this message:
No Calendar specified. If you followed a valid link, please notify the administrator
When I disable the mod, I am able to click on a Group and be taken to it's page. Will this change once the edits are done? As much as I look forward to this hack, I can't commit to it if it prevents my members from checking out the groups.
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.
I have imported the xml file and have not yet done the code edits. I noticed on my forums that when I click on a Group to see the Group's page, I get this message:
No Calendar specified. If you followed a valid link, please notify the administrator
When I disable the mod, I am able to click on a Group and be taken to it's page. Will this change once the edits are done? As much as I look forward to this hack, I can't commit to it if it prevents my members from checking out the groups.
I am experiencing the same problem for a Social Group I created after installing the product. (it's the first group of a virgin board that I am working on)
Let me know what you need from me to determine what's going on.
If I want to use a calendar besides the default, what do I use for a 'Calendar ID'? I tried the name 'Social Group Calendar' but that didn't appear to work, and I tried '1' (assuming the default calendar had an ID of 0) but the event listing refers to the default calendar name instead of the new one.
Look in the calendar section of the admincp... if you create a new one it will take you to a screen which has all the calendar id's next to the calendar names.