We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Request Form Submission
Topic Started: Feb 24 2014, 05:59 PM (423 Views)
Kankuro
Member Avatar
かんくろ
[ *  *  *  *  * ]
Board Address: http://w11.zetaboards.com/Guardians_of_the_Orb/index/
Board Software: ZetaBoards
Description:
Would it be possible to edit the code below to list all users on the board instead of adding options?

Code:
 

<form id='generic_form'>
<div class='category'>
<table class='cat_head'>
<tr>
<td><h2 style='text-align:center'>Awards Request</h2></td>
</tr>
</table>
</div>
<table id='form_spec'>
<tr>
<th colspan='2'><center><h2><font color="FF0000">Please fill out the fields below</font></h2><h3><a href="Award Guideline URL Here">Award Request Guidelines</a></h3></center></th>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td>Award</td>
<td>
<select>
<option>-Selection-</option>
<option>Award Names Here</option>
</select>
</td>
</tr>
<tr>
<td>Why Should You Get This Award?</td>
<td><textarea rows='10'></textarea></td>
</tr>
<tr>
<td colspan='2' id='send_form'><button type='submit'>Submit Request</button></td>
</tr>
</table>

</form>

<style type='text/css'>
/* <![CDATA[ */
#form_spec tr td:first-child {
font-weight: bold;
color: #5CC3FE;
width: 30%;
}
#form_spec input, #form_spec textarea {
width: 500px;
}
/* ]]> */
</style>

<script type='text/javascript'>
var form_script = {
form_id: $('#generic_form'),
status_id: $('#send_form'),
specific_id: $('#form_spec'),
enable_guests: false,
pm: {
enabled: false,
user: "NONE",
title: "Award Request From {{user_name}}",
content: "{{form}}"
},
topic: {
enabled: true,
forum_id: 4027130, // 1 id only
title: "Award Request From {{user_name}}",
description: "",
content: "{{form}}"
},
statuses: {
not_logged_in: "You must be registered and signed in to use this feature.", // Used if enable_guests: false
first: "Gathering data...",
second: "Sending request...",
done: "Your Request Has Been Sent!"
},
submission_formatting: {
separator: ' ',

before_all: '',
after_all: '',

before_question: '[color=#5CC3FE][b]',
after_question: '[/color][/b]',

before_response: '',
after_response: ''
},
possible_elements: 'input, textarea, select' // For the second column of table; .val() must work on it
};
</script>

<script type='text/javascript' src='http://z3.ifrm.com/313/104/0/p366373/form_script.js'></script>

<script type="text/javascript">
function showSpoiler(obj)
{
var inner = obj.parentNode.getElementsByTagName("div")[0];
if (inner.style.display == "none")
inner.style.display = "";
else
inner.style.display = "none";
}
</script>
<div class="category">
<table class="cat_head">
<tr><td><h2>View Awards</h2></td></tr></table>
<div class="spoiler">
<button type="button" onclick="showSpoiler(this);" value="Submit">Show/Hide</button>
<div class="inner" style="display:none;">
<table><font face="Verdana, Verdana" size="2" color="#717171">
<tr><td><p><img src="Award Image URL Here" alt=""> • <font color="#ff0000"><b>Award Name Here:</b> Award Description Here </font></p></td></tr>
</table>
</div></div></div>



The coding below is what I want to change to list all users on the board instead of adding options
But I want it to remain a drop down box.
Code:
 

<tr>
<td>Award</td>
<td>
<select>
<option>-Selection-</option>
<option>Award Names Here</option>
</select>
</td>
</tr>
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

If you want it to remain a drop box and not an input field, then this would not be possible.
Offline Profile Goto Top
 
Kankuro
Member Avatar
かんくろ
[ *  *  *  *  * ]
DaPizzaMan
Feb 25 2014, 04:36 PM
If you want it to remain a drop box and not an input field, then this would not be possible.
What do you mean input field?
Like a box where you type a name and search for a member or a box where you type a name and select a member from a menu?
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

kankuro865
Feb 26 2014, 09:22 PM
DaPizzaMan
Feb 25 2014, 04:36 PM
If you want it to remain a drop box and not an input field, then this would not be possible.
What do you mean input field?
Like a box where you type a name and search for a member or a box where you type a name and select a member from a menu?
Well, in this case, neither/the former. The former would require manual work on your part as well, though. So in the code you would have to supply the names. It would be easiest if there was a box in which they typed any name and the form was sent in that fashion. You would have to hope/assume they don't spell it wrong or any of that. Maybe it would be even better if you told them to supply the URL to the user's profile page to avoid confusion.
Offline Profile Goto Top
 
Kankuro
Member Avatar
かんくろ
[ *  *  *  *  * ]
DaPizzaMan
Feb 27 2014, 04:33 PM
kankuro865
Feb 26 2014, 09:22 PM
DaPizzaMan
Feb 25 2014, 04:36 PM
If you want it to remain a drop box and not an input field, then this would not be possible.
What do you mean input field?
Like a box where you type a name and search for a member or a box where you type a name and select a member from a menu?
Well, in this case, neither/the former. The former would require manual work on your part as well, though. So in the code you would have to supply the names. It would be easiest if there was a box in which they typed any name and the form was sent in that fashion. You would have to hope/assume they don't spell it wrong or any of that. Maybe it would be even better if you told them to supply the URL to the user's profile page to avoid confusion.
Fair enough.
I was just trying to see if it was possible to make it more convenient for everybody.
I didn't think about the URL though, thanks for that. I guess that's what I'll do.
Offline Profile Goto Top
 
Moonface
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic