Joomla Login Form with SCLogin

Joomla Login Form with SCLogin

Hi,

I would like to know if the position of "Facebook Login" in Joomla Login Form is fixed, using SCLogin.

As we can see in the picture below, it automatically includes the button in the end of the form. I would like to have something like: username / password OR {the button facebook login}.

http://www.sourcecoast.com/components/com_agora/img/members/14831/Joomla-Login-Form-with-SCLogin.png

The same behavior to the registration page... Enter your data OR {the button facebook login}.

Sorry about the "basic" question.

Kind Regards,
Rafael

acexgames
useravatar
Offline
21 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Joomla Login Form with SCLogin

Rafael,
The Login with Facebook button is hard-coded into the SCLogin module when JFBConnect is detected. We don't currently have an easy way to add other text before it. We are in the process of a completely overhauled SCLogin module with many more styles and a better looking social buttons in general (icons, buttons, images, etc).

If you want, you can edit the /modules/mod_sclogin/helper.php file. Around line 295, you'll see the login button block that looks like:

Code:

    function getJFBConnectLoginButton()

    {
        if ($this->isJFBConnectInstalled)
        {
            $buttonSize = $this->params->get("loginButtonSize");
            $showFaces = $this->params->get("showFaces");
            $maxRows = $this->params->get("maxRows");
            $loginButton = $this->jfbcLibrary->getLoginButton($buttonSize, $showFaces, $maxRows);
            $loginButton = '<div class="jfbcLogin">'.$loginButton.'</div>';
            return $loginButton;
        }
        return "";
    }

You can update the last $loginButton = line so it looks like:

Code:

    function getJFBConnectLoginButton()

    {
        if ($this->isJFBConnectInstalled)
        {
            $buttonSize = $this->params->get("loginButtonSize");
            $showFaces = $this->params->get("showFaces");
            $maxRows = $this->params->get("maxRows");
            $loginButton = $this->jfbcLibrary->getLoginButton($buttonSize, $showFaces, $maxRows);
            $loginButton = '<div class="jfbcLogin">=== OR ===='.$loginButton.'</div>';
            return $loginButton;
        }
        return "";
    }

The registration page also has no way to edit it. JFBConnect simply appends the button to the registration page. If you want to customize that more, you'd need to edit the com_users registration page template file. Since many templates already overwrite that view, there's not many options we can provide or it would break those templates.

Hope that helps,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23832 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11508
Total Polls:
0
Total Posts:
48439
Posts today:
11
User Info
 
Total Users:
47480
Newest User:
scottrobins
Members Online:
0
Guests Online:
1152

Online: 
There are no members online
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program