View Full Version : My new website project
3v1l |\/|1NiOn
26-06-2004, 04:43 PM
I've started a new web project, called Trivia Online.
It's far from finished, but...
Basically, you log in and play trivia games on various subjects.
There will be a 'master' of every catagory, and they will be in charge of question management.
There will be a points system for how many questions you get right, how many other people have got it right out of how many people have answered it, and how long you took to answer the group of questions.
Linky:
http://www.eliminos.co.uk/~trivia/
(best viewed on standard complient FireFox -- not shitty IE)
thoughts and ideas please?
l33t k1w1
26-06-2004, 08:57 PM
Nice idea.
But I want to see what the quizzes are like before commiting.
You should be allowed to take them without registering and then be given the choice to register afterwards.
Edit: 1000 rupies! Yay me.
3v1l |\/|1NiOn
26-06-2004, 09:33 PM
The questions will be controlled by the users that submit them, really
I have added a wide range of general catagories
Physics Sports Geography History
Religion Movies TV General
Music Art & Literature Mathematics English
Chemistry Biology Media Technology
l33t k1w1
27-06-2004, 03:58 AM
Yes, but what if you do not want to register to answer the questions?
Tofufi
27-06-2004, 04:35 PM
It tells me the categories dont exist. I signed up though.
Could do with a few more graphics and a tad more colour other than blue (maybe a bit of bright orange as part of a logo?)
I'm not quite sure if i get the idea of where the questions come from.
edit: ooh I like the nice email I get :)
wyrd_fish
27-06-2004, 04:49 PM
oh oh... not only does it think that the cat doen't exist, but it meses up your lovely DIVs :(
wyrd_fish
27-06-2004, 04:51 PM
do, forgot to attach the pic...
PS a few new lines would fix it, like on the logout page
PPS with the appliance of science, you could make the whole of the boxes for you menu items teh link, and do the hover colour
apply the onHover to the box, rather than the text, and the onClick to the box rather than a href link and a class="cursor:hand"
that would be nice and neat
3v1l |\/|1NiOn
27-06-2004, 04:57 PM
its programmed so its WAP compatible, I just havent had it before so it has a few teething problems in IE
my advice would be to get a proper browser,
but i'll try to tone the intelligence down to microsofts level
wyrd_fish
27-06-2004, 05:06 PM
unfortunatly for you, and everyone else that makes websites, ~99% of the internet using population use IE
and as for WAP, good idea, but couldn't you make a whole differnt one in WML?
and a ranked list would be nice
3v1l |\/|1NiOn
27-06-2004, 05:08 PM
I also did it with divs because firefox understood the widths and heights perfectly, yet IE seemed to refuse to get it right
edit
ah, fixed now, thanks for pointing that out, it was me experimenting with min-height, which IE doesnt understand.
edit edit
as for the nav bar, i cannot get it to do a cursor:pointer for the entire box, it works in Firefox, yet IE doesnt seem to be able to understand the 'ul' function properly neither!
wyrd_fish
27-06-2004, 05:13 PM
i had to make a choice when making my site, IE or others
i chose IE
try my site in firefox :(, and then IE :)
3v1l |\/|1NiOn
27-06-2004, 05:14 PM
my site now looks pretty much the same in both with the exception of the pointer on the nav bar
not bad :)
Techno
27-06-2004, 08:14 PM
i am quite new to PHP, but still I know a bit. I signed up to Trivia and I thought that you might want a bit of extra security.
i signed up with the username and password the same, you could stop this by doing this:
<?php
// This gets the data inputted by the user in the last
// form (newmember.php)
$username = $_POST['username']; // Username
$password = $_POST['password']; // Password
//Etc etc
if ( $username==$password ) {
echo('The username and password are both the same, please go back and try again.');
echo('<a href=\"javascript:history.back()\">Go Back</a>');
} else {
// If the username and password are the same, then you would
// insert the username & password into the database below.
}
?>
You could also add more security by checking the email as well to see if the email is the same too.
Hope this helps
:)
3v1l |\/|1NiOn
27-06-2004, 08:35 PM
I didnt feel the need to put in a check for that, if the user is stupid enough to put their password the same as their username, they deserve to be hacked.
This is the current Submitform.php code:
<?PHP
/*----------------------------------------------------------------------*/
/* Call on top of page */
include ("../_Page/Variables.php");
include ("../_Page/Top.php");
/*----------------------------------------------------------------------*/
/* Convert Posts to Variables */
$N_USERNAME = $_POST['N_USERNAME'];
$EMAIL1 = $_POST['EMAIL1'];
$EMAIL2 = $_POST['EMAIL2'];
$PASSWORD1 = $_POST['PASSWORD1'];
$PASSWORD2 = $_POST['PASSWORD2'];
/*----------------------------------------------------------------------*/
/* Check if Passwords and E-Mail addresses match each other and that they all have values */
$VALID_MEMBER = True;
if ($PASSWORD1 == $PASSWORD2) {
$N_PASSWORD = $PASSWORD1;
} else {
echo "The Passwords specified did not match each other, please go back and check.</p>";
$VALID_MEMBER = False;
}
if ($EMAIL1 == $EMAIL2) {
$N_EMAIL = $EMAIL1;
} else {
echo "The E-Mail addresses did not match each other, please go back and check.</p>";
$VALID_MEMBER = False;
}
/*----------------------------------------------------------------------*/
/* Carry on checking things */
$SIMILAR_MEMBER = mysql_db_query ("$DATABASE","select * from TRIV_MEMBERS where USERNAME = '$N_USERNAME'");
$SIMILAR_MEMBER = mysql_num_rows ($SIMILAR_MEMBER);
if ($SIMILAR_MEMBER > 0) {
echo "Username already taken!</p>";
$VALID_MEMBER = False;
}
if ($N_USERNAME == ""){
echo "No Username specified!<br>";
$VALID_MEMBER = False;
}
if ($N_PASSWORD == ""){
echo "No Password specified!<br>";
$VALID_MEMBER = False;
}
/*----------------------------------------------------------------------*/
/* Insert the variables into the database */
if ($VALID_MEMBER == True) {
$N_LAST_LOGGED_DATE = gmdate( "Y-m-d H:i:s", mktime(date("H"),date("i"),date("s")) );
$PASSY = $N_PASSWORD;
$NEW_PASSY = '';
for ($K=0; $K<strlen($PASSY); $K++) {
$NEW_PASSY .= '*';
}
echo "Thankyou $N_USERNAME, here are your details:<p style='text-align: center;'>Username : <span style='font-weight: bold;'>$N_USERNAME</span><br>Password : <span style='font-weight: bold;'>$NEW_PASSY</span>";
if ($N_EMAIL == ""){
echo "</p>";
}else{
echo "<br>E-mail : <b>$N_EMAIL</b><br></p>";
}
mysql_query ("INSERT INTO TRIV_MEMBERS (USERNAME, PASSWORD, EMAIL, LAST_LOGGED, POINTS)
VALUES ('$N_USERNAME', '$N_PASSWORD', '$N_EMAIL', '$N_LAST_LOGGED_DATE', 0 )
");
$MESSAGE = "Thankyou for registering a Trivia Online account, Your details are below \n";
$MESSAGE .= "Name = $NAME \n";
$MESSAGE .= "Game & Login Name = $N_USERNAME \n";
$MESSAGE .= "Password = $N_PASSWORD \n";
$MESSAGE .= "E-Mail address = $N_EMAIL \n";
$MESSAGE .= "------------------------------------------------------------------ \n";
$MESSAGE .= "You can now log in and play the game \n";
mail("$N_EMAIL", "Trivia Online", "$MESSAGE", "From: $E_MAIL_ADDRESS");
}
/*----------------------------------------------------------------------*/
/* Call on bottom of page */
include ("../_Page/Bottom.php");
/*----------------------------------------------------------------------*/
?>
l33t k1w1
27-06-2004, 08:51 PM
Your title image could be compressed more - 30k is a bit too extreme on the first load...
wyrd_fish
27-06-2004, 10:28 PM
where does $NAME come from, it was blank in my email
3v1l |\/|1NiOn
28-06-2004, 06:32 AM
Oops, sorry, thats me retro-fitting code again
3v1l |\/|1NiOn
02-07-2004, 04:59 PM
Ok, I should be finishing this weekend, I need to know how many people would be willling to master (a category/some categories) and what the category will be
eg. English/Anagrams
History/Monarchs
Religion/Festivals
etc etc etc etc
be creative, think of a category you know a lot about, I need all your support on making this work
Star Wars Guy
02-07-2004, 05:10 PM
Simple.
Movies/Star Wars
Sport & Leisure/Computer Games
:D
Bloopo
02-07-2004, 06:27 PM
can i do video games?
also, it may be too late, but if you want any graphics/logos etc.....
3v1l |\/|1NiOn
02-07-2004, 06:29 PM
Wow, two people have offered to master categories, and already someone wants something they cant have :P
Star Wars Guy is mastering Computer Games, sorry =/
Can you choose another?
Bloopo
02-07-2004, 06:37 PM
ummm..how about....music/led zeppelin or History/second world war?
3v1l |\/|1NiOn
02-07-2004, 06:56 PM
either or both!
both sound good
HiTmAN
02-07-2004, 07:04 PM
Bleh, I'll take:
General/Aviation and/or Technology/Programming.
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.