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)

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


All times are GMT. The time now is 09:13 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.01252 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)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