WordPress.org

Ready to get started?Download WordPress

Forums

siteurl (16 posts)

  1. rocke
    Member
    Posted 3 years ago #

    i am making a site in which i need Register page.. so i made register form ... now i want to link this page..

    so i am calling below code

    <a href="<?php echo site_url();?>/registration.php">

    when i am clicking my Register button ... i am transfer to

    http://localhost/xampp/

    why so ,,,

    i am using

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    ErrorDocument 404 /http://localhost/xxx/
    </IfModule>
    # END WordPress

    in .htaccess

    please check and some one reply asap...

    OR i want Register page in my wordpress ... so there is any plugin or any way .. by which i can build a LOGIN/REGISTER in my wordpress site

  2. rocke
    Member
    Posted 3 years ago #

    i am using twentyten themes

    please reply someone ...

  3. Samuel B
    moderator
    Posted 3 years ago #

  4. rocke
    Member
    Posted 3 years ago #

    @ Samuel B

    Thanks for your gr8 support ...

    I installed that plugins in my localhost .. but the Problem is for

    Register new users in my wordpress ... with my decided fields

    Please help me

    Thanks once again ...

  5. rocke
    Member
    Posted 3 years ago #

    i know wordpress has inbuilt Register form .. but i dont want that ...

    for some security reason

    Thanks

  6. rocke
    Member
    Posted 3 years ago #

    any one plss

  7. jocken
    Member
    Posted 3 years ago #

    replace echo site_url() with get_bloginfo('site_url')

  8. rocke
    Member
    Posted 3 years ago #

    @jocken

    thanks for your gr8 reply .. but i am sorry dude ... its not working my side..

    i am getting " Object not found! "

    error

    pls any one

  9. jocken
    Member
    Posted 3 years ago #

    get_bloginfo('url') ?

  10. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    Are you trying to add a registration page from within WordPress, or are you creating a separate resource outside of WordPress?

    If you created your Page from within WordPress, assuming its Title is "Registration" and its slug is "registration", the Page URL will be:
    http://www.domain.tld/registration

    ...or if WordPress is installed in a subdirectory "wordpress":
    http://www.domain.tld/wordpress/registration

    If, on the other hand, you have created a resource external to WordPress, called "registration.php", you will need to ensure that this file calls all of the required WordPress header files (refer to the index.php file in your WordPress root directory).

    P.S. echo home_url() is the preferred template tag for outputting your site's URL.

  11. rocke
    Member
    Posted 3 years ago #

    @ Chip Bennett

    sir,

    see i have made registration.php in which i have only call HEADER.PHP

  12. rocke
    Member
    Posted 3 years ago #

    @ Chip Bennett

    i have made registration.php in which i am only calling HEADER.PHP

    but when i am clicking my Register button ... i am transfer to http://localhost/xampp/

    <a href="<?php echo site_url();?>/registration.php">

    please help me ...

  13. jocken
    Member
    Posted 3 years ago #

    I think you started it off wrong from the beginning. Since wordpress doesn't use endings with php, for example registration.php.

    This is what I would do if I where you.

    1. Create a page called registration.

    2. Create a new php file called page-registration.php

    3. Copy the code from page.php to page-registration.php

    4. Strip all the content you don't want in page-registration.php

    5. Read this: http://codex.wordpress.org/Function_Reference/wp_register

    6. Registration will now be at: http://www.example.com/registration.

  14. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    Is there any reason that you can't create a "Register" Page from within WordPress?

  15. rocke
    Member
    Posted 3 years ago #

    @Chip Bennett,

    yes i dont want inbuilt features of word-press .. because suppose in future my client asked me to added some thing in register page ... it will be bit diff ... secondly the main is Designs .. i want my own designs page for registration .. color,images..etc.. which become more diff..for editing ... hence if i get solution it will be easier for me ..

    anyway i arise 2 more problem ..if possible try me in this ,,,
    http://wordpress.org/support/topic/menu-15?replies=2

    Thanks

  16. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    Just because you create a "Register" Page from within WordPress does not mean that you have to make the content WordPress-specific. You can create a custom Page template for your "Register" Page, that will have whatever content you want.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.