0
Welcome Guest! Login
0 items Join Now

Guest Login Redirect

    • MrCodexCY's Avatar
    • MrCodexCY
    • Rocketeer
    • Posts: 73
    • Thanks: 0
    • Web Design Specialist

    Guest Login Redirect

    Posted 14 years 4 weeks ago
    • Hello,

      I use community builder, but i have a menu that is only for register users, and when a guest click on it he get redirected to the default login form of joomla. How i can make that redirect to go to community builder login form?

      Thanks,
      Artemis
    • Even a broken clock is right twice every day.
    • MrCodexCY's Avatar
    • MrCodexCY
    • Rocketeer
    • Posts: 73
    • Thanks: 0
    • Web Design Specialist

    Re: Guest Login Redirect

    Posted 14 years 3 weeks ago
    • Problem solved!

      For those who may faced the same problem, instead of choosing access level as Registered, you only have to create a module with public access, and put this code inside:
       
      <?php
       
      $user =& JFactory::getUser();
       
      if ($user->id == 0) {
      header( 'Location: http://www.example.com/membership/sign-in' ) ;
      } else {
      }
      ?>
       

      Wish i helped,
      Artemis
    • Even a broken clock is right twice every day.

Time to create page: 0.081 seconds