Topic-icon Assign to a menu?

Active Subscriptions:

None
11 years 7 months ago #47908 by Alecwhankins
Is there a way to assign the login/registration to a menu item? Like I currently have here: lawger.com/new/

The built-in login registration looks terrible and gets overwritten on my site on different page.
The topic has been locked.
Support Specialist
11 years 7 months ago #47913 by alzander
Replied by alzander on topic Assign to a menu?
The SCLogin module is the best way to add a login/register button anywhere you'd like. There really aren't standard "Login" or "Register" views for JFBConnect that a user should go to from a menu item:
* The "Login" and "Register" views a user should use are simply Joomla's standard page, which JFBConnect can add the social buttons too automatically. You can easily create menu items to the standard Joomla login and registration view already.
* The "Login/Register" page that a user is brought to after they try to connect with a social network is not something you'd like to directly. That view is only shown if Automatic Registration is disabled and they have already authenticated with a social network.

I hope that helps explain some more. If you can clarify more about what you're looking for if I'm missing something, just let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago - 11 years 7 months ago #47927 by Alecwhankins
Replied by Alecwhankins on topic Assign to a menu?
So how do I customize the login/registration to match my existing navigation? Also, when I click into other pages on my site the JFBConnect registration becomes invisible (i.e. the font whites out.)

This is horribly frustrating.
File Attachment:
Last edit: 11 years 7 months ago by Alecwhankins.
The topic has been locked.
Support Specialist
11 years 7 months ago #47948 by alzander
Replied by alzander on topic Assign to a menu?
To integrate into that menu area, you'll likely just need to apply some styles to our button. I just took a look at your /new site and see there already is some new styling applied to the page compared to what you show above. If you're still looking for some specific updates, let me know what you're looking for or missing in the button you've styled, and we'll gladly try to help get you the right CSS to match things up as you'd like.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #47983 by Alecwhankins
Replied by Alecwhankins on topic Assign to a menu?
Thank you,

I was able to make it match somewhat, but this sort of stuff isn't my forté.

The button still doesn't match the template in terms of responsiveness and hover. Do you know how I can make it match exactly? Is there a way to impute the css from the template navigation into that button?
The topic has been locked.
Support Specialist
11 years 7 months ago #48000 by mel
Replied by mel on topic Assign to a menu?
Here are some steps that should help you out with both the responsiveness and hover issues

1. Copy the /modules/mod_sclogin/login.php file to /templates/YOUR_TEMPLATE/html/mod_sclogin/login.php
2. In the new ../html/mod_sclogin/login.php file around line 28, replace
echo '<div class="sourcecoast sclogin-modal-links sclogin"><a ' . $loginClass . ' href="#login-modal" role="button" data-toggle="' . $modalName . '">' . JText::_('MOD_SCLOGIN_LOGIN') . '</a>';
if ($showRegisterLinkInModal)
   echo $spacer . '<a ' . $registerClass . ' href="' . $helper->registerLink . '">' . JText::_('MOD_SCLOGIN_REGISTER_FOR_THIS_SITE') . '</a>';
echo '</div>';
with
echo '<div class="sourcecoast sclogin-modal-links sclogin"><ul class="nav menu"><li><a ' . $loginClass . ' href="#login-modal" role="button" data-toggle="' . $modalName . '">' . JText::_('MOD_SCLOGIN_LOGIN') . '</a></li>';
if ($showRegisterLinkInModal)
   echo '<li>'.$spacer . '<a ' . $registerClass . ' href="' . $helper->registerLink . '">' . JText::_('MOD_SCLOGIN_REGISTER_FOR_THIS_SITE') . '</a></li>';
echo '</ul></div>';

In the CSS, replace the '.sclogin-modal-links a {...}' block with
#jm-top-bar-mod .sclogin-modal-links .nav.menu > li a {
margin-right: 1px;
color: #fff;
font-size: 13px;
font-weight: 600;
border-left: 0;
background: #29b6a6;
padding: 0 20px;
text-decoration:none;
}
#jm-top-bar-mod .sclogin-modal-links .nav.menu > li a:hover {
background:#118679;
}
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #48009 by Alecwhankins
Replied by Alecwhankins on topic Assign to a menu?
Thank you!

Do I have to change the template or something? After I did this, there wasn't a new template in the SCLogin module and nothing changed on the front end....

I couldn't find "/modules/mod_sclogin/login.php" but there is a "/modules/mod_sclogin/tmpl/login.php" so I copied that file (and only that file) to: "/templates/Responsive_SClogin/html/mod_sclogin/login.php"

The CSS didn't work so I changed it back for the time being.....
The topic has been locked.
Support Specialist
11 years 7 months ago #48019 by alzander
Replied by alzander on topic Assign to a menu?
You're correct that the file to copy was /modules/mod_sclogin/tmpl/login.php. It sounds like you copied it to the wrong directory though. /templates/Responsive_SClogin/ is not the Joomla template you're using.

Please copy that file to:
templates/jm-joomclassifieds/html/mod_sclogin/login.php
jm-joomclassifieds *looks* to be the template you're using on your site, but if not, copy it to whatever template you're actually using in the template manager.

As for the CSS, I'm not sure why that didn't work. Please make sure you've cleared your Joomla and browser caches afterwards to ensure that the CSS changes are properly reloaded.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 7 months ago #48115 by Alecwhankins
Replied by Alecwhankins on topic Assign to a menu?
Fantastic!

Yeah this worked out great. I was thinking I was making a new template or something... Mea Culpa

Thank you!
The topic has been locked.
Support Specialist
11 years 7 months ago #48132 by alzander
Replied by alzander on topic Assign to a menu?
No problem for all the help. It's what we're here for. If you run into anything else, or have any other feedback or suggestions for us, just let us know.

Finally, if you haven't already, please consider leaving a rating and review on the Joomla Extension Directory for JFBConnect and/or our support:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.