The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Event attendance Details »» | |||||||||||||||||||||||||
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
|
Comments |
#22
|
|||
|
|||
Quote:
I'll leave it to the hacker to mod/display. Christian |
#23
|
|||
|
|||
Quote:
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 |
#24
|
|||
|
|||
Quote:
|
#25
|
|||
|
|||
Quote:
This is what I sent to the first person that asked: In calendar.php the block of code you would have adjusted following: PHP Code:
PHP Code:
Code:
<li><a href="member.php?u=$rolluserid">$rollusername</a></li> Code:
<p><strong>People attending this event</strong>:</p> <if condition="$rollbits"> <ul> $rollbits </ul> <else /> <p><i>Nobody yet!</i></p> </if> <if condition="$bbuserinfo[userid] > 0"> <if condition="$show[userattending]"> [<a href="calendar.php?$session[sessionurl]do=unattend&e=$eventinfo[eventid]">I will no longer be attending this event</a>] <else /> [<a href="calendar.php?$session[sessionurl]do=attend&e=$eventinfo[eventid]">I will be attending this event</a>] </if> </if> 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> |
#26
|
|||
|
|||
Thanks! Could you edit your post and take out my email? I edited mine because if not I'll get blasted with spam.
|
#27
|
|||
|
|||
Awesome! Thank you, thank you, thank you!
|
#28
|
|||
|
|||
Quote:
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:
PHP Code:
Cheers David K |
#29
|
|||
|
|||
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 ################################################## ########### |
#30
|
|||
|
|||
Quote:
|
#31
|
|||
|
|||
Now the only problem i have is the 2 PHP files won't work
I have had to upload the original version DOH!!!! Just ignore me, I'm was having a blonde moment |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|