The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Event Attendance 2.0 Details »» | |||||||||||||||||||||||||
This is an update version of the vB 3.0x "Event Attendance" hack found HERE. Thanks to Kentaurus for allowing redistribution.
I have rebuild/rewritten the hack for vB 3.5 - now it is no longer a hack but a plugin. No template modifications and no code modifications required. This plugin allows users to enroll for events. When a new event is created, the user can decide if this feature is available for this event. This plugin includes (from the 3.0x Version and Thread):
It does not include (from the old thread):
Additional Features:
Installation:
Known Problems:
If you upgrade from 3.0x:
I list the feature requests here - this does not mean that I will code it. If you are a coder feel free to code it and release it as addon or allow me to include it here.
Please click INSTALL if you like this plugin. Show Your Support
|
Comments |
#212
|
||||
|
||||
can someone update this for 3.6.0? i have it installed the only thing i can see that it is missing are the 2 links to enroll or unenroll....
|
#213
|
||||
|
||||
Quote:
|
#214
|
||||
|
||||
To allow an attendee to input an attendence count I did the following:
Template Edits In calendar_showeventsbit find (near top): Code:
<form action="calendar.php" method="post" > Code:
<form action="calendar.php" method="post" name="calendar_showeventsbit"> replace entire contents with: Code:
<p><strong><phrase 1="$rollcount">$vbphrase[roll_text]</phrase></strong></p> <if condition="$rollbits"> <ul> $rollbits </ul> <else /> <p><i>$vbphrase[roll_nobody]</i></p> </if> <if condition="$bbuserinfo[userid] > 0 && $show[enroll]"> <if condition="$show[userattending]"> <a href="calendar.php?$session[sessionurl]do=getinfo&ea=unattend&e=$eventinfo[eventid]">$vbphrase[roll_cancel]</a>] <else /> <input type="text" name="partycount" onkeyup="doAttendCount();"> <input type="hidden" name="pc_surl" value="$session[sessionurl]"> <input type="hidden" name="pc_eventid" value="$eventinfo[eventid]"> <input type="hidden" name="pc_pharse" value="$vbphrase[roll_enroll]"> </br> <div id="attendlink"> <a href="calendar.php?$session[sessionurl]do=getinfo&ea=attend&e=$eventinfo[eventid]">$vbphrase[roll_enroll]</a> </div> </br> <script language="javascript"> function doAttendCount() { var sVar; sVar= '<a href="calendar.php?'+document.calendar_showeventsbit.pc_surl.value+ 'do=getinfo&ea=attend&e='+ document.calendar_showeventsbit.pc_eventid.value + '&pc=' + document.calendar_showeventsbit.partycount.value+'">' + document.calendar_showeventsbit.pc_pharse.value+'</a>'; document.getElementById("attendlink").innerHTML = sVar; } </script> </if> </if> In Plugin System | Plugin Manager Edit: Event Attendance - show/enroll Find: Code:
($vbulletin->options['lateenroll'])) ? true : false; Code:
$inparty = $_REQUEST['pc']; if ($inparty == "") { $inparty = "1"; } if (!(is_numeric($inparty))) { $inparty="1"; } Code:
$roll[$vbulletin->userinfo['userid']] = $vbulletin->userinfo['username'] Code:
$roll[$vbulletin->userinfo['userid']] = $vbulletin->userinfo['username'] . ", " . $inparty; Code:
$roll[$vbulletin->userinfo['userid']] = $vbulletin->userinfo['username'] . ", " . $inparty; Code:
vbmail("youremailaddress@yourdomainname.com", "Attend " . $eventinfo['title'], "Alias: "
. $vbulletin->userinfo['username'] . " will be attending " . $eventinfo['event'] .
" Party count =" . $inparty,
false, $vbulletin->userinfo['email'], '', $vbulletin->userinfo['username']);
Code:
$rollcount++; Code:
list($usrName, $pcount)=split(",",$rollusername); $rollcount=$rollcount + $pcount; Oh! and if you do use the send email do not forget to set the email address you want the event sent to. |
#215
|
||||
|
||||
Quote:
|
#216
|
||||
|
||||
Quote:
It puts an input box on the screen that enables the antendee to enter a number in party. |
#217
|
||||
|
||||
Quote:
|
#218
|
||||
|
||||
Thank you!! Thank you!! Thank you!! Thank you!! Thank you!! Thank you!! I've made the modifications and everything work flawlessly The only thing I wasn't able to do was to find "$rollcount++;" but I'll search more deeply...
Thanks again |
#219
|
||||
|
||||
Found a bug I think. The system work but the total number of people is always 1 for one person also if this person will attend in 2 or 3. For example
Andrea, 2 Tony, 3 John, 2 Will show as "There will be 3 people attending" and not "There will be 7 people attending". What do you think? Maybe is because I've not modified $rollcount++; ? |
#220
|
||||
|
||||
Forget about my last post. Was because I have not updated $rollcount++
Wonderful work!!!!!! |
#221
|
||||
|
||||
louis_chypher has done a wonderful work and everyhting is working very very well.
I've a suggestion for you... Instead of putting a text field where the user input the number, will be possible to have a popup menu with only the available values? I run a bikers club and when the people subscribe to the event, they could be just one or two people per bike so I would like to have a popup menu with the values of 1 or 2 so nobody can input numbers like 1.5 or -12 or 500... I suppose, but maybe I'm wrong that this is the code that draw the input box Code:
<input type="text" name="partycount" onkeyup="doAttendCount();"> Code:
<select name="partycount" size="1"> <option>Number of people</option> <option value="1">1</option> <option value="2">2</option> </select> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|