PDA

View Full Version : Event attendance


Pages : [1] 2

Kentaurus
04-04-2004, 10:00 PM
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.

ranger2kxlt
04-05-2004, 03:04 AM
Very nice!! Will this work for Gold?

also, is there another link for them to unregister? or access for admins and mods to remove names if need be?

Thanks

KTBleeding
04-05-2004, 03:18 AM
Hmm.. Interesting mod. Not too sure if I'll ever use it, but good work.

gmarik
04-05-2004, 03:34 AM
nice, rrreally cool one, thanks!

Kentaurus
04-05-2004, 04:54 AM
Very nice!! Will this work for Gold?

also, is there another link for them to unregister? or access for admins and mods to remove names if need be?

Thanks
It was done for gold. What I am not sure is if it would work with previous versions.

Yes, there is a link for unregistering if you are already registered. You can already see that in the screenshots ;) Currently mods cannot edit that list.

milkmycow
04-05-2004, 04:55 AM
great considering im planning a huge event as we speak :)

snyx
04-05-2004, 05:02 AM
As if you read my mind. My other admin was just speaking of this yesterday.. perf!

I shall install it as soon as I sort out my Gallery issues, thanks a ton!

Obviously room for a small request; User profile, events im attending.

Thanks again mate :)

Giveit2u43
04-05-2004, 05:04 AM
Thanks a lot for this.. should come in very handy :)

Oblivion Knight
04-05-2004, 05:59 AM
Wow.. This is MUCH easier than the hack I was working on for vB2 a while back.

Congrats.. :)

SVTBlackLight01
04-05-2004, 06:10 AM
Great job! I will be able to use this.

alkatraz
04-05-2004, 08:21 AM
wow! i've been waiting for this forever, thank you!!!!!

any chance you could add an admin option to "mass email or pm attendees" for a future version? =)

D|ver
04-05-2004, 03:30 PM
thanks very much for this great hack

*installed*

Ghostsuit
04-05-2004, 05:27 PM
Top quality I was looking for something like this :)

ranger2kxlt
04-05-2004, 07:14 PM
ya some great additions for your next version

1 - allow mods to edit list
2 - allow admin/mods/or another user group (b/c we a have a planning commitee) to mass email or pm attendies
3 - user profile "im attending:"

i can't think of anymore

GREAT WORK!!! will install as soon as i upgrade!

ChurchMedia
04-05-2004, 08:35 PM
Excellent! My members have local meetings and this is perfect. Great job!

**installs**

sabret00the
04-05-2004, 09:17 PM
wow very great hack, what else would be good is if it features an "i may be attending" link

ryancooper
04-05-2004, 09:53 PM
Awesome
!1!! Thansk for this

ChurchMedia
04-05-2004, 10:07 PM
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!

D|ver
04-06-2004, 11:11 AM
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!
yes i agree with that, that would be really great :)

PranK
04-06-2004, 02:37 PM
Very nice - thank you!

/me clicks install

Christian

PranK
04-06-2004, 02:43 PM
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

buro9
04-06-2004, 08:35 PM
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 :)

WreckRman2
04-09-2004, 02:42 AM
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".

buro9
04-09-2004, 07:11 AM
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:

if (($show['candeleteevent'] OR $show['canmoveevent'] OR $show['caneditevent']) AND !$show['holiday'])


I have this:

// 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:

<li><a href="member.php?u=$rolluserid">$rollusername</a></li>


And the calendar_roll becomes:


<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:

<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 :)

WreckRman2
04-09-2004, 08:32 PM
Thanks! Could you edit your post and take out my email? I edited mine because if not I'll get blasted with spam. :)

Ted S
04-09-2004, 08:48 PM
Awesome! Thank you, thank you, thank you!

buro9
04-15-2004, 07:57 AM
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:

if ($eventinfo['useroll']) {


And change it to this:

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

Hugme1
04-15-2004, 10:24 AM
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
################################################## ###########

DaveLogic
04-15-2004, 11:08 AM
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....

Hugme1
04-15-2004, 07:35 PM
Now the only problem i have is the 2 PHP files won't work

I have had to upload the original version :o

DOH!!!!

Just ignore me, I'm was having a blonde moment

Hugme1
04-16-2004, 12:05 AM
How can I stop it signing you up for recurring events.

IF an event happens every Monday, it will sign u up for every monday.

Don't particularly need this bit

Oblivion Knight
04-18-2004, 02:10 AM
How can I stop it signing you up for recurring events.This would be a good improvement to the hack..
Some people may not be able to attend a recurring event every week/month/year.


I finally got around to installing this, and also buro9's improvements - All is working with no problems on 3.0.1, thanks guys.. :)

sabret00the
04-18-2004, 10:57 AM
wow very great hack, what else would be good is if it features an "i may be attending" link
still no one managed to add this yet :(

SySt3M
04-20-2004, 11:32 PM
1 - allow mods to edit list
2 - allow admin/mods/or another user group (b/c we a have a planning commitee) to mass email or pm attendies
3 - user profile "im attending:"

i can't think of anymore
* SySt3M agrees and clicks install

nice work dude :)

kall
04-28-2004, 10:51 AM
Is there a way to have a user be able to create an event that is only viewable by themself, and have others be invited (by this hack) and then be able to see the event and register interest?

Ie: only the creator and those who have been invited (via some sort of auto-PM) can see it?

Smirks
04-28-2004, 03:18 PM
This hack is great, and I'm close to installing it.

One thing I'd like to see is the ability to include a link to a thread for discussion of that event. If that one small feature existed, I'd install it right away!

dcevoclub
04-29-2004, 11:15 AM
i'd like to see this functionaly to be built into a thread.....just like the polls?

ryancooper
05-03-2004, 11:37 PM
Is it just me but I can;t find

$monthselected["$month"] = HTML_SELECTED;

in calander.php???

ryancooper
05-05-2004, 10:59 AM
Is it just me but I can;t find

$monthselected["$month"] = HTML_SELECTED;

in calander.php???
Anyone? I just checked a clean calendar.php and no sigh of the

$monthselected["$month"] = HTML_SELECTED;

code anywhere? What am I missing? I really want to get this installed??

chris2707
05-05-2004, 11:40 AM
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.

ryancooper
05-05-2004, 01:23 PM
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
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
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:
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


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
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?

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
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:
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
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
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
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
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
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
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
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
<if condition="$show[userattending]">and above it add
<if condition="$bbuserinfo['userid']">

Find
</if>and after it add another
</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:
// Roll for this eventand under it add
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
I've found a simple fix for this problem:

In the template calendar_roll, find
<if condition="$show[userattending]">and above it add
<if condition="$bbuserinfo['userid']">

Find
</if>and after it add another
</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.

:)

Ok, I finally figured out a fix for the double listing problem on a day's events listing. Find this:
// Roll for this eventand under it add
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
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
Fix for event roll list appears to have worked :) Thank you!

Sweet!

SamirDarji
09-14-2004, 03:21 PM
...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.


- 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

SamirDarji
09-24-2004, 07:15 AM
Once you've chosen the correct database, I believe it is the SQL tab.

Benj
09-28-2004, 12:28 PM
would it be possible to have a section on the users profile page saying what events they will be attending ??

SamirDarji
09-28-2004, 01:55 PM
would it be possible to have a section on the users profile page saying what events they will be attending ??

Anything is possible. ;) I'm just not sure how it would really be done since all this hack essentially does is insert another bit of information with the information for an event and then read it back when displaying an event.

To display this information with a user's profile, you'd have to scan through every event and look at that additional bit of information to see if it matches the chosen user profile. I think the code to do this will be even more than the original hack, lol.

Essentially, you'd be scanning the entire events table (or just the newer events) every time a user looks at another's profile. I suspecting it would be kinda heavy on the server if this was implemented on a forum with a lot of users and events.

Benj
09-28-2004, 02:13 PM
thanks for the reply but doesnt the attendance table hold the users ID (when they click to say there attending) in which case calling the record from the database would be easier on the server (WHERE userID = "?")

SamirDarji
09-28-2004, 02:25 PM
I looked at the structure of the events table and the "roll" field and it seems quite easy on the server. All it has to do is go through the events table just like you said. Now, who wants to code this cool idea? :D

Ted S
09-28-2004, 11:20 PM
Suggestion:

In the Public Calendar when you click on the link at the bottom of the page to add or remove yourself as an attendee, it would be very helpful (for planning purposes) to have a drop down menu or text box available to fill in a number for how many will be in that "party".

For instance, we are planning a BBQ on Oct. 30. This is going to be open to both members and non-members (i.e. families). If a person is going to bring a spouse, 2 kids and a friend who may be interested in diving in the future, it would be very helpful to be able to look at the list and see that this will be a "Party of 5", it would also be an added bonus if the total number of attendees could be shown.

Adding this feature would make the Calendar more "useful" and relevant. If you still have to comb through a thread to find the number of attendees for each name, the Calendar function becomes less valuable.

SamirDarji
09-28-2004, 11:59 PM
This doesn't seem too hard to do, but for my site I would have no need for it. But I see how your suggestion can take the calendar to the beginning stages of becoming a planner--which I fully believe it will be in the future once people realize what you can do with it.

Ted S
09-29-2004, 03:28 AM
Right now a lot of our users are planning group events which means a lot more than just 1 person attending per username... this makes the "attending" feature almost useless as it misrepresents actual attendance. I would love to see (and am willing to pay for) a feature to simply include the # of attendees... it doesn't seem hard to add but time is not something I have lots of.

SamirDarji
09-29-2004, 06:56 AM
If someone writes out the pseudocode, I'd be willing to hack at it in my spare time.

Benj
09-29-2004, 07:08 AM
that would be so sweet if you could !! dunno about the code tho

SamirDarji
09-29-2004, 01:26 PM
That's the hard part--the pseudocode. It's the logic behind the code. That's where ideas on how to do something get tested, shot down, optimized and the like. The coding is the easy part once you have the logic. Then it's just a matter of making the chosen language do what the pseudocode dictates.

Benj
09-30-2004, 09:41 AM
dont have a clue how to do pseudocode sorry :(

Benj
10-04-2004, 07:55 AM
so................................

buro9
10-04-2004, 08:17 AM
If someone writes out the pseudocode, I'd be willing to hack at it in my spare time.

Here's the psuedo SQL:


$query = "SELECT `eventid` , `userid` , `event` , `title` , `allowsmilies` , `recurring` , `recuroption` , `calendarid` , `customfields` , `visible` , `dateline` , `utc` , `dateline_from` , `dateline_to` , `useroll` , `roll`
FROM `" . TABLE_PREFIX . "event`
WHERE `roll` LIKE '%i:" . $bbuserinfo['userid'] . ";s:" . strlen($bbuserinfo['userid']) . ":\"" . $bbuserinfo['username'] . "\"%' LIMIT 0, 30";


That would return all events that a user was attending.

Note that the SQL matches the entire user information, as performing wildcard LIKE's are never good because if we just did the userid we might match events that had the same number of attendees as the user id... or worse, if we compared on username, there may be a user named Rob and one named RobSmith and we'd match that.

So that's the SQL... and it works... so it shouldn't be too hard to write the rest :)

Please, when writing the rest, bear in mind whether the event is publicly viewable, i.e. that the calendar that it appears on is viewable. ;)

Benj
10-04-2004, 10:03 AM
legend

MWetherspoon
10-04-2004, 02:10 PM
Question - does anyone know of any easy way to update the mod so that when a user signs up for an event, as opposed to just listing their post name, it actually uses their name as a link to their public profile?

For me that would be a handy feature as even organizers could easily pull the user info from the custom fields in the user profile that I have enabled on the site.

I'm going to play with it and see what I can come up with.

Thanks in advance!

- Mark

SamirDarji
10-04-2004, 02:33 PM
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:

if (($show['candeleteevent'] OR $show['canmoveevent'] OR $show['caneditevent']) AND !$show['holiday'])


I have this:

// 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:

<li><a href="member.php?u=$rolluserid">$rollusername</a></li>


And the calendar_roll becomes:


<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:

<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 :)

Here it is. This code doesn't include the duplicate member listing fix, so you'll have to implement that, but it's got everything else.

MWetherspoon
10-04-2004, 02:57 PM
Thanks a ton SamirDarji - I had missed that note in the post by buro9 that he had added the link to the profile in the Roll Call hack!

Installed and working great!

Now to go back and fix the duplicate member fix!

SamirDarji
10-04-2004, 03:23 PM
Yeah, I missed the fix to the unregistered user problem and spent a few good hours making the same fix. I would've hated to see you do the same.

buro9
10-04-2004, 08:07 PM
Yeah, I missed the fix to the unregistered user problem and spent a few good hours making the same fix. I would've hated to see you do the same.
vBulletin.org needs CVS so that all such fixes can be rolled in by anyone rather than this hunting around hack threads thing!

