View Single Post
  #2  
Old 23 Jan 2014, 15:42
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I think this might work (although I haven't tried it):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


I think you could also set it when the subscription happens by editing the file includes/class_paid_subscription.php. Around line 397 (in version 4.2.2) is this code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


and I think if you add the part in red it might set the displaygroupid for you (again I haven't tested it). Also, I'm not sure what will happen when the subscription expires, there may be other code needed to remove it.


ETA: I guess the above could be done using a hook on location paidsub_build, but it would require a little more code since the $userdm has been destroyed at that point. But maybe someone can work out the code for that to avoid editing files.

Last edited by kh99; 23 Jan 2014 at 15:50.
Reply With Quote