vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Event attendance (https://vborg.vbsupport.ru/showthread.php?t=63460)

ryancooper 05-05-2004 01:23 PM

Quote:

Originally Posted by chris2707
It's on line 372

Try searching for For calendarjump

or ## MONTHLY VIEW ##

What I usually do if it's not found is do a partial search so for instance $monthselected["$month then check to see if it's definately the correct line that's found.

That is exactly what I did! LOL I will check the line you said and look for For calendarjump

or ## MONTHLY VIEW ##

Thanks!!

One thing I am runnning 3.0.0 Is this for 3.0.1??

Oblivion Knight 05-05-2004 02:21 PM

Quote:

Originally Posted by ryancooper
One thing I am runnning 3.0.0 Is this for 3.0.1??

It works for both 3.0.0 and 3.0.1 :)

Lostnode 05-06-2004 11:48 PM

Is there any way to Add More sections to this?
I am the webmaster for a clan, and the way we run our matches, is there there are 4 sections needed, Who wants to captain, Who wants to attend, Whowants to attend but will be late, will not be attending. I am a complete noob at coding, could someone do this for me? Doesn;t matter what the text is cuz I can change that in the templates, I just neeed to know what code I would have to add to add 3 more catagories to the script (which is already installed)

Silverstangs 05-07-2004 02:07 AM

Wonderful idea, I will test it out on a couple on boxes then I will install.

y2krazy 05-16-2004 07:47 AM

Nevermind. I figured it out... ;)

-y2k-

buro9 05-16-2004 08:34 AM

Quote:

Originally Posted by y2krazy
Nevermind. I figured it out... ;)

-y2k-

Yeah ;) You'd not added the column to the events table ;)

dcevoclub 05-25-2004 11:20 AM

how hard would this be to make it work for Threads? like our page uses a "meets" forum, and usually we make a list like so:

1. joeschmoe
2. someguy

and each person ads to the list, how hard would this be to make into a "poll" i guess?

Lee Wilde 05-26-2004 11:58 AM

Another excellent hack, thank you!

Mellow 06-22-2004 06:22 PM

Great hack, I use it all the time however I'd like to request a mod...

I use the hack to see how many people will show up at an event and sometimes people bring wives, girlfriends, relatives or friends ... is there a way to add a drop down of 'total in party' so you'll not only know which members are showing up but how many they are bringing....

Joe

babycarrots 07-22-2004 06:01 AM

I'm really interested in installing this. But I'm somewhat stuck on the SQL Queries. I do have phpmyadmin installed...but haven't the foggiest what to do. I have no clue what to do in the vb control panel either. I know how to get to the "Execute SQL Query" section but have no clue what to do there. Can you please tell me what I am to do? I'm running VB version 3.0.3. Please tell me what to do with these queries:

alter table event add useroll tinyint not null;

alter table event add roll text not null;

Thanks,
babycarrots

StewardManscat 08-06-2004 08:34 PM

Installed, but confounded.

[Steward babbles on here, but sprays this space with babble-remover the next day]

Later: ok, all my problem. Thumbs up for this hack. Serializing the data field was nice, we can add our own goo easily.

If you add it to an existing calendar, you may need to zap the little flag to '1' to enable rolls on existing events. I used phpMyAdmin.

Thank you.

xTerMn8R 08-08-2004 12:11 AM

I've installed and added all the improvements as suggested and now I can't access my calendar, each time I do it gives me a Parsing error.

ie:
Code:

Parse error: parse error, unexpected T_STRING in N:\Web\CTC\calendar.php on line 1149
and I dont see anything concerning attending the events that are showing up in the Todays events thingy...
Damn !!!

Peace ...

Using vb3.03 php 4.3.8

Ok I got it to work by redoing all the edits on a fresh file but when I click on an event in the "Whats Going On" or Calander it takes me to the event, shows all the attendies, has all the right buttons and is working great except that the events are listed twice. If I delete one it also deletes the other ... LOLOL

