Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 04-17-2007, 12:43 AM
Masked Crusader Masked Crusader is offline
 
Join Date: Oct 2005
Location: Sacramento, CA, USA
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Pulling Data From A Select Menu?

Alright, I finally figured out what I need to do.

Below are two templates that are inserted with Farcasters Event Attendance mod. I have modded them somewhat, but now I am stuck.

I am trying to get it to look like the following: http://www.wowhq.com/forum/calendar....=2007-4-17&c=1

If you could help me figure out how the heck to finish coding this, it would be much appreciated.

NOTE: I have created the dropdown box in the second template. What needs to happen is that data needs to get pulled from the user's answers on the calendar_rsvp_form template and displayed in two separate columns on the calendar_rsvp template.

calendar_rsvp template:
Code:
<if condition="!$eventempty">
	<hr>
</if>

<if condition="$rsvp_yes">
	<b>$vbphrase[calendar_rsvpd] $vbphrase[yes]: $rsvp_yes_count </b>
	<if condition="$eventinfo[rsvp_max_guests]">
		(<phrase 1="$rsvp_yes_members" 2="$rsvp_yes_guests">$vbphrase[x_members_and_y_guests]</phrase>)
	</if>

<table width="100%" border="0">
	<tr>
		<th width="20">Count</th>
                <th width="100">Username</th>
                <th width="100">Class</th>
		<th width="100">Spec</th>
		<th width="200">Date Registered</th>
		<th>Comment</th>
	</tr>
	<tr>
		<th width="20"></th>
                <th width="100"></th>
                <th width="100"></th>
		<th width="100"></th>
		<th width="200"></th>
		<th></th>
	</tr>
</table>


</if>

<if condition="$rsvp_maybe">
	<b>$vbphrase[calendar_rsvpd] $vbphrase[maybe]: $rsvp_maybe_count</b> 
	<if condition="$eventinfo[rsvp_max_guests]">
		(<phrase 1="$rsvp_maybe_members" 2="$rsvp_maybe_guests">$vbphrase[x_members_and_y_guests]</phrase>) 
	</if>
	<ul><if condition="$vboptions[rah_rsvp_showavatar]"><table>$rsvp_maybe</table><else />$rsvp_maybe</if></ul>
</if>
<if condition="$rsvp_no">
	<b>$vbphrase[calendar_rsvpd] $vbphrase[no]: $rsvp_no_count</b>
	<ul><if condition="$vboptions[rah_rsvp_showavatar]"><table>$rsvp_no</table><else />$rsvp_no</if></ul>
</if>

calendar_rsvp_form template:
Code:
<form action="calendar.php?do=getinfo&e=$eventinfo[eventid]&day=$rsvp_day" method="post">
<input type="hidden" name="do" value="getinfo" />
<input type="hidden" name="cdo" value="rsvp" />
<input type="hidden" name="day" value="$rsvp_day" />
<input type="hidden" name="e" value="$eventinfo[eventid]" />
<input type="hidden" name="s" value="" />


<if condition="$bbuserinfo['userid'] AND $expires[0]>=0">
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr><td class="alt2">
		
		<if condition="$expires[unixdate]">	

			<if condition="$myrsvp">
				<b><phrase 1="$rsvp_day_formatted" 2="$myrsvp">$vbphrase[calendar_rsvp_yoursvp]</phrase></b><br />
				<font class="smallfont"><i><phrase 1="$expires[date]">$vbphrase[calendar_rsvp_maychangeby]</phrase></i></font>

			<else />
				<b><phrase 1="$rsvp_day_formatted">$vbphrase[calendar_rsvp_attendquestion]</phrase></b><br />
				<font class="smallfont"><i><phrase 1="$expires[date]">$vbphrase[calendar_rsvp_changeby]</phrase></i></font>

			</if>
			<br/>
			
		<else />
		
			<if condition="$myrsvp">
				<b><phrase 1="$rsvp_day_formatted" 2="$myrsvp">$vbphrase[calendar_rsvp_yoursvp]</phrase></b><br />
				<font class="smallfont"><i>$vbphrase[calendar_rsvp_maychange]</i></font>

			<else />
				<b><phrase 1="$rsvp_day_formatted">$vbphrase[calendar_rsvp_attendquestion]</phrase></b><br />
				<font class="smallfont"><i>$vbphrase[calendar_rsvp_changelater]</i></font>

			</if>
			<br/>
                        
		
		</if>

<br/>

	<INPUT TYPE=RADIO NAME="response" VALUE="Yes" <if condition="$myrsvp=='Yes'">checked="checked"</if>>$vbphrase[yes] 
	<INPUT TYPE=RADIO NAME="response" VALUE="Maybe" <if condition="$myrsvp=='Maybe'">checked="checked"</if>>$vbphrase[maybe] 
	<INPUT TYPE=RADIO NAME="response" VALUE="No" <if condition="$myrsvp=='No'">checked="checked"</if>>$vbphrase[no]<br \>
	<if condition="$eventinfo['rsvp_max_guests']">
		<i>$vbphrase[calendar_rsvp_guests_prompt] <input type="text" name="guests" id="guests" size="3" value="$myguests"> 
		$vbphrase[calendar_rsvp_guests]. (<phrase 1="$eventinfo[rsvp_max_guests]">$vbphrase[calendar_rsvp_guest_limit]</phrase>)</i>
	</if>
	
<br/>

&nbsp<b>Class/Spec:</b>

         <select name="class">
            <option value="Druid (Feral Combat)">Druid (Feral Combat)</option>
            <option value="Druid (Restoration)">Druid (Restoration) </option>
            <option value="Druid (Balance)">Druid (Balance)</option>


            <option value="Hunter (Beast Mastery)">Hunter (Beast Mastery)</option>
            <option value="Hunter (Marksmanship)">Hunter (Marksmanship)</option>

            <option value="Hunter (Survival)">Hunter (Survival)</option>


            <option value="Mage (Arcane)">Mage (Arcane)</option>
            <option value="Mage (Fire)">Mage (Fire)</option>
            <option value="Mage (Frost)">Mage (Frost) </option>


            <option value="Paladin (Holy)">Paladin (Holy)</option>

            <option value="Paladin (Protection)">Paladin (Protection)</option>
            <option value="Paladin (Retribution)">Paladin (Retribution)</option>


            <option value="Priest (Discipline)">Priest (Discipline)</option>
            <option value="Priest (Holy)">Priest (Holy)</option>
            <option value="Priest (Shadow)">Priest (Shadow)</option>


            <option value="Rogue (Assassination)">Rogue (Assassination)</option>
            <option value="Rogue (Combat)">Rogue (Combat)</option>
            <option value="Rogue (Subtlety)">Rogue (Subtlety)</option>


            <option value="Shaman (Elemental)">Shaman (Elemental)</option>
            <option value="Shaman (Enhancement)">Shaman (Enhancement)</option>

            <option value="Shaman (Restoration)">Shaman (Restoration)</option>


            <option value="Warlock (Affliction)">Warlock (Affliction)</option>
            <option value="Warlock (Demonology)">Warlock (Demonology)</option>
            <option value="Warlock (Destruction)">Warlock (Destruction)</option>


            <option value="Warrior (Arms)">Warrior (Arms)</option>

            <option value="Warrior (Fury)">Warrior (Fury)</option>
            <option value="Warrior (Protection)">Warrior (Protection)</option>
			
</select>
<br/>
<br/>

	<if condition="$maxlength">
		<table>
			<tr>
				<td><b>$vbphrase[comment]:</b><br \>
				<td align="right"><font class="smallfont"><i>($vbphrase[calendar_rsvp_maxlength] = $maxlength)</i></font></td>
			</tr>
			<tr>
				<td colspan="2">
				<textarea name="comment" rows="2" cols="80">$mycomment</textarea>
				</td>
			
			</tr>
		</table>

	</if>
	<input type="submit" class="button" value="$vbphrase[submit]" />

	</td></tr>
	</table>
	</form>
</if>
<if condition="$expires[0]<0">
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr><td class="alt2" align="center" valign="center" height="75"><font size="2"><b>$vbphrase[calendar_rsvp_closed]</b></font></td></tr>
	</table>
</if>
No one can answer this...

Well, shucks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:11 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.05478 seconds
  • Memory Usage 2,178KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete