% Set databaseConnection = getDatabaseConnection() userID = "2" usersStatus = "not logged in" storyID = Request("hon_com_storyID") storyTitle = "No Story Found" Set commentsRS = Nothing // make sure you are logged in If Not isLoggedIn() Or isStillAnonymous() Then usersStatus = "not logged in" Else // make sure this story is one of yours userID = CStr(Request.Cookies("hon")("hon_use_id")) getStorySQL = "SELECT hon_sto_title FROM hon_sto_stories WHERE hon_sto_id = " & storyID & " AND hon_sto_authorID = " & userID Set getStoryRS = createRecordSet(getStorySQL, databaseConnection) If getStoryRS.EOF Then usersStatus = "not owner" Else // get all comments Set commentsRS = getWrittenComments(storyID, databaseConnection) storyTitle = CStr(getStoryRS.Fields("hon_sto_title")) If commentsRS.EOF Then usersStatus = "no comments" Else usersStatus = "approved" End If End If destroyRecordSet(getStoryRS) End If %>
HACK or NOT User Comments for <%= safeHTMLEncode(storyTitle) %> |
|
Below, written comments from your fellow HACK or NOT users are displayed. They were reacting to your submission titled <%= safeHTMLEncode(storyTitle) %> <% If usersStatus = "not logged in" Then %> <%= getCPMBanner() %>You are not currently logged in.
Our system shows that you are not the author of the story you are attempting to review the user comments for.
There are no written comments from our users for this story.
User comments: <% While Not commentsRS.EOF comments = CStr(commentsRS.Fields("hon_com_comments")) %> <%= safeHTMLEncode(comments) %> <% commentsRS.MoveNext Wend %> User recommended books and resources are available through The HACK or NOT Store for Writers. <%= getCPMBanner() %> <% End If %> |
<%= getRightBarAd() %> |
|