Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Wordpress and sign up form

Posted on 2011-04-21
10
Medium Priority
?
255 Views
Last Modified: 2012-05-11
Hi

I try to add a form on my wordpress account.

When I past the script and save it take out the script tags and then I have the code showing up instead of the form.
(for created with form builder 7.9)

I tried to copy the code from dreamweaver no luck

What can I do ?
0
Comment
Question by:speedtofly
  • 7
  • 3
10 Comments
 
LVL 31

Expert Comment

by:gwkg
ID: 35444294
0
 
LVL 31

Expert Comment

by:gwkg
ID: 35444341
Are you trying to change the sign up form for wordpress.com?  I doubt that can be done.
0
 

Author Comment

by:speedtofly
ID: 35445397
Sorry I should have specify

I want to add a sign up form in word press.org
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 31

Expert Comment

by:gwkg
ID: 35447653
It's not so simple if you are not familiar with using Wordpress hooks.

For example, to add an extra field for a users Twitter name you would need something like this

add_action( 'show_user_profile', 'show_extra_profile_fields', 10 );
add_action( 'edit_user_profile', 'show_extra_profile_fields', 10 );
 
function show_extra_profile_fields( $user ) { ?>
      <input type="text" name="twitter" value="<?php echo esc_attr( get_the_author_meta( 'twitter', $user->ID ) ); ?>" />
<?php }

and this to save

add_action( 'personal_options_update', 'save_extra_profile_fields' );
add_action( 'edit_user_profile_update', 'save_extra_profile_fields' );
 
function save_extra_profile_fields( $user_id ) {
      if ( !current_user_can( 'edit_user', $user_id ) )
            return false;
      update_usermeta( $user_id, 'twitter', $_POST['twitter'] );
}

http://www.cozmoslabs.com/2010/05/31/wordpress-user-registration-template-and-custom-user-profile-fields/

Have you considered a plugin?

http://wordpress.org/extend/plugins/register-plus-redux/

0
 
LVL 31

Expert Comment

by:gwkg
ID: 35447661
Well that is for editing the user registration.

Unless when you say "sign up form" you are trying to add a completely different form to sign up for something other than your blog?
0
 

Author Comment

by:speedtofly
ID: 35454893
Yes indeed.

I just want one title : "sign up for our newsletter" (for example)

One box : "your email address"

And one button saying : " Sign up"

With an after message : "thank you for registering to our newslettert"

That's all
0
 

Author Comment

by:speedtofly
ID: 35454901
Something like that


sign-up-form.jpg
0
 
LVL 31

Expert Comment

by:gwkg
ID: 35457066
Oh, so you are trying to paste the code into a post or page?

You'll need this plugin to allow scripting in those

http://wordpress.org/extend/plugins/exec-php/

Either that or put it directly into one of the php template files.
0
 
LVL 31

Expert Comment

by:gwkg
ID: 35692311
Maybe the solution is so simple that you are pasting the code into the 'Visual' tab and not the 'Html' tab.
0
 
LVL 31

Accepted Solution

by:
gwkg earned 2000 total points
ID: 35692360
If you are using javascript <script> tags this might help

http://codex.wordpress.org/Using_Javascript#Javascript_in_Posts
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Like there are many different versions of Wordpress, there are also a handful of related side projects WordPress users should be familiar with.   All of these projects are open source and GPL licensed, which means there are few restrictions to us…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question