
06-29-2006, 03:16 PM
|
 |
|
|
Join Date: Apr 2006
Location: In a house.
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by louis_chypher
To allow an attendee to input an attendence count I did the following:
Code:
Template Edits
In calendar_showeventsbit
find (near top):
<form action="calendar.php" method="post" >
change to:
<form action="calendar.php" method="post" name="calendar_showeventsbit">
In calendar_roll
replace entire contents with:
<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 />
<!-- Number in Party field -->
<input type="text" name="partycount" onkeyup="doAttend();">
<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 doAttend()
{
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>
<!-- / Number in Party field -->
</if>
</if>
In Plugin System | Plugin Manager
Code:
In Plugin System | Plugin Manager
Edit: Event Attendance - show/enroll
Find: ($vbulletin->options['lateenroll'])) ? true : false;
Add below:
$inparty = $_REQUEST['pc'];
if ($inparty == "")
{
$inparty = "1";
}
Find:
$roll[$vbulletin->userinfo['userid']] = $vbulletin->userinfo['username']
change to:
$roll[$vbulletin->userinfo['userid']] = $vbulletin->userinfo['username'] . ", " . $inparty;
If you did the email mod:
then replace with(goes under > $roll[$vbulletin->userinfo['userid']] = $vbulletin->userinfo['username'] . ", " . $inparty;:
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']);
I will work on getting the proper attendee count to appear on the event page .
|
What does this do?
|