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 #1026 is a reply to message #1024] Wed, 20 March 2002 03:46 Go to previous messageGo to previous message
Luterin is currently offline  Luterin   Sweden
Messages: 17
Registered: March 2002
Location: Malmö/Sweden
Karma:
Junior Member

Ok, added some to make it "the proper way":

users.inc:
var $private_access=NULL;
forum.inc:
var $private=NULL;

And ofcourse I couldn't quit a half finished job, so here is the modifications to the admin interface.

admforum.php: (Added this at the end of the form, before the submit button)
<tr bgcolor="#bff8ff">
<td>Private</td>
<td><?php draw_select('frm_private', "No\nYes", "N\nY", empty($frm_private)?'':$frm_private); ?></td>
</tr>

forum_adm.inc: (Added at the end of the SQL statements in the following fuctions)
function add():
,'".$this->private."'
function sync():
,private='".YN($this->private)."'


So, now it's all there, to get a simple but effective way to make forums private.

Feel free to use this code, or ask/mail me if you got any questions.

Hope I didn't mess any of the code up while pasting it here, it's 5AM here now, so a bit tired, hehe. Smile
[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: Tue Nov 26 20:40:34 GMT 2024

Total time taken to generate the page: 0.04664 seconds