![]() |
Social Group Calendars
1 Attachment(s)
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:
Follow the installation instructions available here: https://vborg.vbsupport.ru/showthread.php?p=1999324 Revision Log
None at this time. |
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.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): PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
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: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Upload the modified files to the appropriate directory in your forum. Step Six ? Edit Template: socialgroups_form 1. Find the following: HTML Code:
<vb:if condition="$show['enable_group_messages']"> HTML Code:
<li> Note: You can adjust the placement of the event block to your liking by changing the positioning in the socialgroups_group template. 1. Find the following: HTML Code:
</vb:if><vb:comment>$show['groupinfo']</vb:comment> HTML Code:
<br/>{vb:raw socialgroups_events}<br/> Step Eight ? Edit Template: calendar_edit 1. Find the following: HTML Code:
<h2 class="blockhead">{vb:raw pagetitle}</h2> HTML Code:
{vb:raw socialgroup_dropdown} Step Nine? 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. |
wow thx we needed this for the normal calender !!
Can you fix that ? |
Quote:
|
Quote:
thx |
Cindy,
This doesn't add any functionality to the calendar other than the tie in with social groups, so no, if your site doesn't use social groups, this mod will not do anything for you. |
This hack doesn't show events on the main calendar unless the member is in the group in which the event is for, correct? Is there a way to make it so everyone can see the event regardless of if they are in the group or not on the main calendar?
|
Quote:
|
Will this work with vb 3.8.4? Or do you have a version that does? I have installed your RSVP system on 3.8.4 and it works well, but I am hoping to add calendar functionality to social groups AND the RSVP system, THAT would work VERY well on our forum!
|
Installed,
|
Can I get a screenshot?
|
Hi,
in my groups I get the Message "This group currently has no upcoming events within the next 15 days." Where do I have to edit to change that period? It would be nice to have it variable on a per-group basis. As we have some groups with a lot of events, there the 15 days is fine. then there are others with very few ones where I would like to increase it to 3-6 months .. great mod so ... thx |
Quote:
|
How Can I add upcoming events in the next 30 days under forum here's a picture, so the events would be posted onto a forum board and like this.
https://vborg.vbsupport.ru/ |
Erm, wow. Seems like exactly what I was looking for.
Tagged and can't wait to install. |
If you don't want invite only events showing up in forums (they already are hidden in calendar) this is a quick mod I made.
Note on one problem: The count for this forum will be off. There's no way I've found to get around it - hook_query_where won't work with COUNT(*) since it's joining tables. Disclaimer: This has only been tested on vb 4.1 Hook: forumdisplay_query_threadid Code:
global $vbulletin; |
Does it works with 4.1.2?
|
Hi,
Is it possible to add the functionality to vote on events? Ie what time to have a certain event at? Thanks |
can any one confirm if this addon worked perfect in vb 4.1.4+
|
Working on 4.1.5
|
i have tis error would anybody have any ideas ?
Database error in vBulletin 4.1.5: Invalid SQL: SELECT event. sg.name as socialgroupname, *, user.username, IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid, user.adminoptions, user.usergroupid, user.usertitle, user.membergroupids, user.infractiongroupids, IF(options & 8192, 1, 0) AS hasaccessmask, IF(dateline_to = 0, 1, 0) AS singleday , subscribeevent.eventid AS subscribed ,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline, customavatar.width AS avwidth,customavatar.height AS avheight, customavatar.width_thumb AS avwidth_thumb, user.avatarrevision, customavatar.height_thumb AS avheight_thumb, customavatar.filedata_thumb, NOT ISNULL(customavatar.userid) AS hascustom FROM vb_event AS event LEFT JOIN vb_user AS user ON (user.userid = event.userid) LEFT JOIN vb_socialgroupmember sgm ON sgm.userid = 01 AND sgm.groupid = event.socialgroupcalendar LEFT JOIN (SELECT groupid, name FROM vb_socialgroup) sg ON sg.groupid = event.socialgroupcalendar LEFT JOIN vb_subscribeevent AS subscribeevent ON (subscribeevent.eventid = event.eventid AND subscribeevent.userid = 1) LEFT JOIN vb_avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN vb_customavatar AS customavatar ON(customavatar.userid = user.userid) WHERE calendarid = 1 AND ((dateline_to >= 1312113600 AND dateline_from < 1320148800) OR (dateline_to = 0 AND dateline_from >= 1312113600 AND dateline_from <= 1320148800 )) AND event.visible = 1 AND (event.socialgroupcalendar = 0 OR sgm.groupid IS NOT NULL OR 1=1 ) 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 '*, user.username, IF(user.displaygroupid = 0, user.usergroupid, user.displaygr' at line 1 Error Number : 1064 |
I have this on 4.1.7 and it says no calendar specified. I am unsure where to go to fix this. I have added a calendar but not sure how to associate it to the group
|
I have found one issue that I am administrator I can not click add event from inside the group it says i do not have permission. But if i go to calendar I can edit and add events.
|
Developer...I have emailed you and wrote to see if you can help. I have problem with it and need help. I installed and gives error. Please let me know . I am willing to pay.
|
Installed on 4.1.10. Works great. I think. I am still in process of building my alpha forum, but all looks good with one group. I found in the xml where to change the color of teh calendar icon on the groups page. Is there a way ti set that to use a stylevar?
Also, is the a way to make the events section on the group page to have the same look and feel as the "Group Photos" section? my current example http://alpha.bmw2002faq.com/group.php?groupid=1 thanks, steve k |
Dunno what I'm doing wrong, but I'm trying to add this to a clean vB4 install and it's not working. Calendar.php won't load at all.
Maybe my code editing skills are weak (I've tried a half dozen times now). Anyone got copies of the correctly edited files and templates I could just use as-is, since it's a clean vB4 install? (Edit - ah, I see the developer hasn't posted to this thread in nearly 2 years.) |
tooooo many editing...
|
Calendar
Set this to the calendar ID that social group events should be saved in. Social Group Members will still need to be in a user group that has access to the calendar to be able to view event details or add events, so be sure to setup the desired security (It is planned in the future to allow more than one calendar to be configured for Social Group Events) what number should i give this ID? |
installed anyway, very good!!! cool mod!
|
tried on VB 4.2 can't get to work. Getting php error:
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: socialgroups_events in [path]/includes/functions.php on line 4734 |
any update for this great mod???
|
Farcaster,
I see you've been here recently, your insights into developing these Calendar mods is some of the most important work I've found on vB.org. I, unlike most here am pushing the limits of the CMS as native as possible using lots of great mods and NOT using my forums in the traditional manner, more for their RSS abilties to feed my CMS widgets. This is connected to your other mod and another fantastic mod that creates forum posts parallel to the calendars but it is not 4.2.1 ready either... If I can help fund this and future calendar mods I would love to help and I'm sure many others would. There also seems a tendency for smaller mod builders to license their work to the bigger ops...this is a goer... |
Update would be nice....
|
Quote:
|
Is anyone else around who is active and can help me with this?
Admins can post events without an issue, but a nonadmin gets this error on the top of their page Quote:
http://tinypic.com/r/y07sw/8 EDIT: This seems to be affecting her only, but it's weird because it has an error at the top of the page for her. I checked other accounts (same usergroups as her!) and she is the only one having this problem. EDIT 2: We also have a member getting emails anytime a new event is posted in her group. I don't see how to disable this. - This was fixed by subscribing and choosing control panel. By not subscribing it was just emailing anyway. |
Awesome sounding mod, but I have had a number of problems getting it to work with 4.2.2. I assume it's not compatible?
|
All times are GMT. The time now is 01:11 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|