|
|
|
|
Joined: Jul 2002
Posts: 135
Journeyman
|
|
Journeyman
Joined: Jul 2002
Posts: 135 |
Hi. I have a form that I use to create boards. As it stands rite now it creates them with full access to all users and no access to guests. I want guests to be able to read but not reply/start topics. I assume it has to do with $CanRead but when I commented it out nothing seemed to change. This is part of what i'm looking at: $Description = '';<br />$isactive = 1;<br />$Expires = 0;<br />$ThreadAge = 93;<br />$stylesheet = 'usedefault';<br />$Moderated_q = 'no';<br />$avurl = '';<br />$HTML_q = 'Off';<br />$Markup_q = 'On';<br />$CanRead = '-';<br />$CanWrite = '-';<br />$CanReply = '-';<br />$header = '-'; and $query = "<br /> SELECT G_Name, G_Id<br /> FROM {$config['tbprefix']}Groups<br /> WHERE G_Disabled <> 1<br />";<br />$sth = $dbh -> do_query($query,__LINE__,__FILE__);<br /><br />while (list($Name,$Id) = $dbh -> fetch_array($sth)) {<br /> if ($Id != 4) {<br /> $CanWrite .= $Id . '-';<br /> $CanReply .= $Id . '-';<br /> $CanRead .= $Id . '-';<br /> }<br /> <br />} What am I missing?
|
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
heres a bhandy hint... put a print_r($CanRead); immeditely after that and make sure its even putting a value there..
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 253
Joined: January 2000
|
|
|
Forums63
Topics37,583
Posts293,957
Members13,826
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 2265
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 27
|
|
|
|
|
|