Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Event Attendance 2.0 Details »»
Event Attendance 2.0
Version: 2.00, by arpy arpy is offline
Developer Last Online: Mar 2014 Show Printable Version Email this Page

Version: 3.5.0 RC2 Rating:
Released: 08-06-2005 Last Update: Never Installs: 427
DB Changes Uses Plugins
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #122  
Old 01-24-2006, 09:23 PM
mhuckaby's Avatar
mhuckaby mhuckaby is offline
 
Join Date: May 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I just figured it out. You cannot create an event that occurs on the day you create it. This plug-in I guess assumes that it's too late for people to sign-up. I created a new event at a future date and it works!

Thanks
Reply With Quote
  #123  
Old 01-26-2006, 01:47 AM
:Judge:'s Avatar
:Judge: :Judge: is offline
 
Join Date: Jan 2003
Location: USA ~ MD
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by magnus
Simple. I've done this on my forum.

AdminCP -> Plugin System -> Plugin Manager

Find "Event Attendance - add enroll to create form" and click [Edit]

Replace with:
Code:
if (($type!='recur') OR (($type=='recur') AND ($vbulletin->options['enroll_reoccur']))) {

$disablesmiliesoption.='<div><label for="cb_rollcall"><input type="checkbox" name="useroll" value="1" id="cb_roll" tabindex="3" '.$useroll.'  checked />'.$vbphrase['roll_allowenroll'].'</label></div>';

}
This will default to checked.
Thank You much
Reply With Quote
  #124  
Old 01-27-2006, 01:51 PM
benzz0 benzz0 is offline
 
Join Date: Mar 2005
Location: Virginia
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice...Thanks!
Reply With Quote
  #125  
Old 01-28-2006, 04:36 AM
Vtec44 Vtec44 is offline
 
Join Date: Jan 2005
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to allow Mod/Admins to remove people out from the list?
Reply With Quote
  #126  
Old 02-01-2006, 02:56 PM
Gizmo999 Gizmo999 is offline
 
Join Date: Dec 2005
Location: In my own virtual world
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've applied James hack below but I can't now edit an event, clicking the edit button submits me as attending member

I'm working round it by running a testing template without the calendar roll template submit form hack, is there any other way of doing it??


Quote:
Originally Posted by James Goddard
I had PM'd arpy asking him to include this with the module but he seems to be AWOL.

Here is how you can add guests to this hack after it is installed:

calendar_roll template:

Find
PHP Code:
<else />
[<
a href="calendar.php?$session[sessionurl]do=getinfo&amp;ea=attend&amp;e=$eventinfo[eventid]">$vbphrase[roll_enroll]</a>]
</if> 
Replace with
PHP Code:
<else /> 
<
form action="calendar.php" method="post"
<
input type="hidden" name="do" value="getinfo" /> 
<
input type="hidden" name="ea" value="attend" /> 
<
input type="hidden" name="e" value="$eventinfo[eventid]/> 
[
I will be attending this event with <input type="text" name="guests" value="0" size=/> guests. <input type="submit" value="Submit" />] 
</
form
</if> 
Event Attendance - show/enroll plugin:

Find
PHP Code:
$roll[$vbulletin->userinfo['userid']] = $vbulletin->userinfo['username']; 
Replace with
PHP Code:
$info $vbulletin->userinfo['username']; 
$guests intval$_REQUEST['guests']); 
if (
== $guests
$info .= ' (' $guests ' guest)'
else if (
$guests 0
$info .= ' (' $guests ' guests)'
$roll[$vbulletin->userinfo['userid']] = $info
Reply With Quote
  #127  
Old 02-03-2006, 07:34 AM
:Judge:'s Avatar
:Judge: :Judge: is offline
 
Join Date: Jan 2003
Location: USA ~ MD
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gizmo999
I've applied James hack below but I can't now edit an event, clicking the edit button submits me as attending member

I'm working round it by running a testing template without the calendar roll template submit form hack, is there any other way of doing it??
I am also in the same boat as you, I cannot delete, move or edit. When I click "Go" nothing happens.
Reply With Quote
  #128  
Old 02-15-2006, 08:05 PM
finn snor finn snor is offline
 
Join Date: Jan 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love this,

Is there a way to show a list of events a user has enrolled on the users profile ?
Reply With Quote
  #129  
Old 02-15-2006, 08:54 PM
MythoLogy's Avatar
MythoLogy MythoLogy is offline
 
Join Date: Mar 2003
Location: Kansas, USA
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*click installs - perfect for creating activity and building reputation for guild prizes, etc.
Reply With Quote
  #130  
Old 02-18-2006, 10:34 AM
htscpl's Avatar
htscpl htscpl is offline
 
Join Date: Sep 2003
Location: Houston
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe I missed a fix but I keep getting an error message when I try to upload the xml file
Quote:
XML Error: xml processing instruction not at start of external entity at Line 1
Any idea on what I need to do to fix this?

Thanks for you help.

Henry
Reply With Quote
  #131  
Old 02-23-2006, 04:18 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will there be an update for vb 3.5.3 for this great hack?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05670 seconds
  • Memory Usage 2,329KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete