-
Notifications
You must be signed in to change notification settings - Fork 4
Deployment Guide
This document assumes that you have a new WordPress 3.x installation, and user has base knowledge of using WordPress 3.x.
Required Environtment Require environtment is just for information only, it suggested you install this environtment or use later version. But if older version, it can produce bug.
- Wordpress 3.6.1 later
- PHP 5.2.0 later (PHP 5.3.2 used on production)
Theme installation
- Unzip the theme.zip to wp-content/themes folder, then activate it
- Remove/Delete permanently the Existing/Default Pages (example:About) and Posts while first installation from WP Admin, because it may cause conflict if they are not deleted. The Pages and Posts will be imported from XML file.
- Install Topcoder Api Plugin. Extract TcApi-hookup.zip to “\wp-content\plugins” folder. To activate Plugins → Installed Plugins → TC API Hookup (Important)
- Install All Other Plugin on plugin directory. Extract plugin.zip to “\wp-content\plugins” folder. To activate Plugins → Installed Plugins → Activate The Plugin
- Import XML (topcoder.wordpress.2013-11-28) and File in menu WP Admin →Tools → Import → Wordpress (Important) maybe an error will occure when import for first time, because since 3.0.1 version, it need download the wordpress importer via API menu : Tools → Import → Wordpress, and check “Download Attachments”
- Fill the Theme Option with Correct values menu : Appearance → Theme Options
- Fill the Theme Options with Correct values menu : Topcoder API
Fill Api Userkey And Contest Post Per Page. This can be optained at http://dev.topcoder.com
- Install and activate the custom-field-template.1.9.8 plugin, and then Import cft20131128 file to Custom Field Template menu : Setting → Custom-field-template → Import Options
- Set permalink Settings → Permalinks. Choose permalink to Post name. (Important)
- To configure the page title like example bellow. In WP Admin go to menu Settings > General Find Field “Site Title” and fill with your site title
Widgets
- Go to Appearance → Widget
- Drag & Drop Stars Of The Month Widget and Top Rank Widget to Sidebar
- To see the result go to https://siteurl/blog
Stars Of The Month Widget
-
Go to Stars Of Month → Add New
-
Fill title with contest name, like Algorithm, Marathon, Development
-
Fill content with win summary of contestant, like : 4 wins, 1 second place
-
Choose category Featured Stars Of The Month (slug: featured-stars-of-the-month)
-
Set Featured Image as contestant profile picture
-
Fill custom field handle, handle link, and contest link
Contests, Past Contests, Review Opportunities, Member Profile, Blog URL Configuration
-
Edit File tc-cs-theme-draft/rewrite-config.php File
-
Change the defined url, with your own url
UPDATE FOR CHALLENGES PAGES:
Updated Challenge Page templates were introduced after the initial release. The instructions below describe how to set these up.
The challenges url link: http://siteurl/active-challenges/ http://siteurl/active-challenges/design/ http://siteurl/past-challenges/design/ http://siteurl/review-opportunities/design/ http://siteurl/review-opportunity/design/{contestID} http://siteurl/bug-races/develop/ http://siteurl/bug-races/design/ http://siteurl/active-challenges/data
How to create challenge page manually and how to configure it
Challenges Landing Page
- Create New Page
- Set The Slug to "challenges"
- Use "Challenge Page" template
Active Challenges Page 4. Create New Page 5. Set The Slug to "active-challenges" 6. Use "Challenges Active Contest List Page" template
- To configure the contest per page, edit the custom field
Past Challenges Page
- Create New Page
- Set The Slug to "past-challenges"
- Use "Challenges Past Contest List Page" template
- To configure the contest per page, edit the custom field
Review Opportunities Page
- Create New Page
- Set The Slug to "review-opportunities"
- Use "Challenges Review Opportunities Page" template
- To configure the contest per page, edit the custom field
Bug Race Challenges Page
- Create New Page
- Set The Slug to " bug-races"
- Use "Challenges Bug Race List Page" template
- To configure the contest per page, edit the custom field
Bug Race Challenges Page
- Create New Page
- Set The Slug to "bug-races"
- Use "Challenges Bug Race List Page" template
- To configure the contest per page, edit the custom field
Review Opportunities Challenges Page
- Create New Page
- Set The Slug to " review-opportunities "
- Use "Challenges Review Opportunities Page" template
- To configure the contest per page, edit the custom field
Review Opportunities Details Page
- Create New Page
- Set The Slug to " review-opportunity-details"
- Use "Challenges Review Details Page" template
Theme Options For Challenges Pages
- Menu : Appearance → Theme Option
- Fill TCO Tooltip Title for configure the tco eligible tooltip title
- Fill TCO Tooltip Message for configure the tco eligible tooltip message