Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • mcseller Friend
    #130513

    I just realized that if I disable user registration from the backend in the frontend however appears the link “registration” and this not reflect joomla standard (if I don’t want to allow user registration visitors don’t have to see the link “registration”). By the way if you try to register a new user when user registration is disabled you get an error page. :confused:

    To solve this problem i modified the file: templates/ja_teline_II/html/mod_login/default.php

    ORIGINAL LINES:
    $option = JRequest::getCmd(‘option’);
    $task = JRequest::getCmd(‘task’);
    if($option!=’com_user’ && $task != ‘register’) {

    MODIFIED LINES:
    $option = JRequest::getCmd(‘option’);
    $task = JRequest::getCmd(‘task’);
    $tmpUsers = &JComponentHelper::getParams( ‘com_users’ );
    $tmpAUR = $tmpUsers->get(‘allowUserRegistration’);
    if($option!=’com_user’ && $task != ‘register’ && $tmpAUR==1) {

    Try and let me know :p

    P.S.
    My English is terrible… sorry :-[

    mcseller Friend
    #258203

    thank you again for you “thank you” 🙂

    antonio

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

This topic contains 2 replies, has 1 voice, and was last updated by  mcseller 16 years, 4 months ago.

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