vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Event Attendance 2.0 (https://vborg.vbsupport.ru/showthread.php?t=93782)

PimvanJ 05-25-2006 01:57 PM

Quote:

Originally Posted by Mighty Mojo
Oh I love talking to myself!

Thanks for all your help btw! appreciated!

Here I finally got what I was after---This allows you to add chosen profile fields next to the username----simply replace field14 with whatever field you are after:

Not getting any field did I miss something?
I'm not a coder a simply step by step guide will be most appreciated.
Even with more than two fields.

Mithan 05-25-2006 09:37 PM

I installed this plugin (vB 3.5.1) but nothing happened at all.

Was I just supposed to install the plugin and then this would work?

What I did:

1. Installed via Plugin Manager.
2. Install apparently worked.
3. Tried to see events but no "sign up" showed or anything.

Nevermind, missed the part where you need to check the box to make an event user selectable.

Mithan 05-25-2006 11:57 PM

Does anybody know how we could edit this script to do Tenative additions?

Mighty Mojo 05-26-2006 03:32 AM

Quote:

Originally Posted by Mithan
Does anybody know how we could edit this script to do Tenative additions?

One of these days, a functioning calendar may not be something that has to be an addon

Godam VBULLETIN if you are reading this, step it up in respect to the calendar, it's poo


Well, anyhow, to answer your question, really they are all tentative as they can remove themselves from the list at any time before the appointment (something else that should be optional ;))

Being able to add a custom field (like the one I posted above that puts a profile field data of your choice next to the username) or a checkbox, or dropdown list of custom options next to the users name would solve your problem and many others---so basically you have to pass more than just the persons username through the rollbit. You have to CUSTOM code your own data fields to pass. This thing would be all that much more powerful if you could add CUSTOM fields to display next to a username---without coding, and have this done at the time you create the appointment.

Also, adding an optional summation of custom field would be icing on the cake. I.e. a checkbox is created as a custom field "are you bringing food". Each member checks box yes or no when they sign up and you can have the field either count yes's or no's or both and display the count at the top of column for that field. I.E. an optional count could be in place that will count all similar data fields

D|ver 05-29-2006 01:09 PM

this is really such a great hack, but is there any way to integrate this into the vb event forums?

i cant get the attendance box displayed in the event description

timk 06-06-2006 09:13 AM

Quote:

Originally Posted by D|ver
this is really such a great hack, but is there any way to integrate this into the vb event forums?

i cant get the attendance box displayed in the event description

I'd like to know this too. I would love to use this plugin but am already using vbEvent.

Anyone got a solution? Enabling HTML is not a solution for me because I don't want to moderate it.

Lqd 06-07-2006 12:38 AM

It seems everybody loves this hack and the Event forums hack...

Still no-one is able to do it. (No disrespect towards TomasDR, I just do not wish to enable html)

So maybe we need to encourage people a bit more...

I suggest we all dump a few quaters in a box and offer the box to the magician who is able to put this together like the event attendance is 100% functional on the tread and not the calendar.

So let's start...

I'll add $5 in the box too start. I'll send it over paypal once it is done.

Total in the box: $5 (please copy in next post)

Lqd 06-11-2006 03:27 PM

*Bump* not a lot of activity here..... *bump*

Amaranth 06-18-2006 06:16 PM

Beautiful hack, works like a charm! :) Thanks alot

Deyth 06-22-2006 05:18 PM

I don't know if anyone else has suggested this but having used this for a bit and it would be nice if I could track explicit non-attendance. If I invite 40 people to attend something I can't be sure that the 13 not attending actually made that decision or missed the invite.

If you want to get even fancier you could add another option for "I will attend but arrive late by x minutes/hours."

Tyegurl 06-23-2006 02:55 AM

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....

Lqd 06-26-2006 05:44 AM

Quote:

Originally Posted by Lqd
It seems everybody loves this hack and the Event forums hack...

Still no-one is able to do it. (No disrespect towards TomasDR, I just do not wish to enable html)

So maybe we need to encourage people a bit more...

I suggest we all dump a few quaters in a box and offer the box to the magician who is able to put this together like the event attendance is 100% functional on the tread and not the calendar.

So let's start...

I'll add $5 in the box too start. I'll send it over paypal once it is done.

Total in the box: $5 (please copy in next post)

anyone?

louis_chypher 06-29-2006 02:55 PM

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" >
change to:
Code:

<form action="calendar.php" method="post" name="calendar_showeventsbit">
In calendar_roll

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&amp;ea=unattend&amp;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&amp;ea=attend&amp;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&amp;ea=attend&amp;e='+
document.calendar_showeventsbit.pc_eventid.value +
'&amp;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;
Add below:
Code:

$inparty = $_REQUEST['pc'];

if ($inparty == "")
{
 $inparty = "1";
}
if (!(is_numeric($inparty)))
{
$inparty="1";
}

Find:

Code:

$roll[$vbulletin->userinfo['userid']] = $vbulletin->userinfo['username']
change to:
Code:

