vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Predefined Posting Template/Form - View Topic (Page 4 of 5)Page: « 2 3 4 5
Topic Rating: *****
Printable View
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 34
Joined:  
Reputation: 62%  


pmwww
Re: Predefined Posting Template/Form (18th Dec 09 at 8:26pm UTC)
Ok your Room code works perfectly now and I will get on the second one. Don't change anything within the code, as it may mess it up again.

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Predefined Posting Template/Form
  4.     Created by Ross of vForums
  5.     http://virtualforums.co.uk
  6.     Please do not repost outside of
  7.     vForums support without permission */
  8. var _title = 'Buying a room';
  9. var _description = 'Please fill out these fields to buy your room, it costs 1 gold and 5 silver.';
  10. var _fields = new Array(); var _f = 0;
  11.   
  12.     _fields[_f++] = new Array('input', 'Room Name', ['size', 40, 'maxLength', 50], 'New room', '', true);
  13.     _fields[_f++] = new Array('select', 'Location of Room', false, ['Perfect World', '--Portal of Darkness', '--Paradise', '----Kami\'s battle house', '----Fantasia'], '..', true);
  14.     _fields[_f++] = new Array('textarea', 'Brief Description', ['cols', 40, 'rows', 10, 'maxlength', 300], '', '300 characters max', true);
  15.     _fields[_f++] = new Array('textarea', 'Full Description', ['cols', 40, 'rows', 10], '', 'Unlimited characters - optional', false);
  16.  
  17.  
  18. var _widths = ['100%', '20%', '40%', '40%'];
  19. var _posting_form = {
  20.     errors: new Array(),
  21.     init: function() {
  22.         this.create_form();
  23.     },
  24.     
  25.     create_form: function() {
  26.         // Create new post layout
  27.         var _holder = document.createElement('table');
  28.         _holder.setAttribute('className', 'border');
  29.         _holder.setAttribute('class', 'border');
  30.         _holder.setAttribute('cellSpacing','1');
  31.         _holder.setAttribute('cellPadding', '4');
  32.         _holder.setAttribute('align', 'center');
  33.         _holder.setAttribute('width', _widths[0]);
  34.         _holder.setAttribute('id', 'post_form_holder');
  35.         _holder.appendChild(document.createElement('tbody'));
  36.         _holder.firstChild.appendChild( document.createElement('tr') ).appendChild( document.createElement('td') ).appendChild( document.createElement('font') );
  37.         _holder.firstChild.lastChild.lastChild.className = 'title1';
  38.         _holder.firstChild.lastChild.lastChild.colSpan = '3';
  39.         _holder.firstChild.lastChild.lastChild.lastChild.size = '2';
  40.         _holder.firstChild.lastChild.lastChild.lastChild.appendChild(document.createTextNode(_title));
  41.         if(_description) {
  42.             _holder.firstChild.appendChild( document.createElement('tr') ).appendChild( document.createElement('td') ).appendChild( document.createElement('font') );
  43.             _holder.firstChild.lastChild.lastChild.setAttribute('className', 'window1');
  44.             _holder.firstChild.lastChild.lastChild.setAttribute('class', 'window1');
  45.             _holder.firstChild.lastChild.lastChild.setAttribute('colSpan', '3');
  46.             _holder.firstChild.lastChild.lastChild.lastChild.setAttribute('size', '2');
  47.             _holder.firstChild.lastChild.lastChild.lastChild.innerHTML = _description;
  48.         }
  49.         
  50.         for(_f=0; _f<_fields.length; _f++) {
  51.             switch(_fields[_f][0]) {
  52.                 case 'textarea' :
  53.                     var _tmp = document.createElement('textarea');
  54.                 break;
  55.                 
  56.                 case 'select' :
  57.                     var _tmp = document.createElement('select');
  58.                     for(_o=0; _o<_fields[_f][3].length; _o++) {
  59.                         _tmp.options[_o] = new Option(_fields[_f][3][_o], _fields[_f][3][_o]);
  60.                     }
  61.                 break;
  62.                 
  63.                 default :
  64.                     var _tmp = document.createElement('input');
  65.                     _tmp.type = 'text';
  66.                     if("undefined" != typeof _fields[_f][3] && _fields[_f][3] != "")
  67.                         _tmp.setAttribute('value', _fields[_f][3]);
  68.                 break;
  69.             }
  70.             _tmp.setAttribute('id', _f);
  71.             if("undefined" != typeof _fields[_f][2] && _fields[_f][2].length > 0) {
  72.                 for(_a=0; _a<_fields[_f][2].length; _a++) {
  73.                     _tmp.setAttribute(_fields[_f][2][_a++], _fields[_f][2][_a]);
  74.                 }
  75.             }
  76.             var _class = 'window' + ((_f % 2 == 0)? '2' : '1');
  77.             var _row = document.createElement('tr');
  78.             _row.appendChild(document.createElement('td'));
  79.             _row.lastChild.setAttribute('class', _class);
  80.             _row.lastChild.setAttribute('className', _class);
  81.             _row.lastChild.setAttribute('vAlign', 'top');
  82.             _row.lastChild.setAttribute('width', _widths[1]);
  83.             _row.lastChild.appendChild(document.createElement('font'));
  84.             _row.lastChild.lastChild.setAttribute('size', '2');
  85.             _row.lastChild.lastChild.style.fontWeight = 'bold';
  86.             _row.lastChild.lastChild.appendChild(document.createTextNode(_fields[_f][1] + ':'));
  87.             _row.appendChild(document.createElement('td'));
  88.             _row.lastChild.setAttribute('class', _class);
  89.             _row.lastChild.setAttribute('className', _class);
  90.             _row.lastChild.setAttribute('width', _widths[2]);
  91.             _row.lastChild.appendChild(document.createElement('font'));
  92.             _row.lastChild.lastChild.setAttribute('size', '2');
  93.             _row.lastChild.lastChild.appendChild(_tmp);
  94.             _row.appendChild(document.createElement('td'));
  95.             _row.lastChild.setAttribute('class', _class);
  96.             _row.lastChild.setAttribute('className', _class);
  97.             _row.lastChild.setAttribute('vAlign', 'top');
  98.             _row.lastChild.setAttribute('width', _widths[3]);
  99.             _row.lastChild.appendChild(document.createElement('font'));
  100.             _row.lastChild.lastChild.size = '1';
  101.             _row.lastChild.lastChild.appendChild(document.createTextNode(_fields[_f][4]));
  102.             _holder.firstChild.appendChild(_row);
  103.         }
  104.         var _submit = document.createElement('tr');
  105.         _submit.appendChild(document.createElement('td'));
  106.         _submit.lastChild.setAttribute('class', 'window' + (((_f+1) % 2 == 0)? '1' : '2'));
  107.         _submit.lastChild.setAttribute('className', 'window' + (((_f+1) % 2 == 0)? '1' : '2'));
  108.         _submit.lastChild.setAttribute('align', 'center');
  109.         _submit.lastChild.setAttribute('colSpan', 3);
  110.         var _button = document.createElement('input');
  111.         _button.setAttribute('type', 'button');
  112.         _button.setAttribute('value', 'Post Message');
  113.         _button.onclick = function() { _posting_form.post_it(); };
  114.         _submit.lastChild.appendChild(_button);
  115.         _holder.firstChild.appendChild(_submit);
  116.         document.post_form.style.display = 'none';
  117.         document.post_form.parentNode.insertBefore(_holder,  document.post_form);
  118.     },
  119.     
  120.     post_it: function() {
  121.         // create message and attempt to post it
  122.         this.errors = new Array();
  123.         document.post_form.message.value = document.post_form.subject.value = '';
  124.         var _sub = document.getElementById('0').value;
  125.         _fields[0][5] = true;
  126.         document.post_form.subject.value    = _sub;
  127.         for(_f=0; _f<_fields.length; _f++) {
  128.             if(document.getElementById(_f)) {
  129.                 _value = document.getElementById(_f).value;
  130.                 if(!_value || _value.match(/^s*$/)) {
  131.                     if(_f > 0 && _fields[_f][5])
  132.                         this.show_error('You have left the ' + _fields[_f][1] + ' option empty. This is a required field and as such must contain a value.');
  133.                     else
  134.                         _value = 'None';
  135.                 }
  136.                 document.post_form.message.value += '' + _fields[_f][1] + ': ' + _value + 'nn';
  137.             }
  138.         }
  139.         if(this.errors.length == 0)
  140.             document.post_form.post.click();
  141.         else
  142.             this.show_error();
  143.     },
  144.     
  145.     show_error: function() {
  146.         if("undefined" != typeof arguments[0] && arguments[0]) {
  147.             this.errors.push(arguments[0]);
  148.         } else {
  149.             // Show Errors
  150.             if(document.getElementById('status_holder')) {
  151.                 document.getElementById('status_holder_title').innerHTML = "An Error Has Occured";
  152.                 document.getElementById('status_holder_message').innerHTML = this.errors.join("<br />");
  153.                 document.getElementById('status_holder').style.display = 'block';
  154.             }
  155.         }
  156.     }
  157. }
  158. if(document.post_form && location.href.match(/action\/post\/?$/) && vf_username != 'Guest') {
  159.     _posting_form.init();
  160. }
  161. //-->
  162. </script>
 

Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Predefined Posting Template/Form (18th Dec 09 at 8:35pm UTC)
What about the other code? And the room code must be changed every time somebody makes a room:

