Simple php voting script required
No design - we'll work that around your script which should have plenty of comments
in to help us do this
You'll make 12 pages
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
admin/[login to view URL]
=============
The site
=============
On load - any page - capture users IP address
======================================================================================
[login to view URL]:-
======================================================================================
<include header.php>
Login:
Username: your email address [text]
Password: your password [text]
Forgot password? [link which emails user their password]
Submit = [login to view URL]
Main Content:-
Form at the top comprising:-
Leave your feedback here:-
Vote and Go - don't want member priviledges then vote here?
------------
What sort of experience did you have?
Positive [radio]
Neutral [radio]
Negative [radio]
Tell us about it here:
[text - maximum 80 characters]
CAPTCHA BOX - TO COMBAT SPAM
Submit = [login to view URL]
email is sent to admin notifying that a vote has been made and is awaiting authorisation
On submit - check that IP address has not posted in previous 30 minutes
on error go to [login to view URL] - we're sorry - looks like your IP [login to view URL] already submitted a vote recently
Submitter is "Guest"
email address is "xxxx"
town is "Unknown"
country is "Unknown"
Vote and explain - use this form and get more priviledges
-----------------
Your name: (real or ficticious)
[text]
Your email: (also used as login if user wants to edit his comments)
[text]
Positive [radio]
Neutral [radio]
Negative [radio]
Tell us about it here:
[text - maximum 400 characters)
Your town: [text]
Your country [drop down menu: USA, UK, GERMANY, CANADA are first 4
options then the rest of the standard country list]
CAPTCHA BOX - to combat spam
What happens next - in order to be able to edit your comments later we ned you to
validate your email address - your comments will be stored and when you validate your email
they will be released for admin to view. We'll never give (or sell) your email address to anybody else)
[SUBMIT]
goes through to [login to view URL] page - "please check your email"
email is sent to admin notifying that a vote has been made and is awaiting authorisation
email is sent to user where they need to validate the entry by clicking on link (try and make this short to stop it
wrapping)
On submit - check that IP address has not posted in previous 30 minutes
on error got to [login to view URL] - we're sorry - looks like your IP [login to view URL] already submitted a vote recently
When user validates goes through to [login to view URL] - Thanks for validating - we've asked admin to adjudicate your vote.
=====================================================================
Under that the results so far
Feedback Score [insert number here] - this is the total positive less the total negative
Negative numbers display in red
[insert number] feedbacks so far - this is total votes made
Viewers who left a positive: [insert number here] - this is total positive votes
Viewers who left a negative: [insert number here] - this is total negative votes
<link>Find out what these numbers mean</link> - links to [login to view URL]
Recent Feedback Ratings (this box shows the relevant positive, negative
and neutral feedbacks left by our viewers)
row a) White cross on green circle positive 1 month 6months 12 months
row b) Grey doughnut neutral 1 month 6months 12 months
row c) red circle with white dash negative 1 month 6months 12 months
And under that the last 20 votes in table format
Alternating colours for results on each row
ie
result 1 - light gray background
result 2 - white background
result 3 - light gray background
result 4 - white background
etc etc
Column 1 Row 1
Pos/Neg/Neutral graphic
Column 2 Row 1
Comments <link>Obscene/libellous comment? Let us know</lnk>
Column 3 Row 1
Viewer [insert name] from [insert town], [insert country]
Column 4 Row 1
[insert date feedback left]
repeat for last 20 feedbacks
Pagination at bottom
[1] [2] [3] [4] [5] [next] (page numbers will always be two either side
of current page) Current page is bolder
<include footer.php>
================================================================
[login to view URL] & [login to view URL]
================================================================
just used for our design purposes
will include
<html>
<head>
</head>
<body>
</body>
</html>
===============================================================
[login to view URL]
===============================================================
<include header.php>
"Thanks for taking the time to vote"
<include footer.php>
==============================================================
[login to view URL]
==============================================================
Just the code for the search facility
I want this on a separate page BUT I will
be including this somewhere on [login to view URL]
It will search BOTH comments fields for any occurence of "xxxx"
First 20/50/100 user selectable
Last 20/50/100 user selectable
Random 20/50/100 user selectable
Month, Year
Negatives Only
Positives Only
Neutrals Only
and should be able to save preferences.
Submit = [login to view URL]
===============================================================
[login to view URL]
===============================================================
<include header.php>
Alternating colours for results on each row
ie
result 1 - light gray background
result 2 - white background
result 3 - light gray background
result 4 - white background
etc etc
Column 1 Row 1
Pos/Neg/Neutral graphic
Column 2 Row 1
Comments <link>Obscene/libellous comment? Let us know</lnk>
Column 3 Row 1
Viewer [insert name] from [insert town], [insert country]
Column 4 Row 1
[insert date feedback left]
repeat for last 20 feedbacks
Pagination at bottom
[previous] [1] [2] [3] [4] [5] [next] (page numbers will always be two either side
of current page) Current page is bolder
<include footer.php>
===============================================================
[login to view URL]
===============================================================
<insert header.php>
this will give more options
search by country
search by negative comments
search by positive comments
search by neutral comments
<insert footer.php>
Results will be displayed on same page thus:
Alternating colours for results on each row
ie
result 1 - light gray background
result 2 - white background
result 3 - light gray background
result 4 - white background
etc etc
Column 1 Row 1
Pos/Neg/Neutral graphic
Column 2 Row 1
Comments <link>Obscene/libellous comment? Let us know</lnk>
Column 3 Row 1
Viewer [insert name] from [insert town], [insert country]
Column 4 Row 1
[insert date feedback left]
repeat for last 20 feedbacks
Pagination at bottom
[previous] [1] [2] [3] [4] [5] [next] (page numbers will always be two either side
of current page) Current page is bolder
=================================================================
[login to view URL]
=================================================================
here you will need to do some mathematics.....
We've had [insert total number of votes]
"xx" per cent of those that voted negatively used the word "[insert word in admin]"
"xx" per cent of those that voted negatively used the word "[insert word in admin]"
"xx" per cent of those that voted positively used the word "[insert word in admin]"
"xx" per cent of those that voted positively used the word "[insert word in admin]"
"xx" per cent of those who voted negatively come from Canada
"xx" per cent of those who voted negatively come from the United States
"xx" per cent of those who voted negatively come from the United Kingdom
The country who had the best experience are [insert country name who have highest percentage positive votes]
The country who had the worst experience are [insert country name who have highest percentage negative votes]
==================================================================
[login to view URL]
==================================================================
This is a form to let us know that an obscene or libellous comment has been passed by admin
It should carry the information about the offending comment so we can find and delete it (if required)
ie an email is sent to admin
"Please click here to view/edit/delete a comment a user thinks may be libellous"
This form should have a CAPTCHA on it also
==================================================================
[login to view URL]
==================================================================
The viewer gets this page when he logs in
All his comments are listed
He is able to edit or delete them - they must then go back to admin to authorise
==================================================================
admin/[login to view URL]
==================================================================
Log in
.htaccess file should do
Search for tool:
so we can find comments we want to edit or remove
insert positive word (1) [text]
insert positive word (2) [text]
insert negative word (1) [text]
insert negative word (2) [text]
these are used by [login to view URL]
main content
lists all comments (and associated details) awaiting authorisation to be published
1st link:
Approve/Delete/Favourite/Unfavourite/Edit
Favourite ensures that this comment is always displayed above those that are not "favourites"
When we approve an email is sent to the user (if email present) to let them know we have approved their comment
when we delete an email is not sent
Thats it - fairly simple and quick to do for competant php programmer