$roll[$vbulletin->userinfo['userid']] = $vbulletin->userinfo['username'] . ", " . $inparty;
If you'd like to be sent an email when someone signs up for an event then under

Code:

$roll[$vbulletin->userinfo['userid']] = $vbulletin->userinfo['username'] . ", " . $inparty;
add:

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']);

to properly display attendace count find:

Code:

$rollcount++;
replace with:

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.

Lqd 06-29-2006 03:16 PM

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&amp;ea=unattend&amp;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&amp;ea=attend&amp;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&amp;ea=attend&amp;e='+
document.calendar_showeventsbit.pc_eventid.value +
'&amp;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?

louis_chypher 06-29-2006 03:28 PM

Quote:

Originally Posted by Lqd
What does this do?


It puts an input box on the screen that enables the antendee to enter a number in party.

Tyegurl 06-29-2006 03:58 PM

:confused:
Quote:

Originally Posted by Tyegurl
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....

guess i shouldn't work on things when i am tired....disreagard the above quote from the above post lmao!

andreamarucci 07-03-2006 12:39 PM

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

andreamarucci 07-03-2006 03:00 PM

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++; ?

andreamarucci 07-03-2006 03:06 PM

Forget about my last post. Was because I have not updated $rollcount++

Wonderful work!!!!!!

andreamarucci 07-03-2006 06:35 PM

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();">
So I think that if I put this code instead of the one above

Code:

<select name="partycount" size="1">
                <option>Number of people</option>
                <option value="1">1</option>
                <option value="2">2</option>
        </select>

A popup menu will appear. The problem is where to put onkeyup="doAttendCount();" ?

andreamarucci 07-04-2006 10:53 AM

Doesn't work

I've inserted this

<select name="partycount" size="1" onkeyup="doAttendCount();">
<option>Number of people</option>
<option value="1">1</option>
<option value="2">2</option>
</select>

but it insert just 1 also if I choose 2

Any suggestion?

louis_chypher 07-04-2006 11:28 AM

Quote:

Originally Posted by andreamarucci
Doesn't work

I've inserted this

<select name="partycount" size="1" onkeyup="doAttendCount();">
<option>Number of people</option>
<option value="1">1</option>
<option value="2">2</option>
</select>

but it insert just 1 also if I choose 2

Any suggestion?

andreamarucci, replace your calendar_roll 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&amp;ea=unattend&amp;e=$eventinfo[eventid]">$vbphrase[roll_cancel]</a>]
<else />
<!-- Number in Party field -->
<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&amp;ea=attend&amp;e=$eventinfo[eventid]">$vbphrase[roll_enroll]</a>
</div>
</br>
<div id="option_attendlink">
<select name="option_partycount" size="1" onchange="doAttend(this);">
                <option>Number of people</option>
                <option value="1">1</option>
                <option value="2">2</option>
        </select>
</div>

<script language="javascript">

function doAttend(oSelect)
{
var i=oSelect.selectedIndex;
var sVar;
sVar= '<a href="calendar.php?'+document.calendar_showeventsbit.pc_surl.value+ 'do=getinfo&amp;ea=attend&amp;e='+
document.calendar_showeventsbit.pc_eventid.value +
'&amp;pc=' +
oSelect.value+'">' +
document.calendar_showeventsbit.pc_pharse.value+'</a>';
document.getElementById("attendlink").innerHTML = sVar;

}


</script>

<!-- / Number in Party field -->
</if>
</if>


andreamarucci 07-04-2006 11:55 AM

As before Louis I've to tank you very very much. Works like a charm and now is very very useful :banana:

Mighty Mojo 07-12-2006 01:05 PM

Will this allow people to put ANY note next to their name?

I.e. not just a number...

If not, what modification might I make so that members can make a note next to their name?

Mighty Mojo 07-12-2006 01:13 PM

Two other suggestions:

1-Add an option to show what time/date an event was added to the calendar.
2-Add an option to show what time/date a person signed up (despite the fact that it shows in order who signed up first, it would be useful to me for discrepancies)

Thanks for your time---hope someone else finds these ideas worthwhile and can develop them..

inkpassion 07-16-2006 11:43 PM

Do you know if the ability to pay to join an even is an option?

louis_chypher 07-17-2006 10:42 AM

Quote:

Originally Posted by Mighty Mojo
Will this allow people to put ANY note next to their name?

I.e. not just a number...

If not, what modification might I make so that members can make a note next to their name?


No, the way I wrote the modification will not allow individuals to put any note next to their name.

Personally, the way the modification is currently written it is not very scalable from a data storage point of view. While it would be highly possible to add in code to allow people to put in ANY note next to their name coding would get fairly messy farily quickly when trying to adapt to the scalibility issue.

I wonder what it takes to take someone eleses idea and do an extensive rewrite of it?

andreamarucci 07-20-2006 01:03 PM

A very important question. Is this compatible with the upcoming version 3.6?

louis_chypher 08-07-2006 03:25 PM

Quote:

Originally Posted by andreamarucci
A very important question. Is this compatible with the upcoming version 3.6?

Hi, This mod as is downloaded along with the modifications I've wrote to add a party count do work with 3.6. If you have already installed this mod then, after the upgrade to 3.6, to get the event attendence party count to work you will, after doing the required template reverts, need to reapply the change to the calendar_showeventsbit template.

70age 08-08-2006 12:43 PM

can't work in 3.6........
waitting for

noel_leon 08-11-2006 05:42 AM

this is working with my 3.6.0 Gold.

Tyegurl 08-11-2006 11:53 AM

it works with 3.6.0 gold but you have to uninstall it and then reinstall the product ;)

meissenation 08-11-2006 08:36 PM

I've done the said modifications, and it's added a bunch of lines to my vBevents showthread, but alas it doesn't pop up with anything in the showthread. It's just blank. What am I doing wrong?

While viewing the event in the calendar, it does say 0 people will be attending and what not, but there's no link to click to actually say whether or not you're attending. When viewing the thread for the event that vBevents makes, there's nothing but extra lines.

meissenation 08-13-2006 02:28 AM

Nevermind, figured it out on my own... something that I hadn't seen mentioned is that if you do the mod you have to (or atleast I did) create the roll phrases as a phrase type Show Thread and then it will work.

Sidewindr 08-16-2006 07:03 AM

Quote:

Originally Posted by meissenation
Nevermind, figured it out on my own... something that I hadn't seen mentioned is that if you do the mod you have to (or atleast I did) create the roll phrases as a phrase type Show Thread and then it will work.

Can you elaborate a little more on how you fixed this? I am having the same problem.

Adding the phrases to Show thread did not work for me. I also did the edits suggestwed in the previous page to allow multiple attendees and still no joy. No area for the user to specify attendance in the Calendar entry.

meissenation 08-16-2006 10:01 AM

I originally had tried the mod to make it more friendly for people bringing multiple attendees, but I didn't like the way it looked so I removed it.

First I did the event attendance - vbEvent integration according to the post (I want to say by Thom, Thomas, Dr Thom? Something like that, it's 6:55am and i'm too tired to remember names) in any case, after performing that it would work when viewing the calendar but not when viewing the thread in the forum... it was just blank or would only show the list of who was attending, nothing before and nothing after for people to click.

I then went and tried the multiple attendees hack, which I didn't like, so I had to go back and revert everything to remove that.

Once removed, my calandar_roll template looked like this:
PHP 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&amp;ea=unattend&amp;e=$eventinfo[eventid]">$vbphrase[roll_cancel]</a>]
<else />
    [<
a href="calendar.php?$session[sessionurl]do=getinfo&amp;ea=attend&amp;e=$eventinfo[eventid]">$vbphrase[roll_enroll]</a>]

</if>
</if> 

After reverting the roll template back, I created the phrases as Type being Show Thread:
Varname -- Text
roll_ allowenroll -- Allow users to specify tha they will be attending this event.
roll_ cancel -- I will no longer be attending this event.
roll_ enroll -- I will be attending this event.
roll_ nobody -- Nobody Yet
roll_ text -- There are {1} people enrolled for this event:

After I did that, it worked for me.


Hope that helps!

marlita 08-19-2006 05:25 AM

I have vB 3.6. Is it ok to use this plugin?

Thanks

marlita 08-23-2006 01:05 PM

I have to manually link my polls to my event-forum. It's not a huge deal, but it would be nice if something did this through the admin or forum instaed. Does anyone know about a program that does this or does anyone know how to make one?

If someone doesn't know what I'm talking about and would like to see what i mean, feel free to check out my polled event-forum. Just type username:test & password: test. Just don't vote, please.

Thanks.

elricstorm 08-24-2006 07:04 PM

I tried installing this for 3.6 and it installed fine. However, after installing it and going to the calendar and check marking the allow people to attend events checkbox, and posting I get the following:

Code:

Fatal error: Existing data passed is not an array
Called set_existing in /var/www/vhosts/httpdocs/forum/includes/functions_databuild.php on line 164
Called build_forum_counters in /var/www/vhosts/httpdocs/forum/includes/class_dm_event.php(569) : eval()'d code on line 141
Called eval in /var/www/vhosts/httpdocs/forum/includes/class_dm_event.php on line 569
Called pre_save in /var/www/vhosts/httpdocs/forum/includes/class_dm.php on line 789
Called save in /var/www/vhosts/httpdocs/forum/calendar.php on line 1952
in /includes/class_dm.php on line 235

Is this not usable with 3.6 or is there a work around for this issue? Not sure what to do.

elricstorm 08-24-2006 07:14 PM

The issue was I had another conflicting calendar plugin and once I removed it - this one worked fine.


All times are GMT. The time now is 06:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01724 seconds
  • Memory Usage 1,897KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (17)bbcode_code_printable
  • (1)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete