% Set databaseConnection = getDatabaseConnection() userID = "2" Set yourStoriesRS = Nothing // get name to prefill if you are logged in If Not isLoggedIn() Or isStillAnonymous() Then usersStatus = 1 Else // get all the stories you have submitted userID = CStr(Request.Cookies("hon")("hon_use_id")) Set yourStoriesRS = createRecordSet("SELECT * FROM hon_sto_stories WHERE hon_sto_authorID = " & safeDBEncode(userID), databaseConnection) If yourStoriesRS.EOF Then // you are logged in but have no stories usersStatus = 2 Else // you are logged in and have stories usersStatus = 3 End If End If %>
Your HACK or NOT Scores | |||||||||||||||||||||
This page displays your HACK or NOT scores for the writing you've submitted to this site. It also includes how many of each individual score your submission received (how many 10's, 9's, 8's etc.) and some other interesting information for each piece. <% If usersStatus = 1 Then %> <%= getCPMBanner() %>You are not currently logged in.
Our system shows that you have not yet submitted any stories to HACK or NOT.
<%= getCPMBanner() %> You are logged in as <%= safeHTMLEncode(loggedInEmail) %>. If this is incorrect you may log in or register as another user. Your submissions: <% While Not yourStoriesRS.EOF // get title and set up stats recordset storyID = CStr(yourStoriesRS.Fields("hon_sto_id")) title = CStr(yourStoriesRS.Fields("hon_sto_title")) Set statsRS = getStoryStats(storyID, databaseConnection) averageRating = statsRS.Fields("averageScore") If IsNull(averageRating) Or averageRating = "" Then averageRating = "No Score Yet" Else averageRating = FormatNumber(averageRating, 2, True, False, False) End If %> <%= safeHTMLEncode(title) %> Average Rating: <%= safeHTMLEncode(averageRating) %> Total Votes: <%= safeHTMLEncode(statsRS.Fields("totalVotes")) %>
<% If IsNumeric(averageRating) Then If CDbl(averageRating) < 3.5 Then %> Visit the Writer's Store for resources that can help you improve your writing! <% Else %> Visit the Writer's Store to learn how to write for a living! <% End If Else %> Visit the Writer's Store! <% End If Response.Write(getCPMBanner()) yourStoriesRS.MoveNext Wend %> <% End If %> |
<%= getRightBarAd() %> | ||||||||||||||||||||
HACK or NOT Home About HACK or NOT | Tell A Friend | How To Link To This Site Contact Us | Copyright |