• Before i explain im new to this fourm and my skill level is probally intermediate IMO

    im currently using plugins loggedin to limit concurant sessions to 1 and log out if user logs in elsewhere and the other one im using is Pay For Post with WooCommerce to restrict the pages required

    the page im trying to restrict contains a video and im trying to have it so when the customer pays to view the post and logs in elsewhere they get logged out on the old session / device but

    My issue is while this works the page does not refresh or change thus allowing the user to share their purchase / login details is there a script or plugin that can check if the user is logged in or not and if they are not logged in the page gets automatically refreshed. as this will case the restricted page message to appear

    thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator threadi

    (@threadi)

    I would recommend that you contact the support team for the plugin you are using: https://wordpress.org/support/plugin/woocommerce-pay-per-post/

    Thread Starter beaz2010

    (@beaz2010)

    cheers i have done this but not sure as it has multiple parts to it

    Thread Starter beaz2010

    (@beaz2010)

    So just an update after asking here and on the plugin developers help area no one could help and other plugins like loggedin just didn’t quite do what I needed so. I managed to basically have everything I dreamed of by learning to code my own plugin with chatGPTs help if anyone wants a Pay Per View site like me just let me know I’ll be more than happy to share the plugin with you

    I made it so it has the abilities of loggedin plugin to limit 1 session logged in per user and if they login elsewhere the old session gets logged out but the issue here is the page does not refresh or check if user is still logged in unless the user navigates away so I made the plugin check every x (user set) amount of minutes if the user is logged in and if they arnt a message will be displayed for x ( user set) amount of seconds the message will be displayed for and this can’t be dismissed or ignored as it’s in the middle of the browser lol. I have also made it where after the message has been displayed for the amount of time the user gets automatically redirected to a url of your choose (I just redirect to the login page)

    This all should be simple enough but I can’t find anyone else who has implemented this into a working code or plugin so I thought its time to learn lol so yeah if anyone needs help or the plugin let me know. I have uploaded it to WordPress for submission but I will take a long time apparently and who knows but it’s working for me 👍💯

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Pay to View Help’ is closed to new replies.