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
  #22  
Old 04-06-2004, 02:43 PM
PranK PranK is offline
 
Join Date: Apr 2003
Location: Sydney, Aus
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChurchMedia
Quick request: I'd like the attendee's user names to link to their profiles -- so members can easily contact each other. Is that a hard mod?

Again, great hack!
would be very easy to do.. but i dont want to modify and display code thats not mine.

I'll leave it to the hacker to mod/display.

Christian
Reply With Quote
  #23  
Old 04-06-2004, 08:35 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kentaurus
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.
This is a fantastic hack, and I've installed straight away.

Done a few modifications locally and if the author wants me to post them, just nod I don't like stomping on others hacks beyond giving support... these are features though so let me know if you want them.

The changes I've done are:
* Case in the event template to prevent guests from adding attendance (Google Spiders).
* Sorted the $roll array using natural sorting to make it more readable when it's large
* Add links through to the member profile page of the members in the $rollbits
* Corrected the HTML label in the edit template so that it functions

Erm, think that's all. Nothing too difficult as you've done such a stunning job already
Reply With Quote
  #24  
Old 04-09-2004, 02:42 AM
WreckRman2 WreckRman2 is offline
 
Join Date: Dec 2001
Location: Indianapolis, IN
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by buro9
This is a fantastic hack, and I've installed straight away.

Done a few modifications locally and if the author wants me to post them, just nod I don't like stomping on others hacks beyond giving support... these are features though so let me know if you want them.

The changes I've done are:
* Case in the event template to prevent guests from adding attendance (Google Spiders).
* Sorted the $roll array using natural sorting to make it more readable when it's large
* Add links through to the member profile page of the members in the $rollbits
* Corrected the HTML label in the edit template so that it functions

Erm, think that's all. Nothing too difficult as you've done such a stunning job already
I'd like to see those changes if you don't mind as I am trying to do most of those already. Could you email them to "removed".
Reply With Quote
  #25  
Old 04-09-2004, 07:11 AM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by IndyWebDesign
I'd like to see those changes if you don't mind as I am trying to do most of those already.
Several people have asked, and I had already sent them to one person, so I'll put them here, and if the hack author objects I'll remove them.

This is what I sent to the first person that asked:

In calendar.php the block of code you would have adjusted following:
PHP Code:
if (($show['candeleteevent'] OR $show['canmoveevent'] OR $show['caneditevent']) AND !$show['holiday']) 
I have this:
PHP Code:
    // HACK : START : ATTEND
    //if (($show['candeleteevent'] OR $show['canmoveevent'] OR $show['caneditevent']) AND !$show['holiday'])
    //{
    //  $show['eventoptions'] = true;
    //}
    //
    //eval ('$caldaybits .= "' . fetch_template('calendar_showeventsbit') . '";');

    
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)) {
        
uasort($roll"strnatcasecmp");
        if (
array_key_exists($bbuserinfo['userid'], $roll)) {
          
$show['userattending'] = true;
        }
        while (
$rollusername current($roll)) {
           
$rolluserid key($roll);
           eval(
'$rollbits .= "' fetch_template('calendar_rollbit') . '";');
           
next($roll);
        }
      } else {
        
$eventinfo['roll'] = "";
      }

      eval (
'$eventinfo[roll] = "' fetch_template('calendar_roll') . '";');
      
// End Roll
    
} else {
      
$eventinfo['roll'] = "";
    }

    eval (
'$caldaybits .= "' fetch_template('calendar_showeventsbit') . '";');
    
// HACK : END : ATTEND 
And then the calendar_rollbit becomes:
Code:
<li><a href="member.php?u=$rolluserid">$rollusername</a></li>
And the calendar_roll becomes:

Code:
<p><strong>People attending this event</strong>:</p>
<if condition="$rollbits">
<ul>
$rollbits
</ul>
<else />
<p><i>Nobody yet!</i></p>
</if>

<if condition="$bbuserinfo[userid] > 0">
<if condition="$show[userattending]">
	[<a href="calendar.php?$session[sessionurl]do=unattend&e=$eventinfo[eventid]">I will no longer be attending this event</a>]
<else />
	[<a href="calendar.php?$session[sessionurl]do=attend&e=$eventinfo[eventid]">I will be attending this event</a>]
</if>

</if>
Finally... find and correct the label title for the checkbox in the calendar_edit template... it should be:
Code:
<div><label for="cb_roll"><input type="checkbox" name="useroll" value="1" id="cb_roll" tabindex="3" $useroll />Allow users to specify that they will be attending this event.</label></div>
Some of that may not work in old versions of PHP, you'll have to try it and see
Reply With Quote
  #26  
Old 04-09-2004, 08:32 PM
WreckRman2 WreckRman2 is offline
 
Join Date: Dec 2001
Location: Indianapolis, IN
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! Could you edit your post and take out my email? I edited mine because if not I'll get blasted with spam.
Reply With Quote
  #27  
Old 04-09-2004, 08:48 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! Thank you, thank you, thank you!
Reply With Quote
  #28  
Old 04-15-2004, 07:57 AM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kentaurus
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.

There is a small bug, here is the description and fix for it.

If you have multiple events on the same day using the event attendance hack, and then view the day via the calendar... which lists all events on that day.

In this scenario the roll from event 1 is added to event 2, and 1 + 2 are added to event 3.

This occurs because a loop in calendar.php does not unset the rollbits HTML each time it starts processing a new event.

The fix is to find within calendar.php this:
PHP Code:
if ($eventinfo['useroll']) { 
And change it to this:
PHP Code:
if ($eventinfo['useroll']) {
  unset(
$rollbits); 
This will nuke the variable that contains the HTML of the rollbits from the last event, thus ensuring that attendees aren't appearing at events that they didn't mark themselves as attending.

Cheers

David K
Reply With Quote
  #29  
Old 04-15-2004, 10:24 AM
Hugme1 Hugme1 is offline
 
Join Date: Apr 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ihave one problem.

I have completely no idea at all how to create templates that are need.

All help I have found so far, don't actually tell u how to do it.

IE the

################################################## ###########
# New template: calendar_roll
################################################## ###########

and

################################################## ###########
# New template: calendar_rollbit
################################################## ###########
Reply With Quote
  #30  
Old 04-15-2004, 11:08 AM
DaveLogic DaveLogic is offline
 
Join Date: Jun 2003
Location: London
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hugme1
Ihave one problem.

I have completely no idea at all how to create templates that are need.

All help I have found so far, don't actually tell u how to do it.

IE the

################################################## ###########
# New template: calendar_roll
################################################## ###########

and

################################################## ###########
# New template: calendar_rollbit
################################################## ###########
Vbulletin Admin > Styles & Templates (lefthand side nav) > Change All style options to Add Template > Type in template name (i.e calendar_roll) > Copy & paste html from txt file in and SAVE....
Reply With Quote
  #31  
Old 04-15-2004, 07:35 PM
Hugme1 Hugme1 is offline
 
Join Date: Apr 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now the only problem i have is the 2 PHP files won't work

I have had to upload the original version

DOH!!!!

Just ignore me, I'm was having a blonde moment
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 07:41 PM.


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.05432 seconds
  • Memory Usage 2,341KB
  • 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
  • (4)bbcode_php
  • (6)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