I've applied James hack below but I can't now edit an event, clicking the edit button submits me as attending member
I'm working round it by running a testing template without the calendar roll template submit form hack, is there any other way of doing it??
Quote:
Originally Posted by James Goddard
I had PM'd arpy asking him to include this with the module but he seems to be AWOL.
Here is how you can add guests to this hack after it is installed:
calendar_roll template:
Find
PHP Code:
<else />
[<a href="calendar.php?$session[sessionurl]do=getinfo&ea=attend&e=$eventinfo[eventid]">$vbphrase[roll_enroll]</a>]
</if>
Replace with
PHP Code:
<else />
<form action="calendar.php" method="post">
<input type="hidden" name="do" value="getinfo" />
<input type="hidden" name="ea" 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>
Event Attendance - show/enroll plugin:
Find
PHP Code:
$roll[$vbulletin->userinfo['userid']] = $vbulletin->userinfo['username'];
Replace with
PHP Code:
$info = $vbulletin->userinfo['username'];
$guests = intval( $_REQUEST['guests']);
if (1 == $guests)
$info .= ' (' . $guests . ' guest)';
else if ($guests > 0)
$info .= ' (' . $guests . ' guests)';
$roll[$vbulletin->userinfo['userid']] = $info;
|