Community Support Forums — WordPress® ( Users Helping Users ) — 2011-10-07T00:12:15-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15430 2011-10-07T00:12:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15430&p=45002#p45002 <![CDATA[Re: Restrict Access But Only For A Few Days...]]>

Statistics: Posted by Cristián Lávaque — October 7th, 2011, 12:12 am


]]>
2011-10-06T06:58:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15430&p=44956#p44956 <![CDATA[Re: Restrict Access But Only For A Few Days...]]>
Out of interest though, wouldn't the member already need to be a paid subscriber in order for this to work? Remember, I'm using the free pro form to offer a free 14 day trial on level 1. Therefore, would S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS still work?

Thanks
Rob.

Statistics: Posted by godrob — October 6th, 2011, 6:58 am


]]>
2011-10-06T02:43:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15430&p=44932#p44932 <![CDATA[Re: Restrict Access But Only For A Few Days...]]>
Create the dir and file /wp-content/mu-plugins/s2hacks.php
Code:
<?php

add_action
('ws_plugin__s2member_before_check_ruri_level_access', 'add_my_uri_restriction');
function add_my_uri_restriction($vars) {
    if (S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS < 15)
        $GLOBALS['WS_PLUGIN__']['s2member']['o']['level1_ruris'] = 'messages';
}

?>


viewtopic.php?f=40&t=13059&src_doc_v=111003#src_doc_line_38

I haven't tested this at all, but I hope it gets you closer to what you want. :)

Statistics: Posted by Cristián Lávaque — October 6th, 2011, 2:43 am


]]>
2011-10-05T10:06:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15430&p=44892#p44892 <![CDATA[Re: Restrict Access But Only For A Few Days...]]> Statistics: Posted by Eduan — October 5th, 2011, 10:06 am


]]>
2011-10-05T10:03:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15430&p=44891#p44891 <![CDATA[Re: Restrict Access But Only For A Few Days...]]>
I only want to disable the messaging function for very limited time

Rob.

Statistics: Posted by godrob — October 5th, 2011, 10:03 am


]]>
2011-10-05T09:45:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15430&p=44889#p44889 <![CDATA[Re: Restrict Access But Only For A Few Days...]]> Statistics: Posted by Eduan — October 5th, 2011, 9:45 am


]]>
2011-10-05T09:41:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15430&p=44888#p44888 <![CDATA[Re: Restrict Access But Only For A Few Days...]]>
Yes, I could, but then that would mean no members would have access to messaging, which is not what I want to achieve.

Any other ideas apart from creating a new level?

Rob.

Statistics: Posted by godrob — October 5th, 2011, 9:41 am


]]>
2011-10-05T07:52:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15430&p=44884#p44884 <![CDATA[Re: Restrict Access But Only For A Few Days...]]> Statistics: Posted by Eduan — October 5th, 2011, 7:52 am


]]>
2011-10-05T06:04:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15430&p=44883#p44883 <![CDATA[Restrict Access But Only For A Few Days...]]>
Is there a way in S2Member/Pro to restrict access to a specific URI (I'm using BuddyPress here) but only for a small period of time?

Here's what I'm trying to achieve...

Unfortunately, I'm getting quite a few scammers creating profiles on my site (I'm using a free 14 day trial pro form at level 1) and then instantly spamming my members by sending spam messages.

So, what I would like to do is restrict access to the messaging functionality within BuddyPress but just for a few days. This would give our Site Admins the chance to verify if the their profile is legitimate of not without them being able to spam our members.

Any help appreciated?

Thanks
Rob

Statistics: Posted by godrob — October 5th, 2011, 6:04 am


]]>