1. Fabrik 3.8 has been released. As usual, we strongly recommend that you backup your site (using Akeeba) before upgrading. Report any issues in the forums, we will answer promptly.

More info on Juser Form Plugin

Discussion in 'Fabrik 3.x Testing' started by rackem, Apr 28, 2012.

Thread Status:
Not open for further replies.
  1. rackem

    rackem Well-Known Member

    Level: Standard
    I am trying to wrap my head around what the Juser form plugin can do. After reading through the forum and the tooltips, I get that it can be used to recreate the Joomla registration as well as build on it to set up & edit user profile information. Very useful stuff! Question: can it be used for logging in & out as well or is the standard Joomla menu or modules used for this? What about a "I forgot my password" sort of thing work? Any sort of "here is what I did" or tips or tricks would be appreciated! Thanks!
  2. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Nope, it's just for creating user accounts, and applying changes to user accounts.

    -- hugh
  3. rackem

    rackem Well-Known Member

    Level: Standard
    Thanks for the clarification Hugh - one stumbling block clear! I am just using the default J! functionality so that would mean user login/out and forgotten usernames and passwords would be handled with J!

    What I am stuck on now is how this works when a new user wants to register. I am currently using the default J! login accessed from a menu. For a new user, they would click on the "Don't have an account?" link but that would go to the J! registration instead of my F! registration. I guess I could see using the J! registration for the initial info and then use F! for extended information and editing but that just seems clunky. How is this typically or best done? I'm not hung up on one particular approach or another, I just want something clean and intuitive.
  4. jfquestiaux

    jfquestiaux Well-Known Member

    Level: Professional
    The easiest way is to do an override of the "default_login.php" file of the "com_users" component in your main site template and replacing the link to the J! component by the link to your Fabrik form.
    1 person likes this.
  5. rackem

    rackem Well-Known Member

    Level: Standard
    Excellent, thank you jfquestiaux for the tip! It took some research to figure out what you meant by that so I'll flesh out the details here in case it can help others like me.

    I found "default_login.php" in /components/com_users/views/login/tmpl

    I copied the file to my desktop and changed the link in the code ~ line 60 to be the link to my Fabrik user form. So the code went from
    Code (Text):
    <a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
    Code (Text):
    <a href="<?php echo JRoute::_('index.php?option=com_fabrik&view=form&formid=6'); ?>">
    Of course, it isn't a good idea to just mod that file as it will get overwritten with the next update. So it is necessary to perform an override which is detailed here: http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core

    So for me, that involved placing the modified file into /templates/beez_20/html/com_users/login

    Now, when a user goes to my login screen and selects the link "Don't have an Account?", they are directed to the Fabrik form instead of the default Joomla. :D
Thread Status:
Not open for further replies.

Share This Page