This topic contains 4 replies, has 4 voices. Last updated by Raam Dev 4 years, 5 months ago.
Topic Author | Topic |
---|---|
Posted: Wednesday Jul 25th, 2012 at 8:44 pm #20249 | |
Hello, (45 characters too short :( ) for title Is there a hack I can use that the login widget can check if the current logged in user’s here is the problem I have, I have a multisite wordpress install with the main site is mysite.com and there are the blogs bellow it as such blog1.mysite.com both blogs have the pro login widget installed on the sidebar of the all pages. now I have user1 registered for blog1 as s2member_level1 for blog1 with originator blog id indicating the number for site1 when user1 goes to site1.mysite.com and loges in with the widget, it works all fine, s2member grants access to page content and user1 navigates as he should on site1. but if user1 decides to get mischievousness , and manually types site2.mysite.com in the url after he logged in on site1, s2member detects that user1 does not have access to content on site2 so it does not provide the content (good, just like I want), but the login widget is still visible and it shows user1 logged in, when it should show username and password dialog box because user1 is not loged-in to site2. I am thinking if I can make the widget compare originating_blog_id with current_blog_id then I can make the widget either show as logged-in, or the login dialog box. Am I on the right track? where in the code can I change, better yet is there a switch I am missing in the plugin?? because it looks like the regular s2member checks detects and compensates for the type of “mischievousness” |