Ultimate Facebook (Connect) + Membership Plugin

0

Hi Guys. I’m using these two plugins together and so far it’s been good.

Now i’m trying to send the user to the same page he was before he clicks the facebook connect button.

For that, I’ve set the connect config as “blank” and it’s working for regular unprotected pages.

In membership plugin I have visitor level set up, so a few people that go straight to a members-only page (URL) will be redirected to the “Protected content page” where there is a facebook connect button in place.

What I need is to send the user back to the URL he tried to go directly before the content protection hit it.

Today, when he get redirected to the Protected content page and then click the connect with facebook button, he will be sent back to the Protected content page and not the URL he was trying to go previously.

That’s the ONLY page in the site that the user does not want to be redirected to, so I think that the coders should put an IF STATEMENT for that case.

How can we fix this?

Regards,

  • Alexander
    • DEV MAN’s Mascot

    Hi @diegoys,

    Right now there isn’t a way to do this, as the referring URL would need to be passed through once more to Ultimate Facebook. At this point Ultimate Facebook just uses the previous page.

    However, this would be a good feature for Ultimate Facebook. I will move this to Features & Feedback though so we can see what other community members think, and so it can be considered for future development.

    Best regards,

  • diegoys
    • Site Builder, Child of Zeus

    OK. Thanks.

    I posted that since this is probably the only page where the user will GET stuck. There is no sense in getting back to the protected page again.

    As a workaround i edited this page and splited the views for MEMBERS and NO MEMBERS using the membership plugin level shortcodes. At least the user will se a different thing and not get stuck in this loophole.

    By the way, isn’t possible to send the user to 2 pages back in his history then, instead of the previous page in this particular protected page only case? (Just a thought.)

    Cheers.

  • Alexander
    • DEV MAN’s Mascot

    @diegoys,

    It wouldn’t work in all browsers, and would be difficult to maintain. We’d need a way to have the browser remember the referring URL with protected by Membership. Then Ultimate Facebook could check for it’s existence.

    I’m not sure how to do this myself in the code, but perhaps it’s something that can be explored for a future version.

    Best regards,

  • diegoys
    • Site Builder, Child of Zeus

    I agree Alexander.

    The point is, using ultimate facebook + membership, this feature becomes useless and we are forced to use a workaround as I did.

    Hope the developers of each plugin work together to solve some feature requests.

    I’ve used other WPMU plugins together too and found that some features do not work together between them and should be addressed differently.

    Cheers.