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!


All times are GMT. The time now is 07:21 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.01315 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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