I think what you had originally was OK, except in the first plugin you're setting $userinfo['activity'] to 'HRSTube 1' and in the second you're checking for 'mypage' (they should be the same, probably 'HRSTube 1' or something like that).
In the revised code you have the activites the same, but in the first plugin you're checking for activity.php instead of your file name.
|