This code can be used to give users a custom posting form in order to ensure they provide certain information when posting. Common uses of this include graphics request forms and RPG character creation.

The code should be placed in the footer of the board you wish to use it on. To do this, go to the "Headers and Footer" section of your admin panel found in the "Site Design" section. From this page you can select the board you wish to use it on and press "continue" so you are presented with the text areas representing the header and footer of your forum.

_fields[_f++] = new Array('input', 'Example', ['size', 40, 'maxLength', 200], false, 'If you have an example of what you want to achieve, please link to it here. This can be anything from an image of what you need to a link to a forum using the code you want.', false);

_fields[_f++] = new Array('textarea', 'Request Details', ['cols', 40, 'rows', 10], false, 'Please give as much information as possible about your request. The more information you give now, the easier it will be for someone to fill your request.', true);

Editing the CodeThe following sections are the parts of the code that should be edited to suit your application of the code:

var _title = 'New Code Request'; // the name of your form

var _description = 'Please ensure you have a read of the <a href="URL">Rules</a> before posting'; // this is the description of the form telling users what to do

var _fields = new Array(); var _f = 0; // See below for editing instructions on this section _fields[_f++] = new Array('input', 'Description', ['size', 40, 'maxLength', 50], '', 'Please give a short description of what it is you're after. Include any relevant keywords.', false); _fields[_f++] = new Array('select', 'Type', false, ['All Pages', 'Main Page', 'Mini-Profile', 'Info Center', 'Private Messaging', 'Profile', 'Posting', 'Thread Listing', 'Welcome Table', 'Other'], 'Select the category/area that best fits the type of code you're after.', true); _fields[_f++] = new Array('input', 'Example', ['size', 40, 'maxLength', 200], false, 'If you have an example of what you want to achieve, please link to it here. This can be anything from an image of what you need to a link to a forum using the code you want.', false); _fields[_f++] = new Array('textarea', 'Request Details', ['cols', 40, 'rows', 10], false, 'Please give as much information as possible about your request. The more information you give now, the easier it will be for someone to fill your request.', true);

var _widths = ['100%', '20%', '40%', '40%']; // These are the widths of each box. You may need to alter them to prevent lines being streyched if you use a thin width.

The parts highlighted in red are the actual posting fields. There are 3 types of field you can use, an example of each is given below where:

The blue parts are the attributes for this field, unless you know HTML it's probably best to leave them as they are. The purple true/flase sets if the field is a required field or not (false means it can be left blank).

You can list as many different fields as necessary where shown above. The first field will always be the subject of the posted message. Some general rules to remember when editing these fields are that you cannot place an apostrophe in any of the fields without first escaping it with a backslash '. Also, you cannot put in any line breaks/returns by pressing the enter key, to insert a new line into a description use <br />

Single Line Input:_fields[_f++] = new Array('input', 'Field Name, ie. "Character Name" or "Description"', ['size', 40, 'maxLength', 50], 'Default Value filled in when the form loads. Can be left blank', 'A short description of what the field is for', false);

If you have any trouble editing the form as you need it then please post below or in the support board with the part you have edited (there's no need to post the whole code) and the URL to where you're trying to use it