Ultimately I'd like to get to the point where I can force Janrain login and never provide any option otherwise for a user. I'd like to show the Janrain login popup or the static page if need be whenever a user clicks the login/register link.

I've tested just replacing the URL for the login/register link with the static URL for Janrain but that doesn't work as perfectly as I like. For one, when a user is finished login in there is no redirection and secondly, there is no theming capabilities so there is no menu etc for my site.

What would be your suggestion for accomplishing this task and being able to force a user to use Janrain on the site? Thanks.

Comments

drupalreggie’s picture

Hi,
I recently achieved this 'forced login' using blocks and the CSS injector module.

I created a block which displays a link to the correct Janrain URL and set this to appear on the page "user/login". As far as I know the Janrain link will only work if it is on the user log in page.

Next I used the CSS injector module to insert the following code onto the page "user/login".

#page-title,
#user-login,
.tabs.clearfix
{
display:none;
}

This basically hides the page title, standard drupal core log in form and associated 'create new user' etc. tabs. The only remaining content on the user/login page will be the Janrain link.

Hope this helps.
Reg.

RKS’s picture

This sounds like a good idea but I don't fully understand what you're saying. You have the block and then override the login page to show the block? Correct. I like this idea. But you do mention the Janrain link.

In my trials I can get it to work with the Janrain page but it takes over the entire page and appears a a fullscreen version of the Janrain popup. I don't like this so hopefully you mean my other example.

I'm going to try to override the page tonight and show only the Janrain links in a block on the the login page. That way, I still maintain my theme and still get the popup I like when they click one of the icons.

Thanks for the tip.

drupalreggie’s picture

Good luck! Despite working in Mozilla and Chrome, I was disappointed to see that this solution seems to be incompatible with IE9. The whole theme is broken by it. Not sure why this would be or if it's possible to fix it, back to the drawing board for now...

RKS’s picture

If this makes it into some kind of feature in the future this probably won't be a problem. Once I figure out a good workaround I'll change this to feature request.

As for your problem, have you looked at the Janrain core HTML? We may have to insert some IE conditionals to make sure the theme is right. Of course, this isn't ideal to hack core but being this seems to be of small interest to anyone except you and me it most likely won't make it into a feature.

I never did get around to trying my theory because I've been working around the clock to get this affiliate system to work and bulk discounts. Sometime this week I should be able to put some focus on this and try out a couple of things.

drupalreggie’s picture

Hey,
I wouldn't know where to start on the core HTML i'm afraid. Let me know if you make any progress as this is still an outstanding problem for me and my users.

Cheers,
Reg.

RKS’s picture

Category: support » feature

Yeah, I'm not going to go that deep into it either. I'm going to change this to a feature and if they want to add it to their TODO list or give us some ideas I'll take that. If not, then oh well. I'm having some other serious issues with the module right now and until they get fixed I supposed I can't rely on it to take care of all my registrations anyway.

I did take a look into some of the files and it wasn't immediately obvious to me what you could do to add IE conditionals to the HTML so that was most likely a lost cause anyway.

RKS’s picture

Before you give up, try one more thing on your site.

Create a view and insert only the Janrain provided fields in the view. Then, use the same method you originally used with CSS injector etc and put that view on the login page. If it works, you will be able to style it easier.

I don't have the CSS injector or else I'd try myself tonight but if it works for you then I can give you some help style the conditionals if that's still a problem.

TruAnRksT’s picture

Issue summary: View changes

I think forcing people to use Janrain for logging is is akin to a crime.

I have a free message board provided by Yuku and Yuku just started using Janrain to share posts with the common social networking sites. It's very annoying having to close the popup after every reply. Access to the core site code is not available to admins of free boards.

I tried blocking it with Adblock and that only removed the content but not the popup itself.

So for now I've blocked the url's that Janrain uses for their include scripts in my HOSTS file and I'm happy to say it's now completely gone. Instead of forcing people to accept this invasive crap. I'm looking into adding a script of my own from the admin panel so that Yuku can not force Janrain popups on any of my posters.
Although some of my posters for whatever reason haven't had the pleasure of being annoyed by this application.
I don't know if it's differences in the browsers used but I had this popping up on my laptop with Opera as well as my desktop using FF.

rebekahgolden’s picture

Status: Active » Closed (works as designed)

This Janrain module adds social login to Drupal's login. Janrain's other module, which handles registration as well as social login, is able to completely take over all login tasks from Drupal. For more about Social Login and Registration visit Janrain's website.

Thanks! Rebekah