Room
Room
-Sub-Room
--Sub-Sub-Room
-Sub-Room
Room

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 34
Joined:  
Reputation: 62%  


pmwww
Re: Predefined Posting Template/Form (18th Dec 09 at 9:23pm UTC)
I've got the other code right here, and what do you mean?

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Predefined Posting Template/Form
  4.     Created by Ross of vForums
  5.     http://virtualforums.co.uk
  6.     Please do not repost outside of
  7.     vForums support without permission */
  8. var _title = 'Create a group';
  9. var _description = 'The cost to create a group is 50,000 Yen except for admin';
  10. var _fields = new Array(); var _f = 0;
  11.  
  12.     _fields[_f++] = new Array('input', 'Group Name', ['size', 40, 'maxLength', 20], '', ' ', true);
  13.     _fields[_f++] = new Array('input', 'Your Group Rank', ['size', 40, 'maxLength', 15], '', ' ', true);
  14.     _fields[_f++] = new Array('select', 'Your Group Rank Color', false, ['None', 'Red', 'Blue','Green','Orange','Purple','White','Pink','Gray','Gold','Silver'], '', true);
  15.     _fields[_f++] = new Array('input', 'Starting Group Rank', ['size', 40, 'maxLength', 15], false, 'Optional', false);
  16.     _fields[_f++] = new Array('select', 'Group Color', false, ['None', 'Red', 'Blue','Green','Orange','Purple','White','Pink','Gray','Gold','Silver'], '', true);
  17.     _fields[_f++] = new Array('textarea', 'Brief Description', ['cols', 40, 'rows', 5, 'maxlength', 300], false, '300 character max', true);
  18.     _fields[_f++] = new Array('textarea', 'Full Description', ['cols', 40, 'rows', 20], false, '', false);
  19.  
  20. var _widths = ['100%', '20%', '40%', '40%'];
  21. var _posting_form = {
  22.     errors: new Array(),
  23.     init: function() {
  24.         this.create_form();
  25.     },
  26.     
  27.     create_form: function() {
  28.         // Create new post layout
  29.         var _holder = document.createElement('table');
  30.         _holder.setAttribute('className', 'border');
  31.         _holder.setAttribute('class', 'border');
  32.         _holder.setAttribute('cellSpacing','1');
  33.         _holder.setAttribute('cellPadding', '4');
  34.         _holder.setAttribute('align', 'center');
  35.         _holder.setAttribute('width', _widths[0]);
  36.         _holder.setAttribute('id', 'post_form_holder');
  37.         _holder.appendChild(document.createElement('tbody'));
  38.         _holder.firstChild.appendChild( document.createElement('tr') ).appendChild( document.createElement('td') ).appendChild( document.createElement('font') );
  39.         _holder.firstChild.lastChild.lastChild.className = 'title1';
  40.         _holder.firstChild.lastChild.lastChild.colSpan = '3';
  41.         _holder.firstChild.lastChild.lastChild.lastChild.size = '2';
  42.         _holder.firstChild.lastChild.lastChild.lastChild.appendChild(document.createTextNode(_title));
  43.         if(_description) {
  44.             _holder.firstChild.appendChild( document.createElement('tr') ).appendChild( document.createElement('td') ).appendChild( document.createElement('font') );
  45.             _holder.firstChild.lastChild.lastChild.setAttribute('className', 'window1');
  46.             _holder.firstChild.lastChild.lastChild.setAttribute('class', 'window1');
  47.             _holder.firstChild.lastChild.lastChild.setAttribute('colSpan', '3');
  48.             _holder.firstChild.lastChild.lastChild.lastChild.setAttribute('size', '2');
  49.             _holder.firstChild.lastChild.lastChild.lastChild.innerHTML = _description;
  50.         }
  51.         
  52.         for(_f=0; _f<_fields.length; _f++) {
  53.             switch(_fields[_f][0]) {
  54.                 case 'textarea' :
  55.                     var _tmp = document.createElement('textarea');
  56.                 break;
  57.                 
  58.                 case 'select' :
  59.                     var _tmp = document.createElement('select');
  60.                     for(_o=0; _o<_fields[_f][3].length; _o++) {
  61.                         _tmp.options[_o] = new Option(_fields[_f][3][_o], _fields[_f][3][_o]);
  62.                     }
  63.                 break;
  64.                 
  65.                 default :
  66.                     var _tmp = document.createElement('input');
  67.                     _tmp.type = 'text';
  68.                     if("undefined" != typeof _fields[_f][3] && _fields[_f][3] != "")
  69.                         _tmp.setAttribute('value', _fields[_f][3]);
  70.                 break;
  71.             }
  72.             _tmp.setAttribute('id', _f);
  73.             if("undefined" != typeof _fields[_f][2] && _fields[_f][2].length > 0) {
  74.                 for(_a=0; _a<_fields[_f][2].length; _a++) {
  75.                     _tmp.setAttribute(_fields[_f][2][_a++], _fields[_f][2][_a]);
  76.                 }
  77.             }
  78.             var _class = 'window' + ((_f % 2 == 0)? '2' : '1');
  79.             var _row = document.createElement('tr');
  80.             _row.appendChild(document.createElement('td'));
  81.             _row.lastChild.setAttribute('class', _class);
  82.             _row.lastChild.setAttribute('className', _class);
  83.             _row.lastChild.setAttribute('vAlign', 'top');
  84.             _row.lastChild.setAttribute('width', _widths[1]);
  85.             _row.lastChild.appendChild(document.createElement('font'));
  86.             _row.lastChild.lastChild.setAttribute('size', '2');
  87.             _row.lastChild.lastChild.style.fontWeight = 'bold';
  88.             _row.lastChild.lastChild.appendChild(document.createTextNode(_fields[_f][1] + ':'));
  89.             _row.appendChild(document.createElement('td'));
  90.             _row.lastChild.setAttribute('class', _class);
  91.             _row.lastChild.setAttribute('className', _class);
  92.             _row.lastChild.setAttribute('width', _widths[2]);
  93.             _row.lastChild.appendChild(document.createElement('font'));
  94.             _row.lastChild.lastChild.setAttribute('size', '2');
  95.             _row.lastChild.lastChild.appendChild(_tmp);
  96.             _row.appendChild(document.createElement('td'));
  97.             _row.lastChild.setAttribute('class', _class);
  98.             _row.lastChild.setAttribute('className', _class);
  99.             _row.lastChild.setAttribute('vAlign', 'top');
  100.             _row.lastChild.setAttribute('width', _widths[3]);
  101.             _row.lastChild.appendChild(document.createElement('font'));
  102.             _row.lastChild.lastChild.size = '1';
  103.             _row.lastChild.lastChild.appendChild(document.createTextNode(_fields[_f][4]));
  104.             _holder.firstChild.appendChild(_row);
  105.         }
  106.         var _submit = document.createElement('tr');
  107.         _submit.appendChild(document.createElement('td'));
  108.         _submit.lastChild.setAttribute('class', 'window' + (((_f+1) % 2 == 0)? '1' : '2'));
  109.         _submit.lastChild.setAttribute('className', 'window' + (((_f+1) % 2 == 0)? '1' : '2'));
  110.         _submit.lastChild.setAttribute('align', 'center');
  111.         _submit.lastChild.setAttribute('colSpan', 3);
  112.         var _button = document.createElement('input');
  113.         _button.setAttribute('type', 'button');
  114.         _button.setAttribute('value', 'Post Message');
  115.         _button.onclick = function() { _posting_form.post_it(); };
  116.         _submit.lastChild.appendChild(_button);
  117.         _holder.firstChild.appendChild(_submit);
  118.         document.post_form.style.display = 'none';
  119.         document.post_form.parentNode.insertBefore(_holder,  document.post_form);
  120.     },
  121.     
  122.     post_it: function() {
  123.         // create message and attempt to post it
  124.         this.errors = new Array();
  125.         document.post_form.message.value = document.post_form.subject.value = '';
  126.         var _sub = document.getElementById('0').value;
  127.         _fields[0][5] = true;
  128.         document.post_form.subject.value    = _sub;
  129.         for(_f=0; _f<_fields.length; _f++) {
  130.             if(document.getElementById(_f)) {
  131.                 _value = document.getElementById(_f).value;
  132.                 if(!_value || _value.match(/^s*$/)) {
  133.                     if(_f > 0 && _fields[_f][5])
  134.                         this.show_error('You have left the ' + _fields[_f][1] + ' option empty. This is a required field and as such must contain a value.');
  135.                     else
  136.                         _value = 'None';
  137.                 }
  138.                 document.post_form.message.value += '' + _fields[_f][1] + ': ' + _value + 'nn';
  139.             }
  140.         }
  141.         if(this.errors.length == 0)
  142.             document.post_form.post.click();
  143.         else
  144.             this.show_error();
  145.     },
  146.     
  147.     show_error: function() {
  148.         if("undefined" != typeof arguments[0] && arguments[0]) {
  149.             this.errors.push(arguments[0]);
  150.         } else {
  151.             // Show Errors
  152.             if(document.getElementById('status_holder')) {
  153.                 document.getElementById('status_holder_title').innerHTML = "An Error Has Occured";
  154.                 document.getElementById('status_holder_message').innerHTML = this.errors.join("<br />");
  155.                 document.getElementById('status_holder').style.display = 'block';
  156.             }
  157.         }
  158.     }
  159. }
  160. if(document.post_form && location.href.match(/action\/post\/?$/) && vf_username != 'Guest') {
  161.     _posting_form.init();
  162. }
  163. //-->
  164. </script>
 


Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Predefined Posting Template/Form (18th Dec 09 at 11:26pm UTC)
Basically when somebody creates a room I add that room to the code to be selected

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 34
Joined:  
Reputation: 62%  


