Version: 1.00, by Kentaurus
Developer Last Online: Jul 2014
Version: 3.0.0
Rating:
Released: 04-04-2004
Last Update: Never
Installs: 164
No support by the author.
Request by: DaveLogic
With this hack when you create an event you can give the users an option to "register" to the event. Then you can view which people have registered to that event.
This could be used so you create an event and then other people notify that they will be attending to the event. You can then keep track of all the people that would be attending each event.
Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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
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".
<p><strong>People attending this event</strong>:</p>
<if condition="$rollbits">
<ul>
$rollbits
</ul>
<else />
<p><i>Nobody yet!</i></p>
</if>
<if condition="$bbuserinfo[userid] > 0">
<if condition="$show[userattending]">
[<a href="calendar.php?$session[sessionurl]do=unattend&e=$eventinfo[eventid]">I will no longer be attending this event</a>]
<else />
[<a href="calendar.php?$session[sessionurl]do=attend&e=$eventinfo[eventid]">I will be attending this event</a>]
</if>
</if>
Finally... find and correct the label title for the checkbox in the calendar_edit template... it should be:
Code:
<div><label for="cb_roll"><input type="checkbox" name="useroll" value="1" id="cb_roll" tabindex="3" $useroll />Allow users to specify that they will be attending this event.</label></div>
Some of that may not work in old versions of PHP, you'll have to try it and see
With this hack when you create an event you can give the users an option to "register" to the event. Then you can view which people have registered to that event.
This could be used so you create an event and then other people notify that they will be attending to the event. You can then keep track of all the people that would be attending each event.
There is a small bug, here is the description and fix for it.
If you have multiple events on the same day using the event attendance hack, and then view the day via the calendar... which lists all events on that day.
In this scenario the roll from event 1 is added to event 2, and 1 + 2 are added to event 3.
This occurs because a loop in calendar.php does not unset the rollbits HTML each time it starts processing a new event.
The fix is to find within calendar.php this:
PHP Code:
if ($eventinfo['useroll']) {
And change it to this:
PHP Code:
if ($eventinfo['useroll']) {
unset($rollbits);
This will nuke the variable that contains the HTML of the rollbits from the last event, thus ensuring that attendees aren't appearing at events that they didn't mark themselves as attending.
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....