Any Suggestions or support on this anymore?

xTermN8R Clicks Install :up:

xTerMn8R 08-18-2004 11:21 PM

Someone help me Please... My events are showing up twice in the Calander after installing this and having some issues... I love the hack and I've scowered all the edits and cant find the trouble...This is a real anoyance...

Peace...

chris2707 08-18-2004 11:42 PM

This happened to me too - I think it's caused because after following the instructions there are additional instructions that cause a duplication of some of the code. I can't remember how I fixed it and didn't make notes, however try the following. In calendar.php find

Code:

    if ($eventinfo['useroll']) {
And look around that area to ensure that if statement is not there twice. You'll probably find a block of code repeated. I believe the statement above should only be in calendar.php once.

Let me know if you need the exact fix and I'll see if I can find my backed up files for when I applied this hack and the events showed twice.

MWetherspoon 08-19-2004 04:31 PM

Great Hack - pretty much exactly one of the things I was looking to do on my new VB install!!!

* Clicks Install * :up:

xTerMn8R 08-21-2004 04:56 AM

Thank you chris I'll do a search right now and see if I can find it ....

Peace...

Well Its only listed Once in my calendar.php, I've been through each of the edits searchin and searchin and cant find out whats wrong still... Damn I bet it's some simple too... ANy additional help you can give Chris would be deeply appreciated..

Peace..

Pseudomizer 08-27-2004 04:23 AM

Great Hack. This has made our life much more easier for handling chatter/forum events. Before this hack people copied the attendee list multiple times in the same thread to keep it updated. This is now gone !!! THANK you so much.

Cheers,

y2krazy 08-28-2004 11:41 PM

For every event in my calendar, when I click on [I will be attending this event.], it send me to a forum error message that states the following:

"Invalid Event specified. If you followed a valid link, please notify the webmaster"

This is for every event, they do not show up twice, and this is on vB 3.0.3. I've check the db via phpMyAdmin and the events exist in the correct table and rows, but they just don't seem to be called correctly with the [I will be attending this event.] link. Any help would be greatly appreciated!

Pseudomizer 08-29-2004 01:33 AM

Quote:

Originally Posted by y2krazy
For every event in my calendar, when I click on [I will be attending this event.], it send me to a forum error message that states the following:

"Invalid Event specified. If you followed a valid link, please notify the webmaster"

This is for every event, they do not show up twice, and this is on vB 3.0.3. I've check the db via phpMyAdmin and the events exist in the correct table and rows, but they just don't seem to be called correctly with the [I will be attending this event.] link. Any help would be greatly appreciated!

Sounds like a PHP problem of the post and get parameters of a HTML form. Do you have global variables on or off? This could cause this problem.

If you do not have them enabled and for security reasons, you should let them disabled, you can replace the variables with $_POST[variablenames] or $_GET[variablenames] and it should work.

Cheers,

y2krazy 08-29-2004 02:19 AM

I'm not sure exactly what you're telling me I should do. I'm not a coder, but I do hack out the vB with the provided hacks myself, so I need a little more "lamens" if you know what I mean... ;)

xTerMn8R 08-29-2004 10:31 PM

Thought everything was working good but tried to add an event today and the following is what I got. Any suggestions?

Code:

Database error in vBulletin 3.0.3:

Invalid SQL:
                                INSERT INTO event (calendarid, userid, event, recurring, recuroption,dateline_to,dateline_from,    title, allowsmilies, customfields, dateline, visible, utc, useroll);
                                VALUES (1, 1, 'Test', '0', '', '0', '1093737600', 'Test Event', '1', 'a:0:{}', 1093822044, 1, '0', '0');
                       
mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near ';
                                VALUES (1, 1, 'Test', '0', '

mysql error number: 1064

Date: Sunday 29th of August 2004 07:27:25 PM
Script: http://www.byte-psyche.com/calendar.php
Referer: http://www.byte-psyche.com/calendar.php?do=add&type=single&c=1
Username: xTerMn8R
IP Address: 192.168.1.1

Thank you...

Peace

neroflorida 08-31-2004 01:52 PM

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.

y2krazy 08-31-2004 11:03 PM

Quote:

Originally Posted by Pseudomizer
Sounds like a PHP problem of the post and get parameters of a HTML form. Do you have global variables on or off? This could cause this problem.

If you do not have them enabled and for security reasons, you should let them disabled, you can replace the variables with $_POST[variablenames] or $_GET[variablenames] and it should work.

Cheers,

Would be great if someone could clarify what Pseudo meant for me to do. I really would like to get this working, preferrably within the next 2 weeks! Thanks! :cry:

Original post:
Quote:

Originally Posted by y2krazy
For every event in my calendar, when I click on [I will be attending this event.], it send me to a forum error message that states the following:

"Invalid Event specified. If you followed a valid link, please notify the webmaster"

This is for every event, they do not show up twice, and this is on vB 3.0.3. I've check the db via phpMyAdmin and the events exist in the correct table and rows, but they just don't seem to be called correctly with the [I will be attending this event.] link. Any help would be greatly appreciated!


y2krazy 09-04-2004 06:20 PM

No one knows what I can do to help resolve this issue? :(

Pseudomizer 09-05-2004 12:41 AM

Quote:

Originally Posted by y2krazy
No one knows what I can do to help resolve this issue? :(

Are you familiar with PHP? Can you access your php.ini file on your server and do some changes?

Cheers,

y2krazy 09-05-2004 02:43 AM

What kind of changes? I am hosted by a comany named Net-Expressions and I could get the PHP Info for you, but I doubt I could edit their server's php.ini file... :confused:

SamirDarji 09-08-2004 12:16 AM

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.

This is interesting. I am about to install this hack on 3.0.3, but will have many events on the same day and will need to allow users to pic and choose on all of them. Has this bug been fixed?

neroflorida 09-11-2004 10:56 AM

Quote:

Originally Posted by SamirDarji
This is interesting. I am about to install this hack on 3.0.3, but will have many events on the same day and will need to allow users to pic and choose on all of them. Has this bug been fixed?

Not to my knowledge... If it doesn't get fixed by the author soon, I will fix it. ;) 'course may take a bit, I'm in florida, and it seems everytime I get working on a project we get whacked by a storm that takes out power and communications for a week :roll:

SamirDarji 09-11-2004 04:19 PM

Well, if you need any help, let me know. I'm also going to take a swing at fixing it. I'm also planning on replacing the "*" with a graphic and also making the "*" appear on the upcoming events so someone can see what's coming up and what they've already committed to.

Pseudomizer 09-11-2004 04:52 PM

Quote:

Originally Posted by SamirDarji
Well, if you need any help, let me know. I'm also going to take a swing at fixing it. I'm also planning on replacing the "*" with a graphic and also making the "*" appear on the upcoming events so someone can see what's coming up and what they've already committed to.

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,

SamirDarji 09-11-2004 05:08 PM

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!

SamirDarji 09-13-2004 04:16 PM

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.

SamirDarji 09-13-2004 04:21 PM

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.

SamirDarji 09-14-2004 12:06 AM

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.

Pseudomizer 09-14-2004 05:55 AM

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,

neroflorida 09-14-2004 07:52 AM

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.


neroflorida 09-14-2004 11:41 AM

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!

SamirDarji 09-14-2004 03:10 PM

Quote:

Originally Posted by neroflorida
Fix for event roll list appears to have worked :) Thank you!

Sweet!

SamirDarji 09-14-2004 03:21 PM

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.

dieselpowered 09-23-2004 11:56 PM

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


All times are GMT. The time now is 04:17 AM.

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.01576 seconds
  • Memory Usage 1,871KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (12)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete