the_sisko
03-23-2002, 08:24 PM
OK, I started a little hack which mass PM all user of a thread when its moved. I know there is a hack but I want to improve it and want to check if the forum I want to move the thread is viewable for the user.
I want to user getpermissions() function as I have the forumid and userid, but as far I tested it didn't work.
When I use this one
$userid = 58;
$forumid = 21;
$forumid=verifyid("forum",$forumid);
$access = getpermissions($forumid,$userid);
print $access[canview];
I got nothing , but when I remove the userid it works, as the function then uses my cookie.
$forumid = 21;
$forumid=verifyid("forum",$forumid);
$access = getpermissions($forumid);
print $access[canview];
How do I use this function? As I cannot use the cookie as I'm doing this as admin for many users at one time, and loop through the userid's....
I want to user getpermissions() function as I have the forumid and userid, but as far I tested it didn't work.
When I use this one
$userid = 58;
$forumid = 21;
$forumid=verifyid("forum",$forumid);
$access = getpermissions($forumid,$userid);
print $access[canview];
I got nothing , but when I remove the userid it works, as the function then uses my cookie.
$forumid = 21;
$forumid=verifyid("forum",$forumid);
$access = getpermissions($forumid);
print $access[canview];
How do I use this function? As I cannot use the cookie as I'm doing this as admin for many users at one time, and loop through the userid's....