SamirDarji
10-04-2004, 09:45 PM
What's CVS?

buro9
10-04-2004, 10:10 PM
What's CVS?
CVS = Concurrent Versioning System

It's used widely by software developers around the world to track and marge changes in code bases. It allows multiple developers to work on the same code, each one can see what the other has done, merge changes, view differences, etc.

SourceForge, Apache, Mozille... they all use CVS systems of some sort or other.

Microsoft use CVS systems, as does Sun, as does IBM... as does everyone.

They come in many shapes and sizes, the worst is probably Visual SourceSafe from MS, the good ones are Subversion, Perforce, Merant, WinCVS, etc.

Even Jelsoft use CVS, which is how you get those headers in the files saying the CVS file version ;)

I am just increasingly of the opinion that as a lot of the hacks evolve thanks to the contributions of many hackers, that if the author consented, that they could be made open to all to improve, and placed within a CVS system whereby all changes can get rolled into one package for end users.

Having a CVS system for hacks would prevent the need for you to search through this thread for improvements, bug-fixes, differences, etc... as you would just fetch the latest version from CVS and that would simply be the version that featured all contributions.

Benj
10-06-2004, 09:58 AM
Here's the psuedo SQL:


$query = "SELECT `eventid` , `userid` , `event` , `title` , `allowsmilies` , `recurring` , `recuroption` , `calendarid` , `customfields` , `visible` , `dateline` , `utc` , `dateline_from` , `dateline_to` , `useroll` , `roll`
FROM `" . TABLE_PREFIX . "event`
WHERE `roll` LIKE '%i:" . $bbuserinfo['userid'] . ";s:" . strlen($bbuserinfo['userid']) . ":\"" . $bbuserinfo['username'] . "\"%' LIMIT 0, 30";


That would return all events that a user was attending.

Note that the SQL matches the entire user information, as performing wildcard LIKE's are never good because if we just did the userid we might match events that had the same number of attendees as the user id... or worse, if we compared on username, there may be a user named Rob and one named RobSmith and we'd match that.

So that's the SQL... and it works... so it shouldn't be too hard to write the rest :)

Please, when writing the rest, bear in mind whether the event is publicly viewable, i.e. that the calendar that it appears on is viewable. ;)


sorry im lost is any1 looking at coding this

SamirDarji
10-06-2004, 02:42 PM
I haven't had a chanced to do more than glance at it. We have the psuedocode for the sql, now we just need the supporting code that will end up in the php files as well as the html templates.

y2krazy
10-06-2004, 03:42 PM
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:
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!
It's been over a month and I still have no help from anyone. Would someone please help me figure out what is going wrong?! Thanks.

D|ver
10-13-2004, 04:28 PM
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 :)

SamirDarji
10-13-2004, 04:57 PM
I don't have time to code it, but the logic would be to count the attendees as it lists them, put that count into a variable that gets passed to the template and then modify the template to use the variable. Should be fairly easy. Someone code this. :D

attroll
10-16-2004, 03:49 AM
buro9

Is there any chance we can get you to post a zipped file or start a new thread with all that updates and instuctions that have taken place since the owner of this mod has posted it? Since he does not seem to participate in this thread anymore.

buro9
10-16-2004, 08:02 AM
buro9

Is there any chance we can get you to post a zipped file or start a new thread with all that updates and instuctions that have taken place since the owner of this mod has posted it? Since he does not seem to participate in this thread anymore.
I don't know if I'm allowed to do that.

Can a mod advise whether this would be alright?

In the case where a hack is abandoned and unsupported by it's creator, is it ok for the wider community to take ownership of it and fix outstanding bugs and issues with it and re-package it in a new thread for new users to benefit from?

I wouldn't want to help you all in this way if all it results in is my getting a kick from the moderators... afterall, it works fine on my board ;)

I can't report my own post of course, but I'll report yours so that someone reads this and can advise on whether we would be allowed to do this.

SamirDarji
10-16-2004, 08:10 AM
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.

bendigo-tech
10-16-2004, 12:06 PM
Excellent hack. I have just installed it.

Thanks a lot. :)

Benj
10-20-2004, 10:38 AM
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 :(

SamirDarji
10-20-2004, 04:45 PM
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.

Benj
10-25-2004, 09:10 AM
what site do you use these on if you dont mind me asking

SamirDarji
10-25-2004, 04:22 PM
My new site url is www.huntsvillecarscene.com (http://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.

Sanni
10-26-2004, 04:30 AM
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

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:


$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


There are currently $rollcount Participants enrolled in this event.


to whereever you want it to be displayed.

D|ver
10-26-2004, 01:25 PM
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?

SamirDarji
10-26-2004, 09:01 PM
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.

SamirDarji
10-27-2004, 07:05 PM
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.

buro9
10-29-2004, 09:46 AM
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 :)

SamirDarji
10-29-2004, 05:24 PM
Since not everyone that says they're coming attends, I was thinking to keep it at "I will be attending", just not editable after the day of the event passes. This way, some people could edit it if they changed their mind before the event and even a little while after, but otherwise it you could see who planned on coming and then who actually did.

bendigo-tech
11-01-2004, 04:58 AM
Is there a simple of doing the following:

When someone clicks on "I will be attending", a small window pops up with a box to type in a name and a Submit button. Once you click the submit button, your Username, First Name, Surname and the entry in the box is posted to a webpage accessible only by the administrator of the forums. Each entry must be able to be deleted.

If it isn't too hard to set something like this up, would someone be able to help me out with it please?

Thanks.

Steve123
11-03-2004, 07:30 AM
Hi,

I made a hack like this a while ago for vb2 then made one for vb3..

Never got the time to release it tho :(..

example of what i done is in the attachments...

It also moves the forums to past parties forum after 3 days of the date of the party..

also can do timetables etc..

msg me if u want the code..

Benj
11-03-2004, 07:36 AM
thats cool

Symbian.info
11-03-2004, 09:29 AM
He Steve I like to have the code, And more people I think. So please send it to me or make a new thread

nexialys
11-03-2004, 01:48 PM
Steve.. just post the files as an attachement here, Kentaurus or me will take care to add if possible... with the proper credits!

attroll
11-03-2004, 03:58 PM
If you do start a new thread please post the thread here.

I am very interested in this code, Since no one will release the code for this one with all the changes and hackes that have been done to it to get it working from the original post.

SamirDarji
11-03-2004, 05:13 PM
I too am interested in this code. Has anyone received the code from a PM yet?

MonkeyBoy
11-03-2004, 10:10 PM
I'm after a hack like this where to verify you are going you have to make a payment and then admin/moderator changes the persons status.
I'm after it for a LAN Party.
Any chance of this happening?

theArchitect
11-03-2004, 11:30 PM
Hmmm. I must have got something wrong during the install as it is not working on my forum. When I add an event and click on the "User Roll Call" option the info in your attached screen shot 1 does not appear. So I can't click on the "I will be attending this event".

For some reason the calendar is not calling the new template calendar_roll. I have checked in my Style Manager and the template is there.

Any thoughts?

Edit:

On further testing the problem seems to be with the DB remembering that Use Roll Call has been selected. I went into an event that I added and click on the option. Then edited the event and Use Roll Call was not selected. I ran both of the Queries:

alter table event add useroll tinyint not null;

alter table event add roll text not null;Separately in the AdminCP and it altered 26 rows for each query. But the function is still not being remembered.

Steve123
11-05-2004, 07:04 AM
Hey people..

sorry i will release the code ASAP.. works VERY busy atm..

should get time this weekend..

i must warm you.. i made this when i was still new to php(still am) some of it might be a bit dodgy :P will reply soon

SamirDarji
11-05-2004, 06:04 PM
Look forward to hearing from you!

Benj
11-06-2004, 08:13 AM
im thinking of using the built in reminder tool on my forum? easier i think just a case of changing some phrases, (add to myevents) then all add a page like myevents.php which i can link to from a users profile to show all the events there attending / got on reminder

joeychgo
11-12-2004, 09:08 PM
Could we get this hack Updated please !!!

Its a great hack - jsut too hard with all the changes to not be bug laden.

attroll
11-13-2004, 01:51 AM
I agree. I have been waiting patiently.

joeychgo
11-13-2004, 04:37 PM
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 :D) to an event - but there isnt a way to indicate that they are bringing extras.

RMS-Chef
01-03-2005, 09:28 PM
2 - allow admin/mods/or another user group (b/c we a have a planning commitee) to mass email or pm attendies

This is a must for this nice hack. Anyone had any luck with an implementation on this feature?

MikaK
01-05-2005, 04:20 PM
*installed* looking forward for mods:)

ozmazdaclub
01-09-2005, 01:56 AM
Does this work in VB3.0.5

SamirDarji
01-11-2005, 06:18 AM
Anyone know? I'm curious about this too.

Benj
01-11-2005, 12:54 PM
i might try later : bored ill let you know

Oblivion Knight
01-15-2005, 02:17 PM
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 also experienced this issue recently, I did the following..

In calendar.php, find:
if ($_REQUEST['do'] == "attend")
{
$roll[$bbuserinfo['userid']] = $bbuserinfo['username'];
}
else
{
unset($roll[$bbuserinfo['userid']]);
}Replace it with:
if ($_REQUEST['do'] == "attend")
{
if ($bbuserinfo[userid])
{
$roll[$bbuserinfo['userid']] = $bbuserinfo['username'];
} else {
print_no_permission();
}
}
else
{
if ($bbuserinfo[userid])
{
unset($roll[$bbuserinfo['userid']]);
} else {
print_no_permission();
}
}It seems to have worked, as I can no longer replicate the bug.. :)


P.S This mod works flawlessly in 3.0.5.

ricker
01-16-2005, 09:34 PM
it seems to be working fine on 3.0.5
:D awesome hack, everyone loves it.

ryancooper
01-16-2005, 11:00 PM
Everything seems to work except when i try to add myself to a event i get :"

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

Now hte strange part . . . IT WORKS It adds my name to the list and removs it when i click remove.

Any Help. . . I would love to get this up and running.

SamirDarji
01-20-2005, 03:50 AM
Everything seems to work except when i try to add myself to a event i get :"

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

Now hte strange part . . . IT WORKS It adds my name to the list and removs it when i click remove.


Any Help. . . I would love to get this up and running.Check your code changes. Something doesn't sound like it got changed correctly.

SamirDarji
01-20-2005, 03:55 AM
I also experienced this issue recently, I did the following..

In calendar.php, find:
if ($_REQUEST['do'] == "attend")
{
$roll[$bbuserinfo['userid']] = $bbuserinfo['username'];
}
else
{
unset($roll[$bbuserinfo['userid']]);
}Replace it with:
if ($_REQUEST['do'] == "attend")
{
if ($bbuserinfo[userid])
{
$roll[$bbuserinfo['userid']] = $bbuserinfo['username'];
} else {
print_no_permission();
}
}
else
{
if ($bbuserinfo[userid])
{
unset($roll[$bbuserinfo['userid']]);
} else {
print_no_permission();
}
}It seems to have worked, as I can no longer replicate the bug.. :)


P.S This mod works flawlessly in 3.0.5.Here's a simpler solution: https://vborg.vbsupport.ru/showthread.php?p=552261&postcount=73

Oblivion Knight
01-20-2005, 06:34 AM
Here's a simpler solution: https://vborg.vbsupport.ru/showthread.php?p=552261&postcount=73As mentioned earlier in this thread, it is possible to bypass your fix.. ;)

"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. :-("

SamirDarji
01-20-2005, 08:27 AM
As mentioned earlier in this thread, it is possible to bypass your fix.. ;)

"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. :-("
Oh yeah, I forgot about that method. I've only seen it happen once, so I didn't pay much mind to it. I'll be adding your revised code to my setup. Thank you!

alkatraz
01-26-2005, 10:28 PM
Great hack, installed on 3.03
thank you!!!

TBSVTOA
01-29-2005, 01:37 PM
My admin CP tell me You are not authorized to execute SQL queries.

Anyone have any idea's

Oblivion Knight
01-29-2005, 02:01 PM
My admin CP tell me You are not authorized to execute SQL queries.


Anyone have any idea'sEdit your includes/config.php file, and add your userid to the array of users that have permission to run queries.. :)

TBSVTOA
01-30-2005, 12:21 PM
Edit your includes/config.php file, and add your userid to the array of users that have permission to run queries.. :)
]


Thank you..! Duh...! Some times you just need a push.

TBSVTOA
01-30-2005, 12:28 PM
Ok Any Idea . Calendar show up as a blank page now after putting in hack .

any suggestions.

SamirDarji
01-31-2005, 07:39 AM
Something's definitely not right. Double check the php file edits.

DarrinM
02-03-2005, 07:47 AM
Did anyone get the attendance of events count to work ?

Would like it to display within profile page for individuals for the amount of events previously attended within calendar year and also count number of attendees for each event next to each new and old event listing

