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
  #72  
Old 09-11-2004, 05:08 PM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pseudomizer
By the way: unregistered users can also participate on events. Every user is THE unregistered user and due to this everyone can attend an event, and another user can cancel the attendance for THE unregistered account.

Cheers,
Thank you for pointing this out. I'll add this to the list of stuff I'm going to attempt to fix. This would've actually been a pretty big problem on my site!
Reply With Quote
  #73  
Old 09-13-2004, 04:16 PM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by neroflorida
There appears to be a bug in the software that causes accumulation of data if:
A) Multiple Events Occur On Same Day, and
B) Events Use Roll Call Feature

Example data:

Event #1 -
Actual Roll Call: User1, User2, User3
Displayed Roll Call: User1, User2, User3

Event #2 -
Actual Roll Call: User4
Displayed Roll Call: User1, User2, User3, User4

...

Would appear that the array isn't cleared between cycles? Haven't had a chance to look at the code yet to verify.
I've only run across this problem when you look at all the events in a day at once. If you go to individual events, everything is fine. I suspect you are right about the array not being cleared. Any thoughts on how to fix it? I'm looking into it as I type.
Reply With Quote
  #74  
Old 09-13-2004, 04:21 PM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pseudomizer
By the way: unregistered users can also participate on events. Every user is THE unregistered user and due to this everyone can attend an event, and another user can cancel the attendance for THE unregistered account.

Cheers,
I've found a simple fix for this problem:

In the template calendar_roll, find
PHP Code:
<if condition="$show[userattending]"
and above it add
PHP Code:
<if condition="$bbuserinfo['userid']"
Find
PHP Code:
</if> 
and after it add another
PHP Code:
</if> 
That's what I've found to work so far, but I haven't tested it fully, so let me know if there are any problems.
Reply With Quote
  #75  
Old 09-14-2004, 12:06 AM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I finally figured out a fix for the double listing problem on a day's events listing. Find this:
PHP Code:
// Roll for this event 
and under it add
PHP Code:
unset($rollbits); 
That should do it. I've tested it loosely and it works. Let me know if there are any problems.

I think that addresses the 2 problems that people were having with this otherwise wonderful hack. I hope the author won't mind me posting the fixes I found and I hope they can be incorporated into the next release.
Reply With Quote
  #76  
Old 09-14-2004, 05:55 AM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SamirDarji
I've found a simple fix for this problem:

In the template calendar_roll, find
PHP Code:
<if condition="$show[userattending]"
and above it add
PHP Code:
<if condition="$bbuserinfo['userid']"
Find
PHP Code:
</if> 
and after it add another
PHP Code:
</if> 
That's what I've found to work so far, but I haven't tested it fully, so let me know if there are any problems.
Hello,

this is what i had implemented from day one when i experienced this bug. It worked fine so far until 1 week ago. Now i have 2 problems:

- still have unregistered user on the list of attendees
- users are listed who never clicked on the link

I found out how they bypass our check for userid. They open 2 windows as a user who is not attending the event and sees the link "i want to attend to this event". Then he goes to the second window and logs out of the forum. The cookie is cleared. Then he goes back and clicks the link in the first window which is still there and oleeeeeeeee oleeeeeeeeee you have the user "unregistered user" attend the event. :-(

I haven't found out how they managed now to subscribe other users to an event but i will try to find out this as well.

Cheers,
Reply With Quote
  #77  
Old 09-14-2004, 07:52 AM
neroflorida neroflorida is offline
 
Join Date: Aug 2004
Location: Winter Park, FL USA
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I will give it a try later today.



Quote:
Originally Posted by SamirDarji
Ok, I finally figured out a fix for the double listing problem on a day's events listing. Find this:
PHP Code:
// Roll for this event 
and under it add
PHP Code:
unset($rollbits); 
That should do it. I've tested it loosely and it works. Let me know if there are any problems.
Reply With Quote
  #78  
Old 09-14-2004, 11:41 AM
neroflorida neroflorida is offline
 
Join Date: Aug 2004
Location: Winter Park, FL USA
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by neroflorida
Thanks. I will give it a try later today.

Fix for event roll list appears to have worked Thank you!
Reply With Quote
  #79  
Old 09-14-2004, 03:10 PM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by neroflorida
Fix for event roll list appears to have worked Thank you!
Sweet!
Reply With Quote
  #80  
Old 09-14-2004, 03:21 PM
SamirDarji SamirDarji is offline
 
Join Date: Apr 2004
Posts: 645
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pseudomizer
...this is what i had implemented from day one when i experienced this bug.
I wish you would've posted it. It would've saved me quite a bit of time.

Quote:
Originally Posted by Pseudomizer
- still have unregistered user on the list of attendees
- users are listed who never clicked on the link

I found out how they bypass our check for userid. They open 2 windows as a user who is not attending the event and sees the link "i want to attend to this event". Then he goes to the second window and logs out of the forum. The cookie is cleared. Then he goes back and clicks the link in the first window which is still there and oleeeeeeeee oleeeeeeeeee you have the user "unregistered user" attend the event. :-(

I haven't found out how they managed now to subscribe other users to an event but i will try to find out this as well.
That makes sense actually since all our code does is eliminate the prompt for an unregistered user and doesn't actually make it so an unregistered user cannot set the bit.

I think some sort of "if user logged in" code prefixing the db update would keep the unregistered users from setting the bit even if they somehow get the option. I've briefly looked at calendar.php and it seems like it will be easy to implement. The question is just where to put the code.

Now from what I've seen, if a unregistered user is already set, the only way to unset them is to get to a prompt and unset it.

As far as the other users that never clicked it, the only thing I can think of is some sort of db corruption. How many events do you have so far and how many people have used it? Maybe there are problems once usage gets above a certain level.
Reply With Quote
  #81  
Old 09-23-2004, 11:56 PM
dieselpowered's Avatar
dieselpowered dieselpowered is offline
 
Join Date: Aug 2004
Location: Arizona
Posts: 661
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there, this is great and I am looking forward to using it!!!

Could you please let me know how to run a query with PHPmyadmin. Sorry for the ignorant question!!

Mike
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 08:13 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.07606 seconds
  • Memory Usage 2,333KB
  • 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
  • (12)bbcode_php
  • (9)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