PDA

View Full Version : Social Group and Album Enhancements - Social Group Calendars


Farcaster
01-27-2009, 10:00 PM
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).Installation Instructions (Remember to Mark Installed)
Follow the installation instructions available here: https://vborg.vbsupport.ru/showpost.php?p=1727007&postcount=2

Revision Log
0.1.0 BETA - 01/28/09 - Initial Version
1.0.0 - 04/05/09 - Bug Fixes and Release (Upgrade Instructions)Known Issues
None at this time.

Farcaster
01-28-2009, 09:13 AM
Unfortunately, vBulletin lacks some hooks in key places for events, such as hooks to the event SQL statements. This means that there are a number of file edits needed for this modification. Sorry for that, but I hope it will be worth it! Enjoy!

Step One – Backup Your Database and vBulletin Files!
This really needs to be said, especially since this version is in BETA. Loss of data/time/business is not the responsibility of the developer. Use at your own risk.

Step Two – Import the Product File
In the Admin CP, import rah_socialgroup_calendars_1_0_0.xml.

Step Three – Edit vBulletin File: includes/functions_calendar.php
Note: If you do not want to have Social Group Events show up in the upcoming events section on your forum homepage, then you only need do steps 1 through 7 in this section.

1. Find the first instance of (in function cache_events, near the beginning of the file):

$events = $vbulletin->db->query_read_slave("
SELECT event.*,2. Above that add:

// Social Group Calendar **************************************************

// Exempt administrators and other designated groups.
$exemptgroups = explode(',',str_replace(' ','',$vbulletin->options['rah_socialcal_admins']));

if (is_member_of($vbulletin->userinfo,$exemptgroups)) {
$exemptsql = " OR 1=1 ";
}
if ($vbulletin->userinfo['userid']) {
$eventjoin = " LEFT JOIN ".TABLE_PREFIX."socialgroupmember sgm ON sgm.userid = 0".$vbulletin->userinfo['userid']." AND sgm.groupid = event.socialgroupcalendar
LEFT JOIN (SELECT groupid, name FROM ".TABLE_PREFIX."socialgroup) sg ON sg.groupid = event.socialgroupcalendar";
$eventwhere = " AND (event.socialgroupcalendar = 0 OR sgm.groupid IS NOT NULL $exemptsql) ";
$eventselect = " sg.name as socialgroupname, ";
}

// Social Group Calendar END ***********************************************
3. Scroll back down and after the comma in “SELECT event.*,” add:

$eventselect4. Scroll down about five lines to find:
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = event.userid)5. Below that add:
$eventjoin6. Scroll down about four lines to find:
visible = 17. Below that add:
$eventwhere8. Find the following (in function build_events, near the end of the file):