Darrin

SamirDarji
02-08-2005, 07:13 PM
That's some additional code that would be required to write into the calendar event listing and the memberinfo parts of vb. Doesn't really seem too hard since at the heart of each is just a query. But I'm no programmer, so I know I can't do it.

animate
02-21-2005, 08:48 PM
does this hack work with 3.0.7?

mkdevo
02-25-2005, 12:40 PM
does this hack work with 3.0.7?

sure does. just installed it. great hack!

Freezerator
02-26-2005, 10:15 AM
Installed to.

To bad this hack doesn't get updated.

banuchi2
02-26-2005, 11:14 AM
I just read about this hack...and some problems it has..... Unfortunately, it was made and then abandoned....no updating. Does anyone have an "updated" version with any fixes available or does one have to sift through the posts. Thanks.

P.S.
When installing, there are two instances of:

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

Which ones gets replaced, 1st? 2nd? or both?

speedracer68
03-06-2005, 06:47 PM
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.

speedracer68
03-06-2005, 06:50 PM
I too have the same question.

Larry

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 :D) to an event - but there isnt a way to indicate that they are bringing extras.

FleaBag
03-06-2005, 09:51 PM
Wow, I'd never even thought of this before! Sweet...

Benj
03-10-2005, 09:05 AM
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 :)

robert_2004
03-18-2005, 01:07 PM
i also think this should be updated with some extra features :)
i've been using for quite some time now, and love it.

Sarvoth
03-20-2005, 03:07 PM
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.

-------------------------------------------------------------
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?

Sarvoth
03-20-2005, 03:08 PM
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 :D

Marco van Herwaarden
03-20-2005, 03:10 PM
Just searched in a clean 3.0.7 calendar.php for the:
eval('print_output("' . fetch_template('calendar_edit') . '");');

and i can even find it twice.

Creed
03-20-2005, 03:16 PM
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.

James Goddard
03-22-2005, 11:47 AM
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 :D) 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

<else />
[<a href="calendar.php?$session[sessionurl]do=attend&e=$eventinfo[eventid]">I will be attending this event</a>]
</if>

Replace with

<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=3 /> guests. <input type="submit" value="Submit" />]
</form>
</if>


calendar.php:

Find

$roll[$bbuserinfo['userid']] = $bbuserinfo['username'];

Replace with

$info = $bbuserinfo['username'];
$guests = intval( $_REQUEST['guests']);
if (1 == $guests)
$info .= ' (' . $guests . ' guest)';
else if ($guests > 0)
$info .= ' (' . $guests . ' guests)';
$roll[$bbuserinfo['userid']] = $info;

98EXL
03-22-2005, 12:50 PM
damn...I installed the mod, and I get this when I try to edit an event:

"There are no calendars to move this event to."

any ideas?

alkatraz
03-23-2005, 01:49 AM
Thanks James! mod works great

Ted S
03-23-2005, 04:00 AM
When I asked James to take a look at adding to this addon, I thought he might come back with an idea but no, we get an actual working solution! Thanks James!

jamiepryer@hotm
03-26-2005, 01:04 PM
well, after 3 hours i have just installed my first ever hack :)
its awesome, thanks so much
- pleased -

CocteauBoy
04-10-2005, 04:52 AM
damn...I installed the mod, and I get this when I try to edit an event:

"There are no calendars to move this event to."

any ideas?
I am having the same issue after installing this hack:

When I go to edit, delete, or move an event, I get the error message, "There are no calendars to move this event to"

Has anyone found a fix for this?

Troy

SamirDarji
04-10-2005, 08:36 PM
What version of vb? I'd check that first. Then double check the file edits.

Benj
04-12-2005, 10:04 AM
any one interested in the events im attending block (or something) in the user profile ???

SamirDarji
04-12-2005, 03:05 PM
any one interested in the events im attending block (or something) in the user profile ???I am. That would be neat.

Oblivion Knight
04-12-2005, 03:40 PM
Thank you for that addon James Goddard.

Unfortunately, it breaks the "Event Options" menu.. :(

Benj
04-12-2005, 05:31 PM
I am. That would be neat.

well the SQL is there earlier in this thread it just a case of finding a programmer willing to do it ! ill personnally pay towards this ! anyone up for it ?

SamirDarji
04-12-2005, 05:41 PM
well the SQL is there earlier in this thread it just a case of finding a programmer willing to do it ! ill personnally pay towards this ! anyone up for it ?If it was a badly needed feature on my site, I'd do it. But at this point, it would just be a nice feature to have. I'm sure there are other out there that need something exactly like this.

Benj
04-12-2005, 06:15 PM
Just need to find them hopfully one of them has the skills :D

Oblivion Knight
04-13-2005, 02:40 PM
I'll try it out later tonight, I have to go to work (!!!) shortly..

Thanks for coming back and providing a fix! ;)

-------------------------------------------------------------

Awesome, it worked.! :D

Moncha
04-18-2005, 06:50 AM
Would there be an easy answer to having this "pre-checked" (Defaut on) so the member hase to uncheck it to not use it.. I find they can't read instructions, therefore they forget to check the option and no one signs up for the event.

Nick0r
04-18-2005, 06:52 AM
Is it possible to make people only be able to register to the event, say 4 hours before it starts?

kobescoresagain
04-18-2005, 12:25 PM
Can you set the times for the event. Example: I have a trade night. I would like for it to allow them only to sign when they are attending the trade night. When it is over then they can't sign it. Thanks

SamirDarji
04-18-2005, 02:54 PM
Would there be an easy answer to having this "pre-checked" (Defaut on) so the member hase to uncheck it to not use it.. I find they can't read instructions, therefore they forget to check the option and no one signs up for the event.I have done that. You have to change a template or one of the php files, but I don't remember exactly which one. Basically, there is some html that makes the check box and sets it unchecked. Change it so it always sets it checked.

SamirDarji
04-18-2005, 02:59 PM
Can you set the times for the event. Example: I have a trade night. I would like for it to allow them only to sign when they are attending the trade night. When it is over then they can't sign it. ThanksThis was requested here too:
https://vborg.vbsupport.ru/showpost.php?p=628153&postcount=169

I'd like this too, so that makes 3 of us. Anyone have an idea how to do it? I might spend some time tinkering pseudocode if someone gives me a direction.

SamirDarji
04-18-2005, 03:02 PM
Can you set the times for the event. Example: I have a trade night. I would like for it to allow them only to sign when they are attending the trade night. When it is over then they can't sign it. ThanksCoding this would use a lot of the logic of the reqeust above for the ability to add or remove from the list to be gone once the event passes.

