FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Private Forums?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Private Forums? [message #1021 is a reply to message #1019] Wed, 20 March 2002 03:04 Go to previous messageGo to previous message
Luterin is currently offline  Luterin   Sweden
Messages: 17
Registered: March 2002
Location: Malmö/Sweden
Karma:
Junior Member

Bah, who needs sleep anyway.... Modified the admin code to support private forums.

users_adm.inc:
function set_private_access()
{
Q("UPDATE fud_users SET private_access='Y' where id=".$this->id);
}

function clear_private_access()
{
Q("UPDATE fud_users SET private_access='N' where id=".$this->id);
}

admuser.php:
Add this case:
case 'private':
if ( $usr->private_access == 'Y' )
$usr->clear_private_access();
else
$usr->set_private_access();

header("Location: admuser.php?".$_RSID."&usr_login=".urlencode($usr->lo gin));
exit();
break;

Add this row before the simillar block row:
<tr bgcolor="#f1f1f1"><td>Private Access:</td></td><?php echo $usr->private_access; ?> &lt;<a href="admuser.php?act=private&
usr_id=<?php echo $usr->id.'&'.$_RSID; ?>">Toggle</a>&gt;</td></tr>

Wonder if I can stay away from the admin thread code..

[Message index]
 
Read Message icon6.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: multiple domain names
Next Topic: Use <th> instead of <td class="TableHeading">
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 06:11:08 GMT 2024

Total time taken to generate the page: 0.04830 seconds