Topic-icon How to call SCLogin for register only Menu

Active Subscriptions:

None
10 years 8 months ago #35265 by srisiv
Hi,
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?
The topic has been locked.
Support Specialist
10 years 8 months ago #35320 by alzander
Sriram,
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,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 8 months ago #35522 by srisiv
Hi Alex,
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. :)
The topic has been locked.
Support Specialist
10 years 8 months ago #35526 by alzander
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.

There's no way in our module that we could check if the link the user is clicking is registered since that would have to be done client-side through Javascript. That would take a lot of work to alter all of the links before they are sent to the user to display the page and alter any Registered links to instead popup our modal when clicked.

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.

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

None
10 years 8 months ago #35529 by srisiv
Hi Alex,
Thanks for the reply. I understand the difficulty. Would love to see something of this sort in the near future. It would be very useful.
The topic has been locked.
Support Specialist
10 years 7 months ago #35547 by alzander
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,
Alex
The topic has been locked.