pmwww
Re: Predefined Posting Template/Form (18th Dec 09 at 11:33pm UTC)
Oh I see what you mean. Just follow this format:

_fields[_f++] = new Array('select', 'Location of Room', false, ['Perfect World', '--Portal of Darkness', '--Paradise', '----Kami\'s battle house', '----Fantasia','new room 1','new room 2'], '..', true);

just add ,'new room here' when you want a new room. {Smile}

and if there is something like above "Kami's" you would want to add "Kami\'s", because without the back slash, it would break the code.
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Predefined Posting Template/Form (19th Dec 09 at 4:51am UTC)
Oh I see, alright

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Predefined Posting Template/Form (19th Dec 09 at 9:58pm UTC)
This:

Code:
 
  1. document.post_form.message.value += '' + _fields[_f][1] + ': ' + _value + 'nn';
 


Should be:

Code:
 
  1. document.post_form.message.value += '' + _fields[_f][1] + ': ' + _value + '\n';
 

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 34
Joined:  
Reputation: 62%  


pmwww
Re: Predefined Posting Template/Form (19th Dec 09 at 10:47pm UTC)
I just took the code from the first page, and added the "_fields[_f++]" part, and it works just fine. I tried those parts with the 1 you had it didn't work, but it worked quite well with the first one on the first page. I'm still a newbie to coding. {Tongue Out} But I do know allot of it.
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Predefined Posting Template/Form (20th Dec 09 at 2:07am UTC)
With the nn it posts like:

