vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Social Group and Album Enhancements - Social Group Calendars (https://vborg.vbsupport.ru/showthread.php?t=203352)

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/cale...&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/cale...ype=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.

Quote:

Originally Posted by Wayne Luke (Post 1794243)
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 :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

Quote:

Originally Posted by chsmith700 (Post 1918548)
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.

Quote:

Originally Posted by bgg (Post 1984252)
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/f....php?do=update
Referrer : http://sonoma.ca.theparentpack.org/f...hp?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

Quote:

Originally Posted by theparentpack (Post 2021589)
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.

Quote:

Originally Posted by |Jordan| (Post 2109916)
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=$calendari d">$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?


All times are GMT. The time now is 01:37 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
  • Page Generation 0.01244 seconds
  • Memory Usage 1,777KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete