#About
Steven Universe Fan site built with Drupal 7 as part of self study following Epicodus curriculum. Paired with LawlietBlack.
-
Download Drupal version 7.51
-
Replace the sites folder with the enclosed sites folder
-
Import the Database Dump
a. Open phpMyAdmin and click on the "Import" tab.
b. Leave all the default settings and make sure the character set is "utf-8"
c. Now click on the "Choose File" button next to "Browse your computer" and select the .sql.zip file we included in our sites/db-backup folder. It's okay to leave it zipped.
d. Then click the "Go" button on the bottom left.
- Create the Database User (not needed if using Acquia Dev Desktop)
a. Lastly, we must recreate the database username/password that Drupal uses to store things in the database. We do this the same way we did when we created the database.
b. After importing the .sql.zip file, select the "Privileges" tab and click on "Add User".
c. Use the same username and password from before. (If we have forgotten what that was, we can always find that information in settings.php, or in the PDO Exception error message we saw displayed in the browser.)
d. After importing the database, if you have any trouble logging in with your Site Maintenance account, clear your browser's cookies by clearing the browser history.
#User Stories
-
As an anonymous user I can see most of the site's content including the welcome page, the home page, the fan art gallery, cookie cat's page, and several articles.
-
As an anoymous user I can see comments, but cannot post comments.
-
As an authenicated user I can post comments.
-
As a VIP I can edit my own comments.
-
As a weirdo I can create new articles.
-
As a weirdo I can edit and delete my own content.
-
As a weirdo I can use easy social.
-
As a weirdo I can use the admin toolbar.
###Greetings Module
-
As an registered user I can see a custom greeting based on my highest user role when I login
-
- As an registered user I can see a custom farewell based on my highest user role when I logout
###Pet Module
-
As a anonymous or authenicated user I can access this module from the nagivation menu.
-
As a user I can view a page about a pet (Steven's Lion). On this page I can see some basic details, a picture and a link to learn more information about the pet.
###Cards Module
-
As a anonymous or authenicated user I can access this module.
-
As a user I can vist /cards/name to see Hello + Name displayed on the page.
###Title Case Module
-
As a anonymous or authenicated user I can access this module from the nagivation menu.
-
As a user I can enter a non- case sensative sentence into a form.
-
As a user, I can see my sentence in Title Case format.
###Queen Attack Module
-
As a anonymous or authenicated user I can access this module from the nagivation menu.
-
As a user I can select the x and y coordinates (1-8) for both the queen, and target chess pieces from a drop down menu.
-
As a user I can see if the queen is able to hit the target based on standard chess rules.
-
If both sets of cooridnates are the same, I will see a form errror message, since the two pieces cannot start on the same square in chess.
###Rock Paper Scissors Module
-
As a anonymous or authenicated user I can access this module from the nagivation menu.
-
As a user I can enter in 'rock', 'paper', or 'scissors' in a form labeled player1.
-
As a user I can enter in 'rock', 'paper', or 'scissors' in a form labeled player1, on a seperate page.
-
As a user if I enter something other than 'rock', 'paper' or 'scissors' I will see a form error message, since those are the only 3 options for the game.
-
As a user I can see which player wins rock, paper, scissors and which choice each player made.
###Ice Cream Poll Module
-
As a anonymous or authenicated user I can access this module from the nagivation menu.
-
As a user, if I enter a State in a format other than 'Oregon', 'oregon', 'OR', 'or', I will see a form error message asking me to enter a valid state.
-
As a user, if I enter a flavor of ice cream, containing characters other than alpha characters and spaces, I will see a form error message asking me to use only alpha characters and spaces.
-
As a user, I can see a message saying my vote for my flavor choice in my state has been submitted.
###Sum Two Numbers Module
-
As a anonymous or authenicated user I can access this module from the nagivation menu.
-
As user I can sum two values together between -9,999 and 9,999. If I enter numbers outside of this range I will get a form validation error.
###Triangle Tracker Module
-
As a anonymous or authenicated user I can access this module from the nagivation menu.
-
As a user I can enter 3 numbers, one for the length of each side of a triangle.
-
As a user, if I enter anything but a postive interger, I will see a form error message asking me to enter a postive interger.
-
As a user, I can see what type of triangle my measurements would make.
###Ping Pong Module
-
As a anonymous or authenicated user I can access this module from the nagivation menu.
-
As a user I can enter a number, I would like to count up to.
-
As a user, if I enter anything but a postive interger, I will see a form error message asking me to enter a postive interger.
-
As a user, I can see a list of numbers, up to the number I selected, that replaces numbers divisble by 3 with 'ping', numbers divisible by 5 with 'pong' and numbers divisble by both with 'ping-pong'
#What I learned from this project
-
I learned how to make custom modules.
-
Praticed creating basic and custom content in drupal.
-
Praticed making multiple user roles and setting permissions.
-
Praticed using several common modules including: view, css injection, comments sweaver and contact.
-
Praticed using themes
-
Learned how to create and use forms in drupal, including element validation.
#To Do Figure out Cookie to store user role to present custome logout message based on user role
Add character bio pages for Gems, Steven, Greg and Connie