Moncha
04-18-2005, 03:42 PM
I have done that. You have to change a template or one of the php files, but I don't remember exactly which one. Basically, there is some html that makes the check box and sets it unchecked. Change it so it always sets it checked.


Thanks I saw all of that when messing around with it but, couldn't get it to work.. I'll keep playing.

Thanks for the additions to a great hack!

Crypticel
04-18-2005, 10:30 PM
Alright, newbie question time. :p

I know nothing about PHP, SQL, or any sort of coding really. I really need this calendar hack for what I'm planning on doing. I had a go at installing it, and found that some things the file tells me to replace don't even exist. Perhaps a version difference? I'm using 3.0.7. Yet people are saying they have it working on there.

In trying to install it, I managed to destroy my forum (thankfully not even open yet), which was quite a hassle. I've wasted hours now... I say wasted, because I've really not managed to get anywhere.

I had a look at one of the threads created for newbies in another forum here, but the SQL tool it links to is from 2002, and the stuff in one of the php files it tells me to change doesn't exist!

I do not understand how to use the "Execute SQL Query" tool. I updated the config.php file so I can use it, but once I am there, I have no idea what to do next. And nothing I can find on this site seems to tell me. Plus, there seem to be all sorts of little changes people have made in this thread, and I just don't know what I need to do to get this working anymore.

Is there anyone who's installed this on 3.0.7 who'd be willing to post a step-by-step guide as far as what needs to be done? I can generally figure things out if I'm given a few hints, but I'm really lost on this one.

Moncha
04-18-2005, 10:35 PM
Found it,, had to add checked="checked" to the html code of the form..

Now the hard part, trying to get the total # of members attending that was posted in #116 (https://vborg.vbsupport.ru/showpost.php?p=565568&postcount=116) to work on the FORUMHOME and my portal pages.. Not even sure of where to start... Only need the count so it would need to make the whole call like the script does. Just a call to what eventid and count how many are marked to attend. Hmmmm.

Moncha
04-18-2005, 10:43 PM
I do not understand how to use the "Execute SQL Query" tool. I updated the config.php file so I can use it, but once I am there, I have no idea what to do next. And nothing I can find on this site seems to tell me. Plus, there seem to be all sorts of little changes people have made in this thread, and I just don't know what I need to do to get this working anymore.

Is there anyone who's installed this on 3.0.7 who'd be willing to post a step-by-step guide as far as what needs to be done? I can generally figure things out if I'm given a few hints, but I'm really lost on this one.

First and foremost ALWAYS MAKE A BACKUP OF YOUR DATABASE! Also any files that you change. If you are not sure then search here or vb.com and read the threads on how to do this..

The script works in 3.0.7 as I have it working in mine. It would probably be easier if you post what you can't find than someone trying to help you through the parts you already have done or know. I can help you through Pm if you'd like so as not to jam up the thread. It's a very easy hack to install.

ricker
05-03-2005, 05:26 AM
I'm trying to figure out how to add the rollcount to the monthly calendar view ... so users will know before clicking on the event if the event cap has been met. This seems like it's just about there, but I'm missing something to call it up on the monthly view:
https://vborg.vbsupport.ru/showpost.php?p=565568&postcount=116

TIA

