Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Event attendance Details »»
Event attendance
Version: 1.00, by Kentaurus Kentaurus is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 04-04-2004 Last Update: Never Installs: 164
 
No support by the author.

Request by: DaveLogic

With this hack when you create an event you can give the users an option to "register" to the event. Then you can view which people have registered to that event.

This could be used so you create an event and then other people notify that they will be attending to the event. You can then keep track of all the people that would be attending each event.

Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.

Show Your Support

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

Comments
  #112  
Old 10-16-2004, 12:06 PM
bendigo-tech bendigo-tech is offline
 
Join Date: Aug 2004
Location: Australia
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent hack. I have just installed it.

Thanks a lot.
Reply With Quote
  #113  
Old 10-20-2004, 10:38 AM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SamirDarji
I think this would be a good idea if the project is abandoned. I'd definitely like to be one of the coders for the revised version since my site so heavily relies on this hack. Any improvements and additions benefit me greatly and I'm willing to do my part to give back to the community.
what revised! yeah i kinda agree and like you my site relies on this hack and the feature i wanted developed (events in profile) so i take it this isnt going to be done soon then
Reply With Quote
  #114  
Old 10-20-2004, 04:45 PM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would work on it, but I've got work on my site I have to do first. I like the feature too, but it's not a priority at the moment. The SQL query is a good chunk of the work. Now the appropriate php files and templates that generate the profile need to be changed and tested.
Reply With Quote
  #115  
Old 10-25-2004, 09:10 AM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what site do you use these on if you dont mind me asking
Reply With Quote
  #116  
Old 10-25-2004, 04:22 PM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My new site url is www.huntsvillecarscene.com, but I haven't start putting it out there as a replacement to hsv.streetracing.org since the old site still has more content.
Reply With Quote
  #117  
Old 10-26-2004, 04:30 AM
Sanni Sanni is offline
 
Join Date: Aug 2002
Location: Australia
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by D|ver
is it possible to show the number of attendees of an event next to the event titel on forumhome where the next events are shown?

can somebody help me with this?

that would be really great
I got this working by modifying calendar.php

find
Code:
if ($eventinfo['useroll']) { 
  unset($rollbits);
                
	                // Roll for this event
	                $show['userattending'] = false;
	                if (($roll = @unserialize($eventinfo['roll'])) && is_array($roll))
	                {
	                        if (array_key_exists($bbuserinfo['userid'], $roll))
	                        {
	                                $show['userattending'] = true;
	                        }

	                        foreach ($roll as $rollusername)
	                        {
	                                eval ('$rollbits .= "' . fetch_template('calendar_rollbit') . '";');
	                        }
	                }
and replace with:

Code:
         $rollcount=0;
if ($eventinfo['useroll']) { 
  unset($rollbits);
                
	                // Roll for this event
	                $show['userattending'] = false;
	                if (($roll = @unserialize($eventinfo['roll'])) && is_array($roll))
	                {
	                        if (array_key_exists($bbuserinfo['userid'], $roll))
	                        {
	                                $show['userattending'] = true;
	                        }

	                        foreach ($roll as $rollusername)
	                        {
	                                eval ('$rollbits .= "' . fetch_template('calendar_rollbit') . '";');
	                                $rollcount++;
	                        }
	                }
then edit calendar_roll template and add

Code:
There are currently $rollcount Participants enrolled in this event.
to whereever you want it to be displayed.
Reply With Quote
  #118  
Old 10-26-2004, 01:25 PM
D|ver's Avatar
D|ver D|ver is offline
 
Join Date: Feb 2003
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow thanks so much it is working without any problems

but how can i now insert the $rollcount number in the forumhome, where the upcoming events are listed.
i want to have this number right after each event, if possible

i tried it by adding the variable into the forumhome_event template, but without success...
can somebody help?
Reply With Quote
  #119  
Old 10-26-2004, 09:01 PM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To be able to use that variable outside the calendar templates, you'll have to find a way to execute the php code that generates the information behind $rollcount. If not, the variable will be empty. I'd look into the forum.php file and see how the upcoming events are generated. You'll probably have to add a lot since it doesn't even do the roll count there at all.
Reply With Quote
  #120  
Old 10-27-2004, 07:05 PM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've run across something I'd find useful. After an event has passed, wouldn't it be nice if the "I will be attending/not be attending" option goes away. So people can't change the list after an event and you can see who planned on coming.
Reply With Quote
  #121  
Old 10-29-2004, 09:46 AM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SamirDarji
I've run across something I'd find useful. After an event has passed, wouldn't it be nice if the "I will be attending/not be attending" option goes away. So people can't change the list after an event and you can see who planned on coming.
Or change the text to "I attended" rather than "I will be attending"?

As that will then keep a list of who was where, etc... and I think should still be editable as if someone cancelled last minute they could remove themselves... just as those who might attend last minute could add themselves
Reply With Quote
Reply


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 12:17 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.05001 seconds
  • Memory Usage 2,312KB
  • 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
  • (3)bbcode_code
  • (3)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