WordPress.org

Support

siteurl

  • rocke
    Member

    @shashibhushan

    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

Viewing 15 replies - 1 through 15 (of 15 total)
  • rocke
    Member

    @shashibhushan

    i am using twentyten themes

    please reply someone …

    Samuel B
    Participant

    @samboll

    rocke
    Member

    @shashibhushan

    @ 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 …

    rocke
    Member

    @shashibhushan

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

    for some security reason

    Thanks

    rocke
    Member

    @shashibhushan

    any one plss

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

    rocke
    Member

    @shashibhushan

    @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

    get_bloginfo('url') ?

    Chip Bennett
    Theme Review Admin

    @chipbennett

    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.

    rocke
    Member

    @shashibhushan

    @ Chip Bennett

    sir,

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

    rocke
    Member

    @shashibhushan

    @ 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 …

    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.

    Chip Bennett
    Theme Review Admin

    @chipbennett

    Is there any reason that you can’t create a “Register” Page from within WordPress?

    rocke
    Member

    @shashibhushan

    @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

    Chip Bennett
    Theme Review Admin

    @chipbennett

    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.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘siteurl’ is closed to new replies.