Name1:Value1nnName2:Value2nn

With the 2nd way:

Name1:Value1
Name2:Value2

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Predefined Posting Template/Form (22nd Dec 09 at 6:26pm UTC)
Could you add radio buttons and checkboxes to the code? And maybe even blank lines if the person using it needs them?

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 34
Joined:  
Reputation: 62%  


pmwww
Re: Predefined Posting Template/Form (23rd Dec 09 at 5:17am UTC)
I'm not sure how to do that. PM Micheal and he could do it for you. {Smile}
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Predefined Posting Template/Form (23rd Dec 09 at 2:38pm UTC)
I don't see what you'd need check boxes or radio buttons for that a select box couldn't do. =/
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Predefined Posting Template/Form (23rd Dec 09 at 7:40pm UTC)
There are things where radio buttons and checkboxes would be better than select box,

Example 1:
Gender - Best as radio buttons

Example 2:
Multiple options that can be selected: checkboxes

I know how to do this with select box but checkboxes would just be easier on the user end

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Predefined Posting Template/Form (24th Dec 09 at 6:12am UTC)
Gender, in my opinion would be best as a select box.

Anyway, I'm heading away for Christmas in 2 hours, so got to pack etc. I won't be able to get to this until after .... unless someone else jumps on it.
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Predefined Posting Template/Form (24th Dec 09 at 6:24am UTC)
Could I have specific select boxes change based on which gender is selected? And have a hidden field contain a random value from a list and another from a select number range?

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
 Printable View
Page: « 2 3 4 5

All times are GMT+0 :: The current time is 2:01pm
Page generated in 1.4451 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums