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)

pmkb 08-25-2006 01:18 AM

I'm building a brand new site and just installed this mod and it works great.

Thanks also to:
I made a few tweaks to the listed modifications such that attendies look something like this:

Code:

* username(4)
  o Wants: <string from field6>
  o Has: <string from field7>
* nextname(1)
  o Wants: <string from field6>

and the Wants/Has lines are only shown if the profile strings are not empty. :)

marlita 08-26-2006 01:02 AM

Hmm... not sure if this actually worked or not... all i can say is that I have my events linked to my forums with poll ability... not quite sure how lol *shrug* ... it's exactly what i wanted... I'm happy... don't know if that'll work for anyone else. ... anyway, I'm removing the test login feature on my site now.

elricstorm 08-28-2006 05:42 PM

Would it be difficult to modify the list so that it looks like:

username || secondary_usergroup
username1 || secondary_usergroup
username2 || secondary_usergroup
etc. ?

Where secondary_usergroup only displays if it is one of the following?

Here's an example.

Ted is a primary user for members but he's also in a usergroup for warriors.
Ann is a primary user for members but she's also in a usergroup for rogues.

I want both their username and secondary group to show if it's equal to warriors or rogues, so.. something like

if secondary_group = warriors or rogues then show secondary_group

The display would appear as:

Ted || Warrior
Ann || Rogue
etc.

Can it be done and would be it be difficult?

jangus74 08-28-2006 08:08 PM

Anyone tried this on 3.5.4?

Monty NC 08-29-2006 02:09 PM

Yes, this works on 3.5.4

Monty NC 08-29-2006 08:50 PM

Quote:

Originally Posted by louis_chypher
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>



I did this (along with the other changes you listed), and the drop down box seems to work, but the total attendance only gets updated by '1' regardless of the selected number. In other words if you select '2' it shows 'Username, 1' in the list of attendees and only increases the total count by 1.

What am I missing?



EDIT: I just noticed that there is an "Error on page" message in the status bar as soon as I select a number from the drop-down box. This is the error:

Quote:

Line: 871
Char: 1
Error: 'document.calendar_showeventsbit.pc_surl' is null or not an object
Code: 0
URL: http://~~~/calendar.php?
If I just click on the link without selecting a number from the drop down box, I do not get an error. Does this help?

Monty NC 08-30-2006 12:24 PM

I found the problem - I made a typo in this line in the showeventsbit template:

Quote:

<form action="calendar.php" method="post" name="calendar_showeventsbit">
Fixed the typo, all works great now -- thanks!

andreamarucci 09-05-2006 11:39 AM

I've just upgraded to 3.6 and everything works except for the fact that if you enroll choosing 1 people, you get yourname,1 and it's exact, but if you choose to enroll choosing 2 people, you get always yourname,1 and this is not correct since you must get yourname,2

Probably the upgrade changed something. Where do I have to look to fix this?

andreamarucci 09-05-2006 11:45 AM

Forget my last post. I've not added <form action="calendar.php" method="post" name="calendar_showeventsbit"> in calendar_showeventsbit template.

Now everything work ok in 3.6!

GrandAmGuru 09-13-2006 11:57 AM

anyway we can add in an attendance option of "maybe" and "no"? Also possiblity of the number of guests attending (like registered person + 2 guests)?

I also really like the idea that was posted about some sort of event attendance counting in their profile/postbit.


All times are GMT. The time now is 03:53 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.01774 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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