Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] CB Login Modules, published or not, which is used when wrong login is used?

  • mrartist
  • mrartist
  • OFFLINE
  • Posts: 51
  • Thanks: 9
  • Karma: 1
11 years 3 months ago - 11 years 3 months ago #230922 by mrartist
Hi
I think I've just fathomed a CB Login issue I've recently been having after I created a new CB Login module but then unpublished it. I'm finding that whenever get to the component/comprofiler/login page, (the one that shows just the login panel and nothing else e.g. by entering wrong login details), then the page displays the CB Login panel that is unpublished.

To cut a long story short, I think this explains why I have been having some issues where the site wouldn't allow access unless I used https (site has a SSL certificate), because I'd tried the https setting in the unpublished cb login module.

Now, it may be that I've been causing potential problems because I actually have (by intention) two published and active CB Login modules that are used in different ways/positions within the site, but I think this is normally allowed?

As I say, my problem is that I am getting the unpublished CB Login module being used when it really shouldn't. Of course I could delete that module, but I actually might want to keep it and its settings/texts for later use, in any case I don't think it should be used at all as it is definitely unpublished.

I was wondering however, is this a possible bug, and also, how do I control which CB Login module is used for the page one gets to when wrong login details are used?
Last edit: 11 years 3 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago #230940 by krileon
This is normal. The CB login page uses the parameters of the first CB login module that it finds. If you don't actually need the module then simply delete it. If you need it for later then move it to be under your current and used login module so your used login module will be loaded by the login page instead.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • mrartist
  • mrartist
  • OFFLINE
  • Posts: 51
  • Thanks: 9
  • Karma: 1
11 years 3 months ago - 11 years 3 months ago #230947 by mrartist

krileon wrote: This is normal.

Really? Even when unpublished? That seems to defy logic and laws of Joomla?

krileon wrote: If you need it for later then move it to be under your current and used login module so your used login module will be loaded by the login page instead.

It's not possible to change the ordering when the "position" specified for the module is different, i.e. I can only change the order for modules that happen to occupy the same position, the currently unpublished module's position actually shows third in the ordering of six CB Login modules I have (3 Published, 3 Unpublished), and it is appearing 2nd in a list of two unpublished modules using the same position.

I thought it may be that the one currently being picked for the CB login page was first alphabetically, but renaming it with an x on the front doesn't change a thing, so that's not it? (I cleared all caches, J3.1.1, CB1.9+latest GJ)

So how is it actually being decided which login module is used for the CB login Page? How can I ensure the one I want picked is used (even if I delete the unpublished ones)?

Picture attached, the one named "x-Logged in-pop all" is the one that is always showing on the CB login page.

NB - Also worth noting is that the position "Login" is actually not "on" in the template and even if it were, it's position is currently set as in the footer area, whereas the module is showing in the main content area.
Attachments:
Last edit: 11 years 3 months ago by mrartist. Reason: Added NB note

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago #230953 by krileon

Really? Even when unpublished? That seems to defy logic and laws of Joomla?

Yes, we do this so you can have a hidden module control the display of the login page without it being rendered or loaded on frontend anywhere else.

It's not possible to change the ordering when the "position" specified for the module is different, i.e. I can only change the order for modules that happen to occupy the same position, the currently unpublished module's position actually shows third in the ordering of six CB Login modules I have (3 Published, 3 Unpublished), and it is appearing 2nd in a list of two unpublished modules using the same position.

Move it to the same position as your existing module then order it to be below your existing module.

So how is it actually being decided which login module is used for the CB login Page? How can I ensure the one I want picked is used (even if I delete the unpublished ones)?

It's strictly based off the ordering. The query only sorts by ordering. You can ensure it's used by changing it from vertical to horizontal or vise verse and see if the login page reflects the change. If you delete all other CB login modules then it'll use whatever one remains.

Picture attached, the one named "x-Logged in-pop all" is the one that is always showing on the CB login page.

Based off the screenshot it probably should be using "Logged in-private", but this may vary depending on how they're ordered in the database. The query below is the query used to pull the first module found.

Code:
SELECT params from #__modules WHERE module = 'mod_cblogin' ORDER BY ordering

Replace #__ with your actual database previous then run using phpmyadmin and that'll give you an idea of what module it'll use.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • mrartist
  • mrartist
  • OFFLINE
  • Posts: 51
  • Thanks: 9
  • Karma: 1
11 years 3 months ago #230959 by mrartist
I put that query into phpmyadmin and it gives me a listing but doesn't show details of which is which, just identical details on the various columns but no module name (see attached). I guess something else is needed for the query to show the title but I'm not at all experienced in the use of phpmyadmin.

However, looking at the general view of #_modules, I can see the first that appears in the list is indeed "Logged in-private" as you suggest, but this is not the one being picked for the CB Login page.

Still a mystery then?! And doing things like changing the modules' positions to all be the same to get things ordered as required kind of defeats the purpose of me having them with the positions I have specified, i.e. little point in their existence and won't appear where I want.
Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago #230960 by krileon
Change the query to "SELECT *" so it returns all the columns so it's easier to see which modules is loaded. Aside from that I don't know what more to tell you as it's literally using the query I've provided to grab the first one it can find. Are you sure it's using "x-Logged in-pop all"?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum