Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • bowman999 Friend
    #134322

    Hi,

    When someone tries to register on my site the registration using highslide no longer works! After details are added it just goes to the front/home page.

    http://www.sffmedia.com

    I don’t get the usual activation message and the users details do not appear in the Administration section. I can add a user through the back end though manually though.

    Has anyone come across this before?! Help much appreciated!! :((

    Thanks!

    John
    http://www.sffmedia.com

    Joomla 1.5.7
    PhP 5.28
    Using Jom Comment 3.0

    John Wesley Brett Moderator
    #274958

    Here’s the problem…

    Your ACTION in the form is directed incorrectly.

    You have:
    <form class=”form-validate” name=”josForm” id=”josForm” method=”post” action=”/component/user/”>

    You should have:

    <form class=”form-validate” name=”josForm” id=”josForm” method=”post” action=”index.php?option=com_user“>

    To correct – find the following file and make sure THE AREAS IN RED read as the do below:

      COMPONENTS > VIEWS > REGISTER > TMPL > default.php

    Around line 17 you’ll find the line:

    <form action=”<?php echo JRoute::_( ‘index.php?option=com_user’ ); ?>” method=”post” id=”josForm” name=”josForm” class=”form-validate”>

    Let me know how it goes.

    If you can do a search and replace for the entire ADMINISTRATOR and COMPONENT folders you might want to search for “josForm” to flush out any other areas where the above code has been disrupted…as there are several parts to this form (password reminders, user name reminders, user name resets, etc.)

    Good Luck.
    John.

    bowman999 Friend
    #274971

    Thanks for the fast response jbrett,

    Unfortunately though, I checked the file you pointed to and the highlighted red text in line 17 looks exactly like you’ve posted here:

    <form action=”<?php echo JRoute::_( ‘index.php?option=com_user’ ); ?>” method=”post” id=”josForm” name=”josForm” class=”form-validate”>

    It’s a strange one as I can’t think of anything I did to cause it to stop working. :confused:

    Not sure if this will help, but here’s the code for the entire file.

    Your assistance is much appreciated,

    Cheers

    John

    ——————————————————————–
    <?php // no direct access
    defined(‘_JEXEC’) or die(‘Restricted access’); ?>
    <script type=”text/javascript”>
    <!–
    Window.onDomReady(function(){
    document.formvalidator.setHandler(‘passverify’, function (value) { return ($(‘password’).value == value); } );
    });
    // –>
    </script>

    <?php
    if(isset($this->message)){
    $this->display(‘message’);
    }
    ?>

    <form action=”<?php echo JRoute::_( ‘index.php?option=com_user’ ); ?>” method=”post” id=”josForm” name=”josForm” class=”form-validate”>

    <?php if ( $this->params->def( ‘show_page_title’, 1 ) ) : ?>
    <div class=”componentheading<?php echo $this->params->get( ‘pageclass_sfx’ ); ?>”><?php echo $this->escape($this->params->get(‘page_title’)); ?></div>
    <?php endif; ?>

    <table cellpadding=”0″ cellspacing=”0″ border=”0″ width=”100%” class=”contentpane”>
    <tr>
    <td width=”30%” height=”40″>
    <label id=”namemsg” for=”name”>
    <?php echo JText::_( ‘Name’ ); ?>:
    </label>
    </td>
    <td>
    <input type=”text” name=”name” id=”name” size=”40″ value=”<?php echo $this->user->get( ‘name’ );?>” class=”inputbox required” maxlength=”50″ /> *
    </td>
    </tr>
    <tr>
    <td height=”40″>
    <label id=”usernamemsg” for=”username”>
    <?php echo JText::_( ‘Username’ ); ?>:
    </label>
    </td>
    <td>
    <input type=”text” id=”username” name=”username” size=”40″ value=”<?php echo $this->user->get( ‘username’ );?>” class=”inputbox required validate-username” maxlength=”25″ /> *
    </td>
    </tr>
    <tr>
    <td height=”40″>
    <label id=”emailmsg” for=”email”>
    <?php echo JText::_( ‘Email’ ); ?>:
    </label>
    </td>
    <td>
    <input type=”text” id=”email” name=”email” size=”40″ value=”<?php echo $this->user->get( ’email’ );?>” class=”inputbox required validate-email” maxlength=”100″ /> *
    </td>
    </tr>
    <tr>
    <td height=”40″>
    <label id=”pwmsg” for=”password”>
    <?php echo JText::_( ‘Password’ ); ?>:
    </label>
    </td>
    <td>
    <input class=”inputbox required validate-password” type=”password” id=”password” name=”password” size=”40″ value=”” /> *
    </td>
    </tr>
    <tr>
    <td height=”40″>
    <label id=”pw2msg” for=”password2″>
    <?php echo JText::_( ‘Verify Password’ ); ?>:
    </label>
    </td>
    <td>
    <input class=”inputbox required validate-passverify” type=”password” id=”password2″ name=”password2″ size=”40″ value=”” /> *
    </td>
    </tr>
    <tr>
    <td colspan=”2″ height=”40″>
    <?php echo JText::_( ‘REGISTER_REQUIRED’ ); ?>
    </td>
    </tr>
    </table>
    <button class=”button validate” type=”submit”><?php echo JText::_(‘Register’); ?></button>
    <input type=”hidden” name=”task” value=”register_save” />
    <input type=”hidden” name=”id” value=”0″ />
    <input type=”hidden” name=”gid” value=”0″ />
    <?php echo JHTML::_( ‘form.token’ ); ?>
    </form>

    bowman999 Friend
    #275305

    Anyone have any other ideas?! Any assistance appreciated. :confused:

    Cheers

    John
    sffmedia.com

    bowman999 Friend
    #275511

    Can anyone help?!

    John
    http://www.sffmedia.com

    Sherlock Friend
    #275548

    Hi bowman999 !
    i have checked your site , please try to change :


    <?php echo JRoute::_( 'index.php?option=com_user' ); ?>

    to :


    index.php?option=com_user

    bowman999 Friend
    #275551

    No luck with that one!
    Didn’t work :((

    Thanks for the suggestion though. This one’s a tricky one.

    John

    Sherlock Friend
    #275583

    Hi bowman999 !
    this is strange problem , after replave obove code , your register highslide form still get “action=”/component/user/”” , i think i need FTP account and admin acc to debug this problem, please send them via pm for me , if posible !

    Sherlock Friend
    #275788

    Hi bowman999 !
    Please check it again ! it seems ok now !

    bowman999 Friend
    #275797

    Thanks hainn84,

    Working great now. I really appreciate the extra effort you went too. 😀

    The only thing that’s not working exactly right is that when you register using Firefox 3, the “Thank you for registering, we’ve sent you an activation link,” etc. message doesn’t display, but I’m not to worried about that as they still get an activation email and turn up in the CMS.

    Cheers!

    John

Viewing 10 posts - 1 through 10 (of 10 total)

This topic contains 10 replies, has 3 voices, and was last updated by  bowman999 16 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum