vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Event Attendance 2.0 (https://vborg.vbsupport.ru/showthread.php?t=93782)

arpy 08-06-2005 10:00 PM

Event Attendance 2.0
 
This is an update version of the vB 3.0x "Event Attendance" hack found HERE. Thanks to Kentaurus for allowing redistribution.

I have rebuild/rewritten the hack for vB 3.5 - now it is no longer a hack but a plugin. No template modifications and no code modifications required.

This plugin allows users to enroll for events. When a new event is created, the user can decide if this feature is available for this event.

This plugin includes (from the 3.0x Version and Thread):



  • Links to userprofile (by buro9)
  • Counter for enrolled users (by Sanni)
  • and most (all?) fixes from old version
  • no additional queries! (for reading, if you enroll/cancel there is one additional query)

It does not include (from the old thread):
  • Fix for reoccuring events (complete redesign needed)
  • Addon for guest-count (I don't need this, feel free to re-add)

Additional Features:
  • Event Attendance can be deactivated for reoccuring events (see Options in AdminCP)
  • Enroll/Cancel can be deactivated for events that are already started (AdminCP)
  • Sorting of enrolled people can be switched via AdminCP
  • All text is now in phrases

Installation:
  • Go to ACP/ Plugin System/ Manage Products.
  • Click Add/Import Product, select the product XML File you downloaded here and click Import.
  • Thats all - Have fun!

Known Problems:
  • calendar_roll and calendar_rollbit templates are not cached. I've not found a way to do this by using a plugin. But this is not really an issue.
  • Aug. 24th: Bug found by endquote in post#36: Typo in var name, this will cause Event enrollment to be disable at the wrong time (depending on time zome). Will be fixed in next release.

If you upgrade from 3.0x:
  • This plugin is fully database compatible to the old hack, if you upgrade no data will be lost.
  • You need to revert your calendar templates: calendar_showeventsbit, calendar_roll and calendar_rollbit.
  • If you do not want to revert your calendar_weekly_event and calendar_monthly_event please use "Mark enrolled in month/weekly view"=NO in Event Attendance Options to avoid event to be marked twice ("*").
Feature Requests:
I list the feature requests here - this does not mean that I will code it. If you are a coder feel free to code it and release it as addon or allow me to include it here.

  • Change text after event is over. (Post #21) (very likely)
  • "It would be better if the plugin wouldn't let you add yourself after it's ended rather than started." (Post #35) (very likely)
  • "Another suggestion would be to have an admin option to just set all events to have the attendance functionality, rather than providing an option when posting." (Post #35) (very likely)
  • List of attended events in User Profile (Post #11) (maybe later)
  • CVS-Export of attending users (Post #8) (unlikely)
Aug. 15th: Beta-Tag removed, no code changes.

Please click INSTALL if you like this plugin.

bigcurt 08-07-2005 12:47 PM

Good job bud

~Curt

FleaBag 08-07-2005 02:03 PM

Excellent - I was hoping this would get a conversion. Thanks a lot! :)

Edit: I'm getting an invalid event specified error if I try to edit an event and enable enrolling.

arpy 08-07-2005 02:37 PM

Quote:

Originally Posted by FleaBag
I'm getting an invalid event specified error if I try to edit an event and enable enrolling.

Could you give me the exact errormessage and a way to reproduce this error - I tried it, but everything is working here...

arpy

FleaBag 08-07-2005 02:42 PM

Hi there!
Sorry I should have been clearer before!

I can sucessfully edit the event, but afterwards when I click on the "I will be attending this event" link on the event page, I get the following error.

"Invalid Event specified. If you followed a valid link, please notify the administrator"

http://dragonninja.co.uk/world/invalidevent.jpg

arpy 08-07-2005 02:49 PM

Quote:

Originally Posted by FleaBag
"Invalid Event specified. If you followed a valid link, please notify the administrator"

You had the 3.0x Version installed before? Please revert the Templates as stated in the first post. In this case, at least the calendar_rollbit *** template is not reverted.

You can see this in the "I will attend"-Link:
http://example.com/calendar.php?do=g...=attend&e=1069
If there is no "do=getinfo" in the link, then you are using the old template. I had to change the links in order to use a hook.

arpy

***Edit: Sorry, it is the calendat_roll Template - not the calendar_rollbit

FleaBag 08-07-2005 10:17 PM

Thanks arpy, it solved the problem. I've been working from a new style since the 3.5. upgrade, but I was viewing the site through the old one [for stylesheet purposes - the child of the new style]. All reverted and working.

I'm not able to enroll in an event that occurs on today's date. Is that intentional?

RMS-Chef 08-08-2005 03:59 AM

No idea how tough it would be but I think a great addition to this would to be able to export an event's attending roster to a CSV or Excel file. In a perfect world the users profile info to be exported could be ACP selectable. So you could get an output something like:
Code:

RMS-Chef,whatever@hotmail.com,http://userswebpage.com
JohnDoe,jd@yahoo.com,http://yahoo.com


arpy 08-08-2005 05:11 AM

Quote:

Originally Posted by FleaBag
I'm not able to enroll in an event that occurs on today's date. Is that intentional?

Yes, its a feature: You cannot enroll for an event that is already started. You can switch this feature in AdminCP (late enroll).

@RMS-Chef: Everything is possible but my time is limited. I only will add features if there is a huge request and/or I can use the feature for my board and/or sb else is doing the coding ;)

arpy

FleaBag 08-08-2005 06:50 PM

Ah cool, glad you have late enroll in there!

Benj 08-08-2005 06:57 PM

::request::

events im attending in profile?

would you be able to code this ?

arpy 08-08-2005 08:09 PM

Quote:

Originally Posted by benj
::request::

events im attending in profile?

would you be able to code this ?

Able? Yes. However I have no time for this at the moment and I don't want to promise anything. I added it to the "feature requests" in the plugin description.

arpy

Vindicare 08-09-2005 09:52 AM

Doesn't work at all for me.

Installed it without problems on a 3.5 RC2, reverted all templates twice and re-installed the hack thrice.
Checked all the options and even the usergroup permissions if there is some hidden "unlock-option"... but still I simply don't get the checkbox to create events (being in the newthread.php).

arpy 08-09-2005 12:47 PM

Quote:

Originally Posted by Vindicare
Checked all the options and even the usergroup permissions if there is some hidden "unlock-option"... but still I simply don't get the checkbox to create events (being in the newthread.php).

Maybe you tried to create a reoccuring event? Go to your AdminCP, vbulletin options, event attendance and enable "Enroll reoccuring events".

butty 08-10-2005 02:25 AM

hi there i installed this after id installed the post event to a forum plugin here

https://vborg.vbsupport.ru/showthread.php?t=93308

now that seemed to install fine and worked but afterwards i put on this plugin and it all seemed to go ok etc. but when i add a event and check that box. when you view the event you dont get the option to add yourself as an atendee to it. any ideas guy?

thanks in advance :)

arpy 08-10-2005 08:13 AM

Quote:

Originally Posted by butty
hi there i installed this after id installed the post event to a forum plugin here

https://vborg.vbsupport.ru/showthread.php?t=93308

I don't know exactly how the other plugin works - but taken from the description:
  • "Links to event details are redirected to the thread."
If this means, that you cannot view an event with "calendar.php" because you are redirected to the according thread, then this means that my product has no chance to display anything in the event details. When the event details are copied to the thread, the event attendance information is not copied.

If I'm wrong: Please provide me a link to your forum where I can see both plugins.

arpy

ricker 08-10-2005 06:38 PM

Looking back at this thread I realize I never posted to say the install went perfectly and the plugin works great! Thanks!

Zachariah 08-13-2005 11:57 PM

Quote:

Originally Posted by arpy
Known Problems:
calendar_roll and calendar_rollbit templates are not cached. I've not found a way to do this by using a plugin. But this is not really an issue.

Fix:

add Plugin: Event Attendance - Cache Templates
Hook Location: cache_templates
Title: Event Attendance - Cache Templates
PHP Code:
Code:

if (THIS_SCRIPT == 'calendar'){
        $globaltemplates  = array_merge($globaltemplates, array('calendar_rollbit','calendar_roll',));
}

Plugin is Active: yes

arpy 08-14-2005 03:43 PM

Quote:

Originally Posted by HarryButt
Fix:

add Plugin: Event Attendance - Cache Templates
[...]
Note: I do not know if this is the perfect way, but it works. Unsure of drawbacks if any.

This is a way but unfortunately one I don't want to go:
With template caching disabled (now), we have 1 additional query when viewing a calendar entry with nobody enrolled or 2 queries, when s.b. is enrolled (2 templates).

With your solution, one every pageview (not only calendar) there is an overhead (1 plugin loaded).

If s.b. really has perfomance issues with his vb, he should consider including the templates in calendar.php (which would be a hack, not a plugin).

But as written in the release text, I don't think that 1 or 2 uncached templated are a problem.

poolking 08-14-2005 05:41 PM

/me installed

Bro_Joey_Gowdy 08-14-2005 08:55 PM

Sweet !!

*Rowdy clicks install*

This will be great for my haunted forest this year...

So, when the event passes what happens ?

Will it go from saying "members attending" to "members attended" ?

ohgenki 08-15-2005 08:15 AM

excellent ! keep up the good job, once it goes LIVE i'll install this

arpy 08-15-2005 04:08 PM

Quote:

Originally Posted by Bro_Joey_Gowdy
So, when the event passes what happens ?

Will it go from saying "members attending" to "members attended" ?

Only the link to enroll will disappear.
But I take this as a feature request ;)

arpy

arpy 08-15-2005 04:16 PM

No problems till now and >20 installs - I removed the beta-tag.

arpy

jesus likes pie 08-15-2005 04:45 PM

/me clicks install

Gryphon 08-15-2005 05:43 PM

/me installs
Nice. I would like to see an option in the usergroup Calendar Permissions for "Can enroll in calendar events".

FOZ13 08-16-2005 09:34 PM

Er,

What did i do wrong?

Warning: main(/home/site/forum/admincp/FCKeditor/fckeditor.php): failed to open stream: No such file or directory in /admincp/vbarticles.php on line 29

Warning: main(): Failed opening '/home/site/forum/admincp/FCKeditor/fckeditor.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /admincp/vbarticles.php on line 29

arpy 08-16-2005 10:05 PM

Quote:

Originally Posted by Blackjack
Nice. I would like to see an option in the usergroup Calendar Permissions for "Can enroll in calendar events".

You can do this by modifying the template with IF-Conditions.

arpy 08-16-2005 10:08 PM

Quote:

Originally Posted by FOZ13
Warning: main(/home/site/forum/admincp/FCKeditor/fckeditor.php): failed to open stream: No such file or directory in /admincp/vbarticles.php on line 29

Are you sure that you are in the proper thread? This error message has nothing to do with this plugin - could you please send the url?

Gryphon 08-19-2005 05:15 PM

Quote:

Originally Posted by arpy
You can do this by modifying the template with IF-Conditions.

How would I detect if they are a member of 'any' secondary usergroup?

<if condition="secondary usergroup != zero> allow attendance </if>

I add/remove secondary groups all the time so listing every group number can be quite tedious using

<if condition="is_member_of($bbuserinfo, X) OR is_member_of($bbuserinfo, Y) OR is_member_of($bbuserinfo, Z)"> allow attendance </if>

arpy 08-19-2005 07:48 PM

Quote:

Originally Posted by Blackjack
How would I detect if they are a member of 'any' secondary usergroup?

Never used secondary usergroups here, but I found this hack:
https://vborg.vbsupport.ru/showthread.php?t=90266

It is for 3.0x, but it shows the methods...

FusionHosting 08-22-2005 04:54 PM

That would be a nice feature (an option from the plugin's config) to be able to restrict events to certain secondary usergroups. So when you make it, there's a listing of groups, with checkboxes to select.

endquote 08-24-2005 02:12 AM

When I install the plugin, events now say:
Quote:

There are 0 people enrolled for this event:

Nobody yet
There is no link to say I'm attending it. I am using (and wrote) event forums, but disabled calendar_getday_start, which is the plugin that was redirecting the event page to the thread.

Ideally I'd like to get these plugins working well together.

endquote 08-24-2005 02:42 AM

Note that if I disable the Event Forums plugin, I still don't get a link to say I'm attending.

endquote 08-24-2005 02:51 AM

Ah, I see the problem. It doesn't appear because the event is an all-day event, which means it starts at midnight that day, and since it's started, you can't say you're attending.

It would be better if the plugin wouldn't let you add yourself after it's ended rather than started.

Another suggestion would be to have an admin option to just set all events to have the attendance functionality, rather than providing an option when posting.

endquote 08-24-2005 04:24 AM

Typo:
PHP Code:

$time_until_event=$eventinfo['dateline_from']-(TIMENOW+$vbulletion->userinfo['timezoneoffset']*3600); 

Note "vbulletion".

arpy 08-24-2005 05:22 AM

Quote:

Originally Posted by endquote
Typo:Note "vbulletion".

Congratulations: You are the first one who found a bug!
Ok, this causes an event to be closed for enroll at the wrong time...(depending of your timezone)
Quote:

Originally Posted by endquote
It would be better if the plugin wouldn't let you add yourself after it's ended rather than started.

I will add an option for this.
Quote:

Originally Posted by endquote
Another suggestion would be to have an admin option to just set all events to have the attendance functionality, rather than providing an option when posting.

Ok, also added to the featere requests.
Quote:

Originally Posted by endquote
Ideally I'd like to get these plugins working well together.

What is needed for this:

  • read the event data in the forum thread
  • add the event attendance template output to the posts output
  • ensure that users clicking on "I will be attending" will be redirected to the thread instead of the calendar.
If you need help please PM me!

kdog316 08-24-2005 04:11 PM

awesome hack gonna install it when i get home but one question. Is there a way for it to display more then just the users name. Reason being is i run a ffxi forum and when members say there coming it would be nice if they could enter what job there coming as so we can get an idea as to what jobs are coming and if we can actually do the event with the jobs. But anyways freakin awesome plugin exactly what i need. Now if it can do what i just asked that would be sweet please get back to me thanks.

Bojangles 09-02-2005 06:49 AM

Awesome plugin! Users love it.

dtsrules 09-11-2005 09:54 AM

would it be possible to alter this to use a thread instead of a calendar event? if so, is it just a case of changing the hooks & queries?


All times are GMT. The time now is 04:53 AM.

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.01529 seconds
  • Memory Usage 1,846KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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