Topic-icon Responsive - protostar

10 years 10 months ago #33509 by edwardpeck
Hi - not sure this is in the right place, but I am upgrading to Joomla 3.0 and trying to make the lovely new pop-up module not appear for phones (it doesnt work on my Blackberry).

Its probably me, but if you see here:

www.assetfinanceawards.com/jupgrade/

If you reduce the width of the page, the little button banner disappears (module class suffix: hidden-phone). But when I do the same for your new module, it persists.

Can you help out an amateur? What am I doing wrong?
The topic has been locked.
Support Specialist
10 years 10 months ago #33512 by alzander
Replied by alzander on topic Responsive - protostar
Edward,
There's no wrong place for support. The SCLogin is a free module, and so there is a support forum for it, but questions can go in the JLinked or JFBConnect areas as well.. we're not that picky.

There's a few ways to fix what you're trying to do. My best recommendation would be to modify this line in your template:
<div class="header-search pull-right">
And modify it to look like:
<div class="header-search pull-right visible-desktop">
That line encompasses both of the sub-module: the button banner and SCLogin. When collapsed, both are hidden properly.

You should also be able to set a Module Class Suffix on the SCLogin module to " visible-desktop" (that space at the beginning is important. However, the template doesn't look to be rendering modules in the right mode for that setting to work.

One final alternative is that you could make a small change to the /modules/mod_sclogin/tmpl/login.php file to add that visible-desktop class to line 16. That's more tedious and prone to being overwritten though.

Either way, I hope one of those solutions helps.. and thanks for calling the module lovely!

Thanks,
Alex
The topic has been locked.
10 years 10 months ago #33518 by edwardpeck
Replied by edwardpeck on topic Responsive - protostar
Thanks - I has set Module Class Suffix on the SCLogin module to " visible-desktop" (as I had on the button above).

Your other suggestions make good alternatives. I will need an sclogin for both desktop and phone.

Incidentally I am a subscriber - but dont seem to have access to the Joomla 3.0 bit for JLinkedin. Not sure why.

Anyway - my thanks as ever for your kind attention.
The topic has been locked.
Support Specialist
10 years 10 months ago #33519 by alzander
Replied by alzander on topic Responsive - protostar
The Module Class suffix is a part of Joomla itself. That value is taken and automatically added to the automatically when the template displays the module position in a specific way which adds more CSS to it. If the Suffix isn't working, that means that your module position doesn't support the class suffix value.

Is the banner module above the SCLogin links in the exact same template position, or is it in a different one? Are you using the Suffix on that module as well?

Incidentally I am a subscriber - but dont seem to have access to the Joomla 3.0 bit for JLinkedin. Not sure why.

Can you explain what you mean here? You should be able to see the JLinked for Joomla 3.0 download in the "My Downloads" area. If not, let me know, that means something is wrong. If you meant something else, let me know.

Thanks,
Alex
The topic has been locked.
10 years 10 months ago #33528 by edwardpeck
Replied by edwardpeck on topic Responsive - protostar

alzander wrote: Is the banner module above the SCLogin links in the exact same template position, or is it in a different one? Are you using the Suffix on that module as well?


Yes - that's correct.

Incidentally I am a subscriber - but dont seem to have access to the Joomla 3.0 bit for JLinkedin. Not sure why.


I meant that the Joomla 3.0 JLinkedin forum section appears to be locked.
The topic has been locked.
Support Specialist
10 years 10 months ago #33532 by alzander
Replied by alzander on topic Responsive - protostar
I'm not sure why the suffix would work on the other module, but not the SCLogin module. We'll have to investigate further, but there's no reason we can see that that should happen. Since you're using Protostar, we can hopefully recreate it though. Can you let me know what template position you're using in Protostar so we can try ourselves?

As for the padlock symbol on the JLinked for Joomla 3.0 forums, that's simply because the most recent post in that forum is closed. The whole forum is not closed, but I can see where that's confusing. We'll see if we can change that lock symbol in the forum overview type pages.

Thanks,
Alex
The topic has been locked.
10 years 10 months ago #33547 by edwardpeck
Replied by edwardpeck on topic Responsive - protostar
Position-0

Its entirely possible I am getting something wrong (but cant see where - but see how easily confused I was with your forum ;)).

Happy to give you access if you wish.
The topic has been locked.
Support Specialist
10 years 10 months ago #33579 by alzander
Replied by alzander on topic Responsive - protostar
Edward,
Alright.. did some testing. Hopefully, we can get to the bottom of things. There's actually some new settings in Joomla 3.1 that I didn't even know about. Let's begin.

When I put the SCLogin module into the Protostar - Position-0 location, the module class suffix doesn't work. There's now a new setting in 3.0 for modules called "Module Style", which can be set to different types of styles that the template can produce. By default, in position-0, the Module Style is 'none' (or 'no', I can't remember), which does not use the Module Class Suffix. If I change that to "well", the module class suffix does begin to work on the modules in that position. That adds a bunch of other styles to the modules, so isn't likely what you're looking for.

I'm not sure how you have things configured for mod_banners, but it seems to work the same way. You may want to check the Module Style parameter in your mod_banner instance and try to use the same one in SCLogin. If it's set to 'No' (or 'none'), then let me know what all the Advanced settings in *both* modules from "Module Class Suffix" on down are. With that, we should be able to compare the difference or I should be able to test on a development site and narrow things down further.

Whew.. hope that helps, but keep me posted.

Thanks,
Alex
The topic has been locked.
10 years 10 months ago - 10 years 10 months ago #33582 by edwardpeck
Replied by edwardpeck on topic Responsive - protostar
Thanks for that Alex. I have set the Module Style in SCLogin to HTML5 (for no other reason than it works), and this sorts me out :)

mod_banners had an identical setup to SCLogin (set to inherited) where inherited is (I think) no (the abbreviation for none).

Many thanks for your kind attention. As far as I am concerned this is a workable solution.
Last edit: 10 years 10 months ago by edwardpeck.
The topic has been locked.
Support Specialist
10 years 10 months ago #33599 by alzander
Replied by alzander on topic Responsive - protostar
Glad to help. I honestly can't say I understand what black-magic is making it work for you, but so be it! I'm not saying it shouldn't, just that there's a lot of moving parts here it seems, and I'm likely just missing something.

Either way, no problem for the investigation and I'm glad we could help. Heck, I learned a little bit about Joomla 3.1 that I didn't know before :)

I hope you're liking the new SCLogin module. If you have any feedback for improvements, just let us know. We have a lot of ideas and new features planned, but we always like to hear suggestions for what our users want.

And, finally, if you haven't already, please consider leaving a rating and review for the SCLogin module on the Joomla Extension Directory. It's certainly not required, but very appreciated as it's a new module that could use some love:
extensions.joomla.org/extensions/access-...authentication/24054

Thanks, and best of luck,
Alex
The topic has been locked.