PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Adding plain text to registration forms

s2Member Plugin. A Membership plugin for WordPress®.

Adding plain text to registration forms

Postby philipt18 » December 11th, 2011, 9:09 am

When creating the custom registration form, how can I add plain text to the form, to see something like 'By registering for this site, you agree to...' before the person presses the button at the bottom? Basically I want to add plain text without any form field to enter data into...

Thanks.
User avatar
philipt18
Experienced User
Experienced User
 
Posts: 50
Joined: December 1, 2011

Re: Adding plain text to registration forms

Postby philipt18 » December 11th, 2011, 9:52 am

Another question is if there is a way to add explanatory information before or after a field, like if using a multi-select box, to explain that you need to Control-Click (Windows) or Command-Click (Mac) to select more than one option?
User avatar
philipt18
Experienced User
Experienced User
 
Posts: 50
Joined: December 1, 2011

Re: Adding plain text to registration forms

Postby philipt18 » December 13th, 2011, 3:40 pm

No one know if this is possible?
User avatar
philipt18
Experienced User
Experienced User
 
Posts: 50
Joined: December 1, 2011

Re: Adding plain text to registration forms

Postby Cristián Lávaque » December 15th, 2011, 5:04 am

philipt18 wrote:When creating the custom registration form, how can I add plain text to the form, to see something like 'By registering for this site, you agree to...' before the person presses the button at the bottom? Basically I want to add plain text without any form field to enter data into..


This thread should help: viewtopic.php?f=36&t=2778

philipt18 wrote:Another question is if there is a way to add explanatory information before or after a field, like if using a multi-select box, to explain that you need to Control-Click (Windows) or Command-Click (Mac) to select more than one option?


In the custom field's label, I think you can add HTML. E.g.

Code: Select all
Favorite Colors<br /><span style="font-size: smaller !important;">Control-Click (Windows) or Command-Click (Mac) to select more than one option</span>


I hope that helps.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Adding plain text to registration forms

Postby philipt18 » December 15th, 2011, 6:16 am

Thank you. I'm not sure what I am looking for is in that post, however. All a want is a plain text box not linked to any form element. I just want explanatory text, not linked to a paypal button or anything else. I don't want the person to have to press an extra button, I want the registration itself to be the agreement to the terms I list. In other words, I just want a paragraph to be shown after all the form elements and before the submit button at the bottom. Thanks.
User avatar
philipt18
Experienced User
Experienced User
 
Posts: 50
Joined: December 1, 2011

Re: Adding plain text to registration forms

Postby kayakDave » December 16th, 2011, 10:11 am

I have exactly the same question. I don't want to add a registration field. I just want to add descriptive text. Is that possible?
User avatar
kayakDave
Registered User
Registered User
 
Posts: 1
Joined: December 16, 2011

Re: Adding plain text to registration forms

Postby Cristián Lávaque » December 17th, 2011, 5:23 am

Ah, I see. I guess you could use a textarea field and add an HTML attribute to prevent editing.

Form Field Type: Textarea
Allow Profile Edits: No (uneditable & totally invisible after registration)
Other Attributes: disabled="disabled"

This would be saved as a custom field for all accounts, though.

I know how to add text without it being a custom field, but it'd be after the submit button. WP Admin -> s2Member -> General Options -> Login/Registration Design -> Footer

I hope this helps.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Adding plain text to registration forms

Postby philipt18 » December 24th, 2011, 5:59 pm

Thank you for your help. This almost works, but there is a problem. The textarea doesn't show the whole text, but makes the user drag it to show everything. This kind of defeats its purpose. Is there a way to insure it shows all the text? Thanks.

I really hope a real non-field text insertion is available in a future version, as this is an odd work-around. I know other member plug-ins allow this.
User avatar
philipt18
Experienced User
Experienced User
 
Posts: 50
Joined: December 1, 2011

Re: Adding plain text to registration forms

Postby Cristián Lávaque » December 26th, 2011, 5:38 am

I'll notify Jason of your request for this.

Well, you can alter the textarea with CSS or HTML attributes when you define the custom field.

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Adding plain text to registration forms

Postby Jason Caldwell » December 26th, 2011, 7:40 pm

philipt18 wrote:Another question is if there is a way to add explanatory information before or after a field, like if using a multi-select box, to explain that you need to Control-Click (Windows) or Command-Click (Mac) to select more than one option?
When you create Custom Registration/Profile Fields with s2Member, you are free to use HTML in the description field. See attached screenshot please.
SNAG-0026.png


If you want just a dummy field, that is NOT actually POSTd by the form, you can add the disabled attribute yourself. See: http://www.w3schools.com/tags/att_input_disabled.asp

See also (readonly): http://www.w3schools.com/tags/att_input_readonly.asp

SNAG-0027.png


Or, if you're running s2Member Pro Forms, you have access to the actual template files if you prefer.
Is it possible to modify the PayPal® and/or Authorize.Net® Pro Form templates?
Usually not necessary. But yes, if you really need to. Please check your /s2member-pro/includes/templates/forms/ directory. You can take the default templates, and place some ( or all of them ) into your own WordPress® theme directory. s2Member Pro will automatically find your custom templates there. By placing custom templates into your theme directory, you can be sure they won't get overwritten in a future upgrade. Either that, or you can just use the default templates like they are, and customize them with your own CSS rules inside the Stylesheet for your WordPress® theme ( i.e. style.css ). If you're using a PriMo Theme ( for instance, the s2Clean Theme ), check your Theme Options Panel, under: Custom CSS / Style Sheet.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron