first commit

This commit is contained in:
ryanwong
2022-11-26 01:28:55 -05:00
commit 066b03dd6f
3 changed files with 218 additions and 0 deletions
Vendored
BIN
View File
Binary file not shown.
+125
View File
@@ -0,0 +1,125 @@
# Game Tournament Project
Please perform the following task one by one and commit to git per task. You must fix at least 5 bugs.
The flow of GameTournament:
Login to admin portal>
Go to Game Settings> Add Contest- Create a contest with Start Date- Past/Present & End date- Present/Future, fill all the fields and create the contest.
Login to user portal>
Go to Tourneys Tab> You'll find Scheduled Tournament
So under Scheduled Tournament,> Contest- There is Enter Button. Enter at least 12 users into the contest in order to go to next round.
While you enter a user to the contest, you need to add a portfolio there. Either you can add the portfolio from there or
You can go to the "New Portfolio" tab and add a portfolio with the same category that you chose while creating the contest from the admin portal. Remember, if you choose another category that doesn't match with the category you chose from the admin portal while creating the contest, you will not be able to submit the portfolio in the contest.
\*\*Note- You have to complete registering users to a contest before the registration closes and cronjob runs. Otherwise, you won't be able to go to the next round
\*\*Note- Cronjob runs once every day. So once you are done entering 12 users to a contest, you'll be able to play the contest for round 1 the next day.
Task
1. Clone the repo https://github.com/manaknight/gt
Serve the site on php -S localhost:9003
Create db called gametournament_manaknightdigital_6G8tewA9 and import this db gametournament_manaknightdigital_6G8tewA9 (1).sql
Login to admin using http://localhost:9003/wp-admin/
username: admin password: admin
Bugs:
1- when a mandatory field is not filled out during the contest sign-up and you click submit new, nothing will happen. This is confusing since there is no prompt telling them that fields are missing and since most of the fields are scrolled off screen there would never be an indication that additional info is needed it just seems like you press the button and nothing happens. We need some kind of error message to display here telling the user to finish filling out the form. Perhaps something like
“One or more mandatory fields are missing”.
2- (it seems like the whole notification system is lacking) in the original notes, it was suppose to send an email AND a notification to the users buddy boss account. I only get a few emails. mainly the ones for moving on, or being removed. All of these need to be edited and some need to be added, Ive made each notification a separate point
3- the first tourney notification is missing. Once a tourneys registration closes it opens up the first voting round. A notification needs to be sent to all participants immediately once the registration closes and the voting phase is opened. Registration will close at 11:59pm on whatever date it is set for so the notification needs to be sent out at 12AM the next minute and the following day.
This notification needs to read as follows
“The (Name of contest) contest you joined is now live! You have until 11:59pm tonight to complete the 1st round of voting. If you fail to complete the voting round you will be eliminated from the contest. Please click here<(this needs to link to the first round of voting) to continue Alternatively you can log into your account, navigate to my tourneys under the tourneys tab and select the “play now” portion of the ticket to participate in round 1. “
Good luck!
4- four hrs before the close of EVERY phase, notifications need to be sent to all participants who havent voted. The wording is the same for all legs except the last leg of the tourney.
Notification needs to read as follows
“(Users name), time is almost up! You have until 11:59 PM. Please >click here <(make this link to take them to current phase of tourney) to complete the voting process for this round of the tourney. If you fail to complete the voting process you will be disqualified.
Good luck and please vote honestly”
5-When a person is disqualified for not voting a notification needs to be sent to them reading as follows
“You have been disqualified for not completing the voting phase. In order to proceed through tournaments you must vote during each leg of the tourney.”
6-when a person has been knocked out from not winning the vote the notification needs to read as follows
“Thank you so much for participating in our tourney. We are sorry to say you have been knocked out. All art is beautiful, unfortunately yours didnt get picked today. Keep on going and keep trying there will be many more opportunities to shine!
We will see you in the next one!”
7-When a person advances the notification needs to be sent out at 12AM one minute after the last round closed. the notification needs to read as follows
“Congratulations (user name), you are moving on to the next round.
Please click here<(this link should take you to the next round of voting) to continue to the voting phase of the next round and good luck! Remember failing to complete the voting process before 11:59 PM will result in elimination.”
8-When a person advances to the final round of the tournament the notification needs to read as follows
“Congratulations, (user name) you have risen to the top. Your expression has struck a chord amongst your peers. This is the final stage of the tournament. It may be hard to vote for another work at this point but please continue to vote honestly.
Good luck and we will see you at the finish line.
9- When the final phase of the tournament begins 12AM on the final day, a notification needs to be sent out to all participants who have been knocked out already in earlier phases. The notification reads as follows
“(User name) thank you for participating in (name of contest) you still have a chance to be a winner, Please click here <(link to the voting phase of the final round) to proceed to the final voting phase.
If you complete this final round of voting you are entered into a random draw to receive one of the best prizes of the tournament. If you choose not to participate you will not be entered into the draw.”
Good luck and we will see you next time!”
10-when the tournament is over at 11:59PM a notification needs to be sent to the winners at 12AM one minute later and the next day.
The notification needs to read as follows
-For the winner
“Congratulations (user name) on winning the tournament. You shone the brightest today! You are a very talented artist and we look forward to seeing more from you in the future.
If you have won a prize, someone from the Universe
. Art will email you requesting more information.
Congratulations again and we will see you at the next one!”
For 2nd through 11th if applicable
“Congratulations (user name) on placing (tournament finish position) in the tournament. You were among the stars today
You are a very talented artist and we look forward to seeing more from you in the future.
If this position qualifies for a prize someone from Universe.Art will email you requesting more information.
Congratulations again and we will see you at the next one!”
For the random draw prize winner-
“Congratulations (user name),
Thanks to your vote you have won the random draw. Someone from Universe.Art will email you requesting more information.
11- is there away to make the admin list sections more legible? And also to search for individual things. There is already hundreds of entries for portfolio works and trying to locate a specific one using the admin is impossible without a search option. Same for contests.
12-Can you make the parameters for things like title description category etc….. can you make them much wider. I dont mind having to scroll to the right a bit but when all the words are jammed so tightly together it makes reading anything extremely difficult.
13-so I was finally able to access the tournament software for the very first time ever. The boxes are way too small. This was a concern early on during the wireframe phase. I had asked they be as big as possible. they need to be as large as possible, perhaps a script that fits them to the size of the window being used on desktop.
14- when a contestant has already voted and they click the play now button the message needs to read, "You have already voted in this round. Please wait until tomorrow to participate in the next round"
15- on mobile the content needs to take up most of the screen for ease of use and the swipe button shouldn't be hidden on the content it should be obvious. Originally we talked about swiping left and right to be able to quickly go back and forth between the two contents.
16- when choosing between the two selections during the voting phase on mobile, there is a button to go to go to the next content(this is the hidden impractical button), but there is no button to go back,. Users will need to compare between the two works multiple times and so they need to be able to easily go back and forth to choose. There is no ability to check the second work and then go back and vote for the first. Plus this needs to be a swipe option. Or a much more obvious arrow. Preferably I would like this to be swipe left swipe right like we originally talked about. Also I would like underneath the content to say swipe left and on content 2 Id like it to say swipe right underneath the piece. This makes it clear and usable.
17- after entering a contest the tournament moves to the my tournament tab and displays the words play now. Once a person is completed the voting process the button remains the same, this needs to change to “waiting” when a user has completed voting but the next phase of the tournament is still upcoming
18-the new portfolio tab is confusing. It should be just “portfolio” inside the portfolio tab it should have a section for “create new” and a section for existing work which should also just be called “portfolio” perhaps in the same way you created two tabs for tournaments. One for scheduled and one for my tournaments, this should be two tabs below portfolio. One for create new and one for portfolio
+93
View File
@@ -0,0 +1,93 @@
<?php
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values.
*
* This file contains the following configurations:
*
* * MySQL settings
* * Secret keys
* * Database table prefix
* * ABSPATH
*
* @link https://wordpress.org/support/article/editing-wp-config-php/
*
* @package WordPress
*/
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'gametournament_manaknightdigital_6G8tewA9' );
/** MySQL database username */
define( 'DB_USER', 'root' );
/** MySQL database password */
define( 'DB_PASSWORD', 'root' );
/** MySQL hostname */
define( 'DB_HOST', 'localhost' );
/** Database Charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8mb4' );
/** The Database Collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );
/**#@+
* Authentication Unique Keys and Salts.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
*
* @since 2.6.0
*/
define( 'AUTH_KEY', 'CRjkU7ytuB~y79X.u|pnN-)(G1o>Eeyowpk2}Nr@2[iCs.vL;Elb,p>&ykb.S_0l' );
define( 'SECURE_AUTH_KEY', '?Wn4gq;%39)v#N$UuihuCF*X`MYg!*eFL(;B9LgO ~@lTz$A]L8i,|w0l@9~LM`&' );
define( 'LOGGED_IN_KEY', 't3#424p2tMR.(A;jym_oAe9KOFtu<4m{RIAonIGdw2U7 k3&3ddc^A7{BBXhzPkY' );
define( 'NONCE_KEY', ')D>PD>NiB>C!u?P.%5{h.y9_h8*JoS<EHk:&=fcyA|zb+(5d|@QxYt[BmL$$mD=o' );
define( 'AUTH_SALT', ')<E!*[o8&)y5OyZ}ki{sF}WD)H-TOPjS,T#7di<I/UNy3[+4;hrd[Z8x=_RhN!ua' );
define( 'SECURE_AUTH_SALT', 'otHs*)yn.7Sqn!&2L8^-JY0(:nYJXa~:I!>0#W_Xkfb}u=}<7>1-tYo~QX~z2c 1' );
define( 'LOGGED_IN_SALT', 'xS&2]|A?RlQmm2f15#1ceg-2=MpbzYr-N)@{_C/[G]]UoY-u+)8}9zsC hW~l7KI' );
define( 'NONCE_SALT', ';xcxoM#wm=o?+ZY69oJ#x{^NfM0jjI&Bjs}:.X|uA)9a<r}pAe{n_0|22mxxgdDA' );
/**#@-*/
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = 'wp_';
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*
* For information on other constants that can be used for debugging,
* visit the documentation.
*
* @link https://wordpress.org/support/article/debugging-in-wordpress/
*/
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', true);
define( 'DISABLE_WP_CRON', true);
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';