SamirDarji
05-09-2005, 12:17 AM
The $rollcount variable will work on that particular event, but for it to work on every event on a monthly calendar view, there will have to be a lot more coding. Coding that I have a basic understanding of what needs to be done, but no clue on the implementation details. :( Hopefully someone will chime in here.

Moncha
05-09-2005, 03:20 AM
I'm working on a way to put the rollcount on different (non-vB) pages, maybe that will help.

Benj
05-09-2005, 08:30 AM
https://vborg.vbsupport.ru/showthread.php?t=81009 please please please :D :D lol i need this

nice one

SamirDarji
05-10-2005, 06:21 AM
I'm working on a way to put the rollcount on different (non-vB) pages, maybe that will help.Cool! How are you going about it?

ricker
05-10-2005, 03:25 PM
Good luck with the new code! I have a simpler request that I can't seem to get right: How would I link a username to their profile?

TIA
Sarah

Moncha
05-10-2005, 09:26 PM
Simple DB query but we'll see

Ricker.. Post 24 (Look at https://vborg.vbsupport.ru/showpost.php?p=497581&postcount=24)

SamirDarji
05-11-2005, 02:27 AM
Good luck with the new code! I have a simpler request that I can't seem to get right: How would I link a username to their profile?

TIA
SarahSee this post: https://vborg.vbsupport.ru/showpost.php?p=558805&postcount=97

ricker
05-11-2005, 03:51 PM
Thanks y'all ... I gave that a try yesterday and it didn't work, but I am up for trying it again. :)

*update* ok, i got it working, i think it was interfering with another hack, plus i forgot the end bracket after troubleshooting it. thanks for pointing me in the right direction, sometimes i'd rather be sure when playing with a live board! hehe, this hack rocks :)

JC
05-12-2005, 07:33 AM
I may try this, thanks.

Turbo_WRX
05-13-2005, 08:18 AM
hey i need help, installed it, but and the option to use roll call is there, however when i create the event, users have no button to click to say they'll be attending, and i can't delete, or edit any event, what did i do wrong?

Moncha
05-14-2005, 01:24 AM
Go back over all of your changes.. Compare the changes to your orgiginal files. You did make back ups of the changed files didn't you? It works so you make a boo boo some where.

djsydeburnz
05-18-2005, 12:53 AM
so, does this not work with 3.0.7? Ive done everything 3 times and dont see any options to 'attend' the event.

Moncha
05-18-2005, 04:13 AM
This does work with 3.0.7 Make sure you have all of the updates and changes, it'll be a little hard because the the thread is broken up quite a bit but it does work.

djsydeburnz
05-18-2005, 12:41 PM
the thread is broken up? do you mean other posts in this thread have fixes? is there a complete dowload for it at all?

SamirDarji
05-18-2005, 04:28 PM
the thread is broken up? do you mean other posts in this thread have fixes? is there a complete dowload for it at all?There are a few bugs in the hack and a few fixes, but reading a bit will find you all of them.

Speaking of which, is it just me, or when I select "I am attending" does the date change when the event listing comes back?

mfarmerhi
05-29-2005, 04:20 AM
the thread is broken up? do you mean other posts in this thread have fixes? is there a complete dowload for it at all?
djsydeburnz, the code seems to work fine on 3.0.7 as is (up to and including the "attend" function, although I did not test the full functionality before updating the script with several of the additions that are listed in this thread).

If it's not working for you it might just be copy and pasting errors... there are a few close brackets that were barely noticeable; a couple of things that -- if you double check -- you might find errors in.

Question

Did anyone ever fix the situation where confirming attendance for a re-occurring event, lists you on ALL occurrences of that event?

~ Mark

mfarmerhi
05-29-2005, 04:34 AM
Did anyone ever fix the situation where confirming attendance for a re-occurring event, lists you on ALL occurrences of that event?Nope, I just double checked and didn't find anything. Anyone have a solution?

Moncha
05-29-2005, 12:58 PM
There is nothing wrong with the script, that is the way it is supposed to work so, there is no fix. There are already WAY too many hacks done to this script as it is so it really needs to be re-witten completely.

mfarmerhi
05-29-2005, 04:23 PM
There is nothing wrong with the script, that is the way it is supposed to work so, there is no fix. There are already WAY too many hacks done to this script as it is so it really needs to be re-witten completely.
I didn't say there was anything "wrong" with the script. I asked for a solution to confirmed attendances repeating with repeating events.

Iagree that it would be great if someone re-wrote and re-released the code to include the fixes and modification that have been discussed.

But as for "way too many" mods being done to the script, like any Mod, that's the whole point: start with a foundation and modify to suit your needs.

My need is something that doesn't repeat confirmed attendance with confirmed events.

Can anyone suggest a solution?

djsydeburnz
05-29-2005, 05:13 PM
I seemed to have got this working, but i cannot figure out what i could have messed up. There are a couple of things that seem wrong. First off, I cannot view any of the events logged in as admin or as one of my test users. It seems to take me to the edit mode. Also, the date is messed up cuz in the edit mode it shows the date to edit, but no dropdown (only text box) for the day and nothing is selectable in the dropdown for the year.

any help is appreciated.
thanks in advance.

mfarmerhi
05-29-2005, 05:39 PM
Glad you made progress.

It's hard to give some direction on what might be going wrong w/out seeing all the changes, but usually, when I've been hacking away, making changes then trying to unchanged them, I'll usually just start fresh: upload the original, unmodified code; then give it a fresh go.

If your code is behaving as you've described, it still sounds like you're missing some end brackets, semi-colons, etc. But hard to give you any indication (without seeing all of your code), where that may be happening.

djsydeburnz
05-29-2005, 06:13 PM
wow, this has been the hardest one ive done so far. now i got it almost there. everythingis working except the dropdown for forum options. i cannot select anything to go there (edit, delete, move) browser shows error on line 588 in calendar.php but i dont see anything there that i edited at all. hmmm

djsydeburnz
05-29-2005, 06:30 PM
i also cannot seem to find in the roll call.txt file i downloaded today where i put in the code for [I will be attending this even with XXX guests "submit"] but i can see it when viewing a test event. i was maybe hoping to edit the text.

djsydeburnz
05-29-2005, 06:33 PM
after i select that i will be attending, it will allow me to use the dropdown menu now on the right (edit, delte, move)....very wierd.

oh, and thanks for the help so far!

mfarmerhi
05-29-2005, 06:47 PM
djsydeburnz, I also did the hacks sequentially. That is, I just did the hacks in the original mod, then tested it to make sure it worked like that (it did); the performed the changes/corrections on page 2 of this thread, tested (still worked); and finally added in some mods discussed in pages 12-14, testing again.

Taking the hack step-by-step, testing between each new revision, will also make it clearer where errors might have been made.

Also, be careful depending on which method of cutting and pasting you're using -- it's easy to get a line break / extra space in there that often will cause errors...

Keep working it, you'll get it.

~ Mark

djsydeburnz
05-29-2005, 07:08 PM
any way to get the templates that i edited to revert back to defaul without doing all templates?

also, anyone else have trouble with the username linking? my link just says:

.....forums/member.php?u=

no username after it, obviously a dead link

SamirDarji
05-31-2005, 04:57 AM
My need is something that doesn't repeat confirmed attendance with confirmed events.

Can anyone suggest a solution?I actually need this too, but I don't see a way to do it. I've been using this hack from the beginning of my site and am very happy with it. I also have many recurring events that if you say you are going to attend, you attend them all. The reason for this is because the event listing for a recurring event is just a special type of single event listing. And since the attendance list is tied to the event listing in the database, the same list appears on all recurring event listings. The only way to make it remember each list individually is to make individual event listings. :(

mfarmerhi
06-02-2005, 01:54 AM
Samir, likewise as we've been talking on the "Start new thread on calendar event" thread, adding a new column onto the database table and converting events to unique items (event[date]) would allow confirmation of ONLY that specific event...

SamirDarji
06-02-2005, 04:21 AM
I think it would be a good idea. Even for the calendar in general. This could be a hack on its own that could be used in conjunction with calendar hacks. Anyone up for coding this?

Wisch
06-03-2005, 12:23 AM
installed, awesome.

djsydeburnz
06-08-2005, 09:18 PM
any way to get the templates that i edited to revert back to defaul without doing all templates?

also, anyone else have trouble with the username linking? my link just says:

.....forums/member.php?u=

no username after it, obviously a dead link

any more direction to be provided here? I have edited all the stuff a few times and keep coming up with the same results. Broken username . . .

SamirDarji
06-14-2005, 05:01 PM
any more direction to be provided here? I have edited all the stuff a few times and keep coming up with the same results. Broken username . . .To get a template back to stock, you can revert that particular template. I'd just check the edits. Something is missing somewhere. Mine works fine.

djsydeburnz
06-16-2005, 12:41 AM
woohoo.....i guess i missed the edit in the calendar.php a few pages back. i thought the link to username would just be in the templates. got it to work...yeah.

did anybody mention the idea of having the events that have been / will be attended show on member profile?

how about email or private message event poster an update of total count of attendees?

email or private message attendees of changes in event?

invite members to event by private message or email?

also, would it be difficult to change the way the calendar displays by default? the typical calendar view seems so much like every other calendar out there. even just a simple top to bottom listing would be cool.

sorry for all the q's.

later.

SamirDarji
06-16-2005, 12:36 PM
woohoo.....i guess i missed the edit in the calendar.php a few pages back. i thought the link to username would just be in the templates. got it to work...yeah.

did anybody mention the idea of having the events that have been / will be attended show on member profile?There was talk about this, but I'm not sure if anyone has started any coding on it. It definitely adds to the functionality of the hack, but also the complexity.

how about email or private message event poster an update of total count of attendees?This would be useful to some, but will require some coding. I think someone could even make it a hack add-on.

email or private message attendees of changes in event?This would be nice as a default vb feature under the calendar. Like a way to subscribe to an event under the calendar.

invite members to event by private message or email?If there was a link to be able to email a link, that would be a quick and dirty way to do it. Again, this is something that could be an add-on.

also, would it be difficult to change the way the calendar displays by default? the typical calendar view seems so much like every other calendar out there. even just a simple top to bottom listing would be cool.

sorry for all the q's.

later.Changing the view of the calendar would require template and php file changes, although I'm not sure exactly what you want to change.

djsydeburnz
06-16-2005, 11:46 PM
now, only if i had as much knowledge of php as i do of ideas.

what i meant on the design layout was more of a listing (top to bottom), maybe weekly as default, options of monthly. just a basic listing you could scroll though. not baggin on the design, cuz that is how everyone designs their calendar....but then again, that is the reason i wouldnt mind coming up with a different look.

im glad you liked my ideas...hopefully someone will like them enough to try out some coding on them.

what would be perfect would be a module similar to the Evite.com website.

SamirDarji
06-18-2005, 07:16 AM
now, only if i had as much knowledge of php as i do of ideas.Outsource! Outsource it and they will come!

what i meant on the design layout was more of a listing (top to bottom), maybe weekly as default, options of monthly. just a basic listing you could scroll though. not baggin on the design, cuz that is how everyone designs their calendar....but then again, that is the reason i wouldnt mind coming up with a different look.I have weekly set as default. You can set that under vb option. As far as coming up with a different look. If you want to be different just to be different, maybe you're missing the point--it works the way it is, even if it is like everyone else's.

buurman
06-25-2005, 11:42 AM
*buurman has clicked install!!!

great work, nice mod!! needed it thx!

dknelson
06-27-2005, 08:31 PM
I see that this is an old thread. Has anybody ever consolidated all the changes and fixes or is there another solution available?

Thanks,
Don

alkatraz
06-28-2005, 04:31 AM
i would love to see this for vb 3.5 =)

Mighty Mojo
06-28-2005, 07:53 AM
This would be outstanding if there were an option to ask the user on the next login (after the even they registered for took place) whether they attended or not and allowed for a poll to be taken at that point (that would tally up from all other members who attended) asking for feedback and whether the event went well.

romerom
07-24-2005, 03:41 AM
i just ran through this series of changes and i see absolutely no difference in my calender view. i can't see any option to mark that i'm attending an event or view who is attending. i am running vb 3.0.7

romerom
07-26-2005, 02:34 AM
i just ran through this series of changes and i see absolutely no difference in my calender view. i can't see any option to mark that i'm attending an event or view who is attending. i am running vb 3.0.7

i fixed it - my bad :)

