I've a some menu items which only registered users can view. That being said, the menu is still visible to public. When they click on it, I want the SC Login Modal popup to appear instead of the conventional Joomla registration page redirect. How can this be achieved?
Sorry for the delay. I wanted to think a bit more about what you were requesting before I responded. Unfortunately, that's not something that's easily done with the SCLogin module. The menu items themselves have no way to signal that the page they are leading to is for registered content. Because of that, there's not an easy way (that I can think of right now) to trigger the SCLogin modal when those links are clicked.
I've added this to our investigate list for a future release. I do think it would be a neat feature to have, but it's simply not an option or a line of code we could simply provide to you right now.
I hope that explains, but if you have any questions, just let me know.
Thanks for the reply. I understand it is a bit tricky. But I'm not fully following when you mention the menu links have no way to signal if they are leading to registered/ public page. The menu links (using the backend menu manager) are configured to display only to public/ registered users. So they in a way know where they are leading and who can view the content. Correct? It's just that, when a public viewer clicks on a "only for members" link, instead of redirecting him to a standard registration page, it would be nice to have the SClogin modal window. I hope I'm not confusing you.
You're not confusing me. The problem is that only Joomla knows the link is registered. The user has to actually click the link (which has the 'real' URL). Then, Joomla processes that URL, sees it's registered and then redirects the user to the Login page. That's all done server side.
I hope that's not confusing it. What you're looking for is likely possible, but would take a substantial amount of work to dig into Joomla and alter it's general behavior.
We agree it'd be a cool feature to have, and I did add it to our investigate/to-do list.. I just can't comment on when something like that may be available.
Thanks for the feedback,