Overview
You will log in to the database from WordPress to add and edit Weekly Challenges to appear on the site and apps. This requires access to only one database table, app_challenge.
Adding a Weekly Challenge
- Access the Database (Run ARI Adminer): Find the ARI Adminer link in the left column, then choose the first option, Run ARI Adminer. The 1MEA database should appear in the dropdown; click the blue "Run Adminer in Modal Window" button
- Create a New Weekly Challenge Series: Find the app_challenge table (at the top of the list) and choose, "Select Data". Choose "New Item" at the top of the page.
- Add Content to the Weekly Challenge: The titles of each field makes these self-explanatory - they are the same fields you know from using phpMyAdmin for the polls. You can leave ID blank, but here you are able to specify start and stop date for the series; as well as specify 3 different parameters for each slide:
Which will create a large headline in white type.
- Repeat until fields for all 7 slides are complete
- Save the Weekly Challenge: You should probably save as you work, but definitely make sure to save your work at the end - button below the table fields.
- How to Exit ARI Adminer Click the dark grey areas outside of the Adminer interface.
How to test the appearance of the challenge
Add "?previewID=X" to https://1millionenergyactions.b.wpstage.net/challenge/index.html, where "X" is the ID number of the challenge you've created in the database. So, to see a challenge with an ID of 1,
https://1millionenergyactions.b.wpstage.net/challenge/index.html?previewID=1 would display the that challenge.