Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Tricky User access issues => Forum Script

Quote Reply
Tricky User access issues => Forum Script
Okay...the forum script is coming along nicely, well, for the most part...I know am adding levels of security into the script, like Moderator access, and also adjusting views of posts/replies in the PRIVATE forums....

I have a few Private forums where I am trying to only allow posters to view their posts and replies from site administrators and moderators (technical support, trouble ticket posting forum)...

I am using the following codes:

index.cgi --> Forum script

Code:

if ((defined $USER) and ($USER->{UserID} eq $posterid) and ($forumstatus eq 'Private')) {
$post_list .= &site_html_post_menu_link ({$postrec});
}
else {
$no_posts .= qq|<span class="boldredtext">You have not posted any items in this forum or you are not logged in.</span>|;
}
}
$forum .= &site_html_showforum_link ({ForumID => $forumid, ForumName => $forumname, ForumPerm => $forumperm, No_Posts => $no_posts, Post_List => $post_list});


showforumlink.html --> Show topics in forum

Code:

<%if No_Posts%>
<%No_Posts%>
<%endif%>
<%if Post_List%>
<tr bgcolor="00009c">
<td valign="top" width="40%">
<span class="subwhiteheader">Subject</span>
</td>
<td valign="top" width="20%">
<span class="subwhiteheader">Poster</span>
</td>
<td valign="top" width="10%">
<span class="subwhiteheader">Views</span>
</td>
<td valign="top" width="10%">
<span class="subwhiteheader">Replies</span>
</td>
<td valign="top" width="20%">
<span class="subwhiteheader">Last Updated</span>
</td></tr>
<%Post_List%>
<%endif%>


Now, what happens is that no matter if the user is logged in or not, the top header row of the Post_List tag table shows up....

Any thoughts on what codes I am missing???

Thanks.

Regards,

Eliot Lee Wink
http://anthrotech.com/
Subject Author Views Date
Thread Tricky User access issues => Forum Script Stealth 1775 Jul 14, 2001, 10:25 AM
Post Re: Tricky User access issues => Forum Script
Stealth 1721 Jul 14, 2001, 11:12 AM