$events = $vbulletin->db->query_read_slave("
SELECT eventid, userid, event.title, recurring, recuroption, dateline_from, dateline_to, event.calendarid, IF (dateline_to = 0, 1, 0) AS singleday, customfields,
dateline_from AS dateline_from_user, dateline_to AS dateline_to_user, utc, dst
9. Above that add:
// 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 ***********************************************10. After “dateline_to AS dateline_to_user, utc, dst”, add:
$eventselect11. Scroll down about two lines and find:
INNER JOIN " . TABLE_PREFIX . "calendar AS calendar USING (calendarid)12. Below that add:
$eventjoinStep Four – Edit vBulletin File: index.php
Note: If you do not want to have Social Group Events show up in the upcoming events section on your forum homepage, you can skip this section entirely. Keep in mind though that if you do have your calendar options set to show events from the calendar that social group events will be posted to, the list will not be filtered and everyone will see them.

1. Find the following:
// ### TODAY'S EVENTS #################################################
if ($vbulletin->options['showevents'])
{2. Below that add:
// Social Group Calendar **************************************************
// Get Social Group Memberships
$usersocialgroups = array();
if ($vbulletin->userinfo['userid']) {

$getsocialgroups = $vbulletin->db->query_read_slave("
SELECT groupid
FROM ".TABLE_PREFIX."socialgroupmember sgm
WHERE sgm.userid = ".intval($vbulletin->userinfo['userid']));

while ($group = $vbulletin->db->fetch_array($getsocialgroups)) {
$usersocialgroups[]=$group['groupid'];

}
}

// Exempt administrators and other designated groups.
$exemptgroups = explode(',',str_replace(' ','',$vbulletin->options['rah_socialcal_admins']));

if (is_member_of($vbulletin->userinfo,$exemptgroups)) {
$exempt = true;
}
// Social Group Calendar END ***********************************************
3. Find the following:
{
$sub = $eventinfo['dateline_from_user'] - (86400 * (intval($eventinfo['dateline_from_user'] / 86400)));
}
4. Below that add:
// Social Group Calendar **********************************************
$filterevent = false;
if ($eventinfo['socialgroupcalendar'] AND !in_array($eventinfo['socialgroupcalendar'],$usersocialgroups)) {
// This is a social group event, and this is not a member. Suppress the event
$filterevent = true;
}

// Add exception for admins and other designated groups.
if ($exempt) {
$filterevent = false;
}

// Add social group name to event title.
if ($eventinfo['socialgroupcalendar']) {
$eventstore[$eventinfo[eventid]]['title'] = "<font style=\"font-weight:bold\">[$eventinfo[socialgroupname]]</font> $eventinfo[title]";
}
// Social Group Calendar END *******************************************
5. Immediately below the code you just entered, find:
if ($vbulletin->userinfo['calendarpermissions']["$eventinfo[calendarid]"] & $vbulletin->bf_ugp_calendarpermissions['canviewcalendar'] OR ($eventinfo['holidayid'] AND $vbulletin->options['showholidays']))
{
6. Replace with:
// Edited from original for Social Group Calendar
if (!$filterevent AND $vbulletin->userinfo['calendarpermissions']["$eventinfo[calendarid]"] & $vbulletin->bf_ugp_calendarpermissions['canviewcalendar'] OR ($eventinfo['holidayid'] AND $vbulletin->options['showholidays']))
{Step Five – Upload Files
Upload the modified files to the appropriate directory in your forum.

Step Six – Edit Template: socialgroups_form
1. Find the following:
<legend>$vbphrase[group_options]</legend>
<div class="smallfont">
2. Below that add:
<div>
<label for="member_entered_events"><input type="checkbox" name="member_entered_events" id="member_entered_events" value="1" $checked[member_entered_events]/> $vbphrase[member_entered_events]</label>
</div>Step Seven – Edit Template: socialgroups_group
Note: If you’re trying to install this on version 3.7.x, the section you put the variable in will be different. Try putting it above <!--pictures--> for instance, and then adjust to be located where you want.

1. Find the following:
</div><br />
</if>


<!-- Discussions -->2. Above that add:
$socialgroups_eventsStep Eight – Configuration
In the Admin CP, go into vBulletin Options -> Social Group Calendar. Set the options as desired. The product will not start working until a calendar ID is entered in this section. Make sure to configure the calendar selected to allow members to post events.

Farcaster
01-28-2009, 09:15 AM
I have confirmed this to be working on vBulletin version 3.8.1. I assume that it will also work with version 3.7.x. If someone installs it on that version, please confirm if it works appropriately.

Vaupell
01-28-2009, 09:34 AM
Lovely, i simply dont understand why this wasent a standard feature..

tx.. :up: :up: :up: :up: :up:

Farcaster
01-28-2009, 12:41 PM
I don't either. The calendar is truly a bit underdeveloped, and the idea of events goes very well with social groups...

RvG2
01-28-2009, 01:29 PM
Lovely, i simply dont understand why this wasent a standard feature..

tx.. :up: :up: :up: :up: :up:

You are right.

Trek
01-28-2009, 05:09 PM
Going to install this now, I think this will do what I've been looking for. =)

Trek
01-28-2009, 05:16 PM
Ok, one question. Is there any way (with this mod or something else) to automatically assign someone to a social group? I hope so, or my idea is dead before it gets started. heh

I guess what I'm looking for is social groups based on user group. Or if that's not possible, the ability to automatically give someone access to a social group when they are added to a specific user group.

Farcaster
01-28-2009, 06:34 PM
I guess what I'm looking for is social groups based on user group. Or if that's not possible, the ability to automatically give someone access to a social group when they are added to a specific user group.

No, I'm afraid this mod doesn't do that. Nor do I know of one that does.

Trek
01-28-2009, 06:49 PM
No, I'm afraid this mod doesn't do that. Nor do I know of one that does.

Bummer... I think this mod will do everything I need other than the auto adding to the social group. I'll do that manually I suppose until figure out something else.

Maybe I'll just write a query that adds everyone in a usergroup to a social group every night on a cron... that should work, but not really the cleanest way to go about it.

With that, this mod and your RSVP mod, I think everything I need to accomplish will work. Thanks!

Locutus2999
01-28-2009, 10:40 PM
Will the events in the calendar allow comments?

concepts
01-28-2009, 10:50 PM
Can you please assist me with the below error?

Warning: Invalid argument supplied for foreach() in [path]/calendar.php(1619) : eval()'d code on line 57

Farcaster
01-29-2009, 12:00 AM
Warning: Invalid argument supplied for foreach() in [path]/calendar.php(1619) : eval()'d code on line 57

What were you doing at the time when that message occurred?

Brandon Sheley
01-29-2009, 12:50 AM
great idea, a lot of file edits tho :(
Hopefully this gets implemented by default

Farcaster
01-29-2009, 03:45 PM
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.

Stubbed
01-29-2009, 04:51 PM
Shame there aren't the hooks you require. I'm more than happy to do those edits, but it will make upgrading a nightmare. Will have to pass.

10 points for a solid mod idea.

Farcaster
01-29-2009, 05:28 PM
Stubbed,

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.

And, thanks!

Farcaster
01-30-2009, 04:48 AM
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:
// 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:
// 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 ***********************************************

Vaupell
01-31-2009, 10:49 PM
suggestion : Add images to each event! even costum/http links.

Trek
02-02-2009, 08:46 PM
Just wanted to say I'm still watching this mod! Waiting for it to come out of beta, etc. =)

Farcaster
02-02-2009, 11:26 PM
Very good, Trek. It doesn't look like there are many reported issues, so it will probably be soon. The next release should also have some additional functionality.

TNCclubman
02-27-2009, 10:42 PM
Farcaster, this and your Event RSVP mod is 100% getting my vote as ESSENTIAL for the next release of vB 3.8.2...

How can this not be included is beyond me. These features are huge and I shout at the top of my lungs to vB staff.... INCLUDE THESE IN THE NEXT RELEASE!

theparentpack
03-25-2009, 06:06 AM
I am looking forward to using this one, once it is out of Beta stage!!! Awesome MOD!

rainyleaves
03-29-2009, 05:06 PM
Awesome mod!! Farcaster.

I need some help.
Disappear SocialGroup name at calendar title when I install with 'Farcaster's Event Attendance & vb Event Forums Integration 1.1'.
How do keep SocialGroup name at calendar title?

Please help...

Thanks.

Farcaster
04-05-2009, 10:20 PM
This product is now out of BETA as no further issues have been reported and the pending issues are now resolved. Bugs resolved in version 1.0.0 include:

Holidays appearing after a social event in the social group calendar are erroneously appended with a social group name. - RESOLVED
First Event description BB code not parsed. - RESOLVEDThank you for your patience and I hope everyone enjoys the mod.

ShawnV
04-06-2009, 01:47 AM
Awesome, I will have to add this to KOWW, thanks Farcaster.

_V

Farcaster
04-06-2009, 05:13 PM
I forgot to add upgrade instructions for 0.1.0 to 1.0.0. Actually, there is only one thing to do:

1. Import the file production file product-rah_socialgroup_calendars_1_0_0.xml and be sure to select "Yes" to Allow Override.

skooby
04-07-2009, 12:01 AM
This is similar to your older event attendance mod. is it possible to use this mod in the way the other mod worked (by choosing a calendar, rather than a social calendar).

Farcaster
04-07-2009, 02:37 AM
Skooby - not currently.

Benj
04-07-2009, 03:14 AM
farcaster this is awesome !

skooby
04-07-2009, 10:52 PM
Disregard :)

theparentpack
04-12-2009, 07:04 PM
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.

BigDog56
04-13-2009, 05:02 PM
What is the calender ID?

dklassen
04-17-2009, 11:45 PM
Will this work with 3.7.3?

Wayne Luke
04-19-2009, 02:35 AM
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:

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:

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.

Wild Bronco
05-04-2009, 03:10 PM
Sounds nice ...

Is it thene possible to view all social group events on one Event calendar? To get a cleare look at all up coming events??

Or have a menu of calendar topics like Dog events, horse events, cat events etc ...

rEd86
05-08-2009, 02:06 PM
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.

Thanks!

--Ed

Reeve of shinra
06-08-2009, 03:34 AM
I just installed it and so far things look great. It's actually making the calendar useful!

chrisesposito
06-08-2009, 04:35 AM
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. :confused:

Thanks,
Chris

Reeve of shinra
06-08-2009, 07:44 PM
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.

Lord Doys
06-16-2009, 07:56 PM
Hi,
I noticed its very easy to bypass the security to post new events on the calendar

in the social group you press the link to create a new event
http://www.something.com/forums/calendar.php?do=add&type=single&c=2&groupid=2

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/calendar.php?do=add&type=single&c=2

john102774
06-18-2009, 09:33 PM
*Reserve

popmyzit
07-04-2009, 11:28 AM
very interesting idea

crustymusic99
07-08-2009, 10:17 PM
I can't add a new social group - I get an error no calendar specified.

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:

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:

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 :D

psypix
08-16-2009, 11:22 AM
Great mod!

socialgroups_first_event

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.

Thanks in advance for any help or tips!

Verionia
08-19-2009, 01:00 AM
Great, does this work with AME? https://vborg.vbsupport.ru/showthread.php?t=202476

Verionia
08-19-2009, 01:20 AM
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

and group title doesnt show on calendar.

chsmith700
11-21-2009, 08:51 PM
Anyone want to help make this into a Vbulletin 4.0 Mod? I am on the right track I think but cant get it to display for some reason.

Shanj
01-09-2010, 10:34 AM
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.

MrRem
02-12-2010, 09:02 AM
Works fine.
GREAT addition

bgg
02-17-2010, 01:35 AM
Is there a Social Group Calendar mod for CMS 4.0 or is it built in somewhere that I just can't find it? Sounds like an obvious need and with the RSVP it can replace meetup.com - which is my goal.

Any input welcome.
James

Farcaster
03-04-2010, 05:26 AM
Anyone want to help make this into a Vbulletin 4.0 Mod? I am on the right track I think but cant get it to display for some reason.

Is there a Social Group Calendar mod for CMS 4.0 or is it built in somewhere that I just can't find it? Sounds like an obvious need and with the RSVP it can replace meetup.com - which is my goal.

Any input welcome.
James

Hello, all. I am finishing up the updates to this mod and will be posting a vb4 version very soon. I am also planning on creating a CMS widget for the front page that will show members events from social calendars that they are a member of.

theparentpack
04-15-2010, 10:14 AM
I have installed, edited the two files, uploaded them. Then I edited the templates, and configured. Now when I try to view or add an event I get the permissions error. How can I fix this?:

Tina, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


Also, in the admincp when I go into my calendar manager and edit I get this vB database error, however, the changes I made are saved:

Database error in vBulletin 3.8.2:

Invalid SQL:

SELECT eventid, userid, event.title, recurring, recuroption, dateline_from, dateline_to, event.calendarid, IF (dateline_to = 0, 1, 0) AS singleday, customfields,
dateline_from AS dateline_from_user, dateline_to AS dateline_to_user, utc, dst , event.socialgroupcalendar, sg.name as socialgroupname
FROM event AS event
INNER JOIN calendar AS calendar USING (calendarid)
LEFT JOIN (SELECT groupid, name FROM socialgroup) sg ON sg.groupid = event.socialgroupcalendar
WHERE ((dateline_to >= 1271157014 AND dateline_from < 1274008214) OR (dateline_to = 0 AND dateline_from >= 1271157014 AND dateline_from <= 1274008214 ))
AND visible = 1
AND calendar.options & 512
ORDER BY dateline_from;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT groupid, name FROM socialgroup) sg ON sg.groupid = event
Error Number : 1064
Request Date : Thursday, April 15th 2010 @ 07:10:14 AM
Error Date : Thursday, April 15th 2010 @ 07:10:14 AM
Script : http://sonoma.ca.theparentpack.org/forums/admincp/admincalendar.php?do=update
Referrer : http://sonoma.ca.theparentpack.org/forums/admincp/admincalendar.php?do=edit&c=1
IP Address : XXXXXXXXXX
Username : Tina
Classname : vB_Database
MySQL Version : 4.0.27-max-log


Even when I disable the mod, I get the permission error. What can I do to fix these two issues?

theparentpack
04-15-2010, 10:29 AM
sorry accidental double post.

|Jordan|
10-13-2010, 10:30 PM
I did all the edits but when a member of the group tries to post an event (Allow Members to Post Events is enabled in group options) they get a permission denied message. How do i fix this?

chrisbeau
02-22-2011, 07:41 PM
When I try to import this the main page on the admincp goes white, tried disabling the hooks and it made no difference.

viper357
06-21-2011, 10:28 AM
I have installed, edited the two files, uploaded them. Then I edited the templates, and configured. Now when I try to view or add an event I get the permissions error. How can I fix this?:

Tina, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

I did all the edits but when a member of the group tries to post an event (Allow Members to Post Events is enabled in group options) they get a permission denied message. How do i fix this?
I managed to solve this problem.


Go to template "socialgroups_events"
Find the 4th line down, the code that starts with this <if condition="$show[new_event_button]"> and ends with |</if>
Change it to this <if condition="$show[new_event_button]"><a id="add_event_link" class="smallfont" href="calendar.php?do=add&type=single&c=$calendarid">$vbphrase[new] $vbphrase[event]</a> |</if>


Woks fine for me on 3.8.5

Thanks Farcaster.

ywwz
03-12-2012, 02:57 AM
can someone do the same thing for version 4.x?