so how would i make a checkbox for the member registration form?
You can manually build a form that registers people - all you need to do is include:
<input type="hidden" name="ACT" value="7" />
in the form. You’ll probably want to include a few other hidden fields. Here’s a manual registration form I’m currently using:
<h1>Member Registration</h1> <p>Please fill out the form below. All fields are required. After registering you will receive a confirmation email - follow the link in that email to complete the registration process.</p> <form id='register_member_form' method="post" action=""> <fieldset> <input type="hidden" name="XID" value="" /> <input type="hidden" name="ACT" value="7" /> <input type="hidden" name="mbase" value="{path=pages/thank_you/register}" /> <input type="hidden" name="RET" value="{path=pages/thank_you/register}" /> <input type="hidden" name="FROM" value="" />
<label for="rules"><span class="required">*</span> Terms of Service</label> <textarea name='rules' class='textShort' readonly>All messages posted at this site express the views of the author, and do not necessarily reflect the views of the owners and administrators of this site.
By registering at this site you agree not to post anything that is obscene, vulgar, slanderous, hateful, threatening, or that violate any laws. We will permanently ban all users who do so.
The VBSR forums are an information and networking resource for members. We ask that you not post any advertisements, sales, discounts, solicitations, promotions, or any other content to advance your business. We reserve the right to remove any messages that we feel falls under the above categories, and the right to remove, edit, or move any messages for any reason.</textarea> <ul> <li><input type='checkbox' name='accept_terms' value='y' />I agree to the terms of service.</li> </ul> </fieldset> <input class="button" type="image" name="submit" src="/css/images/button_register.gif" /> </form>
Could someone (especially Brian M since he said he had it working) show a code sample for how to display checkboxes with a stand-alone entry form? Mark I love your work, though it is a shame that your doc page doesn’t seem to actually contain any docs. Maybe We could set up wiki pages for your extensions?
Could someone (especially Brian M since he said he had it working) show a code sample for how to display checkboxes with a stand-alone entry form? Mark I love your work, though it is a shame that your doc page doesn’t seem to actually contain any docs. Maybe We could set up wiki pages for your extensions?
Ultrabob - I’m manually creating my SAEFs and just putting in checkboxes… Here’s a snippet (I can post the whole form if it would help):
<li><input class="checkbox" type="checkbox" name="options[]" value="Learn more about joining a committee" />Learn more about joining a committee</li> <li><input class="checkbox" type="checkbox" name="options[]" value="Sponsor an event" />Sponsor an event</li> <li><input class="checkbox" type="checkbox" name="options[]" value="Learn about upcoming VBSR events" />Learn about upcoming VBSR events</li>
Just make sure to have [] after your field names, and you should be all set…
Does anyone know if it’s possible to change the delimiter on the output of the checkbox extension? Currently it outputs as: Blah, Blah, Blah, Blah. I’d like to change the commas into pipes (|), but only in a specific instance (I don’t want to hard code it for everything). I guess I could use php if I need to…
and this one, after reading the form helper docs again, using field_grabber instead of field_parser, since my understanding is that the field_parser is to remove or grab the formatting (XHTML, BR or None), and the checkbox does not have field formatting:
I just realized I’m using PHP to do it in my templates (using Field Helper for other forms not using checkboxes). I’m not sure if this will work, but try this:
I want a list item containing an icon to appear IF the box has been ticked so I produced this code, it seems to work for Fabrics (the first item) but nothing else :(
Thanks Mark, I think there may be an error somewhere as the page is coming up blank. Unfortunately I don’t know any php so I’m stumped as what the problem could be :/
Here is most of the page code if you can see anything quickly wrong with it?