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
  #162  
Old 03-06-2005, 06:47 PM
speedracer68 speedracer68 is offline
 
Join Date: Jul 2004
Location: California
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the same question. I installed it this morning and replaced both. For me, it works. I really wish people could add the number of guests they are brinigng.
Reply With Quote
  #163  
Old 03-06-2005, 06:50 PM
speedracer68 speedracer68 is offline
 
Join Date: Jul 2004
Location: California
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I too have the same question.

Larry

Quote:
Originally Posted by joeychgo
Any idea how we could make it so users who are bringing someone can add a +1 or +2 so we get an accurate count?

I have users who might bring a girlfriend or wife (or both ) to an event - but there isnt a way to indicate that they are bringing extras.
Reply With Quote
  #164  
Old 03-06-2005, 09:51 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, I'd never even thought of this before! Sweet...
Reply With Quote
  #165  
Old 03-10-2005, 09:05 AM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by benj
would it be possible to have a section on the users profile page saying what events they will be attending ??

anyone got the coding skills for this, the unicode is in this thread as well so its bassically just a moderate programmer we need now Please
Reply With Quote
  #166  
Old 03-18-2005, 01:07 PM
robert_2004 robert_2004 is offline
 
Join Date: Sep 2004
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i also think this should be updated with some extra features
i've been using for quite some time now, and love it.
Reply With Quote
  #167  
Old 03-20-2005, 03:07 PM
Sarvoth Sarvoth is offline
 
Join Date: Mar 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Having some issues.

When I try to add the hacks to the calendar.php, it is not finding a few of the things you list.

Code:
-------------------------------------------------------------
Find
-------------------------------------------------------------

	eval('print_output("' . fetch_template('calendar_edit') . '");');

-------------------------------------------------------------
Replace it with
-------------------------------------------------------------

        $useroll = iif($eventinfo['useroll'],"checked","");
	eval('print_output("' . fetch_template('calendar_edit') . '");');

-------------------------------------------------------------
Find
-------------------------------------------------------------

		$DB_site->query("
			UPDATE " . TABLE_PREFIX . "event
			SET event = '".addslashes($message) . "',
				recurring = '" . addslashes($pattern) . "',
				recuroption = '" . addslashes($patoptions) . "',
				dateline_from = $dateline_from,
				dateline_to = $dateline_to,
				title = '" . addslashes($title) . "',
				allowsmilies = $allowsmilies,
				customfields = '" . addslashes($customfields) . "',
				utc = '" . addslashes($timezoneoffset) . "'
			WHERE eventid = '$eventid'
		");

-------------------------------------------------------------
Replace it with
-------------------------------------------------------------

		$DB_site->query("
			UPDATE " . TABLE_PREFIX . "event
			SET event = '".addslashes($message) . "',
				recurring = '" . addslashes($pattern) . "',
				recuroption = '" . addslashes($patoptions) . "',
				dateline_from = $dateline_from,
				dateline_to = $dateline_to,
				title = '" . addslashes($title) . "',
				allowsmilies = $allowsmilies,
				customfields = '" . addslashes($customfields) . "',
				utc = '" . addslashes($timezoneoffset) . "',
                                useroll = '$useroll'
			WHERE eventid = '$eventid'
		");


-------------------------------------------------------------
Find
-------------------------------------------------------------

		if (($show['candeleteevent'] OR $show['canmoveevent'] OR $show['caneditevent']) AND !$show['holiday'])
		{
			$show['eventoptions'] = true;
		}

		eval ('$caldaybits .= "' . fetch_template('calendar_showeventsbit') . '";');

-------------------------------------------------------------
Replace it with
-------------------------------------------------------------

		if (($show['candeleteevent'] OR $show['canmoveevent'] OR $show['caneditevent']) AND !$show['holiday'])
		{
			$show['eventoptions'] = true;
		}


                if ($eventinfo['useroll'])
                {
	                // 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') . '";');    
	                        }                       
	                }
                        else
                        {
	                        $eventinfo['roll'] = "";
                        }
                        
                        eval ('$eventinfo[roll] = "' . fetch_template('calendar_roll') . '";');
	                // End Roll
                }
                else
                {
                	$eventinfo['roll'] = "";
                }

		eval ('$caldaybits .= "' . fetch_template('calendar_showeventsbit') . '";');
What am I doing wrong? This file has never been touched before, I am using V 3.0.7.

Any ideas?
Reply With Quote
  #168  
Old 03-20-2005, 03:08 PM
Sarvoth Sarvoth is offline
 
Join Date: Mar 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just noticed the version for this hack Is lower then the recent one.

Any idea if this will ever be updated? Thanks in advance
Reply With Quote
  #169  
Old 03-20-2005, 03:10 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just searched in a clean 3.0.7 calendar.php for the:
PHP Code:
eval('print_output("' fetch_template('calendar_edit') . '");'); 
and i can even find it twice.
Reply With Quote
  #170  
Old 03-20-2005, 03:16 PM
Creed's Avatar
Creed Creed is offline
 
Join Date: May 2002
Location: The Matrix
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible this could be modified to keep track of who does show up at the events? So we have a list of people who did attend, and the people who were no-shows? This would be awesome for my site, as we have gaming events.
Reply With Quote
  #171  
Old 03-22-2005, 11:47 AM
James Goddard James Goddard is offline
 
Join Date: Dec 2004
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by joeychgo
Any idea how we could make it so users who are bringing someone can add a +1 or +2 so we get an accurate count?

I have users who might bring a girlfriend or wife (or both ) to an event - but there isnt a way to indicate that they are bringing extras.
Yea, I just coded this up for another board. Here you go:

calendar_roll template:

Find
PHP Code:
<else />
[<
a href="calendar.php?$session[sessionurl]do=attend&e=$eventinfo[eventid]">I will be attending this event</a>]
</if> 
Replace with
PHP Code:
<else />
<
form action="calendar.php" method="post">
<
input type="hidden" name="do" 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> 
calendar.php:

Find
PHP Code:
$roll[$bbuserinfo['userid']] = $bbuserinfo['username']; 
Replace with
PHP Code:
$info $bbuserinfo['username'];
$guests intval$_REQUEST['guests']);
if (
== $guests)
$info .= ' (' $guests ' guest)';
else if (
$guests 0)
$info .= ' (' $guests ' guests)';
$roll[$bbuserinfo['userid']] = $info
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 10:58 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.05820 seconds
  • Memory Usage 2,335KB
  • 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
  • (5)bbcode_php
  • (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
  • (1)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