romerom
07-26-2005, 03:21 AM
i fixed it - my bad :)

ok one request - can you update the mod to make it so that if we have a repeating event, it doesn't necessarily mean that if I am attending one week, i will be attending the second week?

SamirDarji
07-27-2005, 09:14 PM
ok one request - can you update the mod to make it so that if we have a repeating event, it doesn't necessarily mean that if I am attending one week, i will be attending the second week?https://vborg.vbsupport.ru/showpost.php?p=660336&postcount=222

ricker
07-30-2005, 03:42 AM
Is anyone running 3.5 yet? How hard would it be to recode this hack to work, or at least use something similiar? Just looking for the basics, "I am attending" link and maybe the guest option, that rocks. Hope to be upgrading real soon.
Sarah

arpy
08-04-2005, 01:00 PM
Is anyone running 3.5 yet?

I've ported this hack to 3.5 RC1 and I will release this version on next weekend.

This version will be fully compatible to the 3.0x version - so you will be able to upgrade to 3.5 without loosing your event information.

arpy

ricker
08-04-2005, 03:53 PM
I've ported this hack to 3.5 RC1 and I will release this version on next weekend.

This version will be fully compatible to the 3.0x version - so you will be able to upgrade to 3.5 without loosing your event information.

arpy

arpy - YOU ROCK! thank you! this is by far my favorite hack.

SamirDarji
08-04-2005, 06:31 PM
I've ported this hack to 3.5 RC1 and I will release this version on next weekend.

This version will be fully compatible to the 3.0x version - so you will be able to upgrade to 3.5 without loosing your event information.

arpySweet! Great work! I wasn't sure if anyone was going to do this.

arpy
08-07-2005, 10:40 AM
An updated/rewritten version of this hack is now available at
https://vborg.vbsupport.ru/showthread.php?p=751158

arpy

harry1951
09-17-2005, 05:23 PM
Is it possible to install this hack in combination with this one? https://vborg.vbsupport.ru/showthread.php?t=78210

Hades-1
09-18-2005, 06:52 PM
why not update this for 3.0.8 rather then 3.5?

in using 3.0.7 and when trying the file changes some of them cant be found to change, so im assuming this doesnt work with 3.0.7 and just 3.0.0 or maybe 3.0.3

FleaBag
09-19-2005, 08:56 AM
Why make a hack for an old [and soon to be discontinued] version of software? Doesn't make sense to me...

Hades-1
09-19-2005, 04:07 PM
Why make a hack for an old [and soon to be discontinued] version of software? Doesn't make sense to me...

because as you can (apprently not) tell just by reading these forums not everyone will swtich, just like with lots of software or portal systems or php files, some people make so many mods or grew their site into what it is and it took so long that it cant be altered or at least right away.

I plan to eventually install 3.5 on a dummy site and slowly re install all the changes and mods i have as they are re-released, but this will take time.

Heck i still know of plenty of people using VB 2 and lots of people using 3.0.3 and not planning to upgrade to 3.0.7 or 3.5 for that matter.

Phrost
09-20-2005, 07:45 PM
Is it possible to install this hack in combination with this one? https://vborg.vbsupport.ru/showthread.php?t=78210

I've installed that one and am trying to make it work with this. So far (probably due to my own screwup) I don't see the option to RSVP in the actual post, but the option to allow people to do so is there.

And somehow I've managed to get events to post themselves twice...

xfaethorx
11-17-2005, 09:51 AM
has anyone got this hack working on 3.0.7 and above?

My memebers are requestion such a hack and i'd like to install this however if its not compatible then I need to look elsewhere.

SamirDarji
11-17-2005, 08:53 PM
I believe there are people using it on 3.0.7.