GithubHelp home page GithubHelp logo

themaclab / game-on Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 28.0 3.39 MB

Adding gaming functionality (experience, currency, levels, quests with multiple stage, etc.) to WordPress sites.

PHP 62.27% JavaScript 32.77% HTML 0.11% CSS 4.85%

game-on's People

Contributors

anthoneykalasho avatar charlesleonius avatar code-vespa avatar foresthoffman avatar semarpetrus avatar servis avatar spencernussbaum avatar themaclab avatar vuongaustin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

game-on's Issues

Store Item Random Loot

Add store item option to indicate that a task can be rewarded randomly from task mastery.

Deprecated Options Functions

We're using deprecated functions to save and get our Game-On settings. Here is one of the errors:

PHP Notice:  options.php was called with an argument that is <strong>deprecated</strong> since version 2.7! The <code>go_tasks_name</code> setting is unregistered. Unregistered settings are deprecated. See http://codex.wordpress.org/Settings_API in /Applications/MAMP/htdocs/wp-includes/functions.php on line 3495

Admin Message Count

The admin message number indicator in Chrome and Safari are green when no messages are unread. This line contains the styling for the admin message notification counter, it needs to be adjusted to contain styles for Firefox. The styles currently only work in Chrome and Safari; in Firefox, the counter is always red.

Task Date Filter Modifier

The task date filter's modifier should work just as the time filter does. The time filter removes X% from the total rewards, whereas the date filter reduces the rewards to X% of the original.

There may be an issue with the date filter not working, in general. Remember to check for past dates reducing the rewards by the correct percentages.

Incorrect usage of WP_admin_bar::add_node()

There are several errors appearing referring to the misusage of the WP_admin_bar::add_node().

PHP Notice:  WP_Admin_Bar::add_node was called <strong>incorrectly</strong>. The menu ID should not be empty. Please see <a href="http://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.3.) in /Applications/MAMP/htdocs/wp-includes/functions.php on line 3547

The error indicates that the 'id' attribute is missing from the add_node calls. go_admin_bar.php is where our add_node() calls are located.

Store Item URL

The URLs option for store items are dumping the URLs at the bottom of the page. They appear to be appended to the page's <body> tag. Line 31 of /types/store/includes/lightbox/js/buy_the_item.js runs a jQuery call which appends the anchor tag that is returned from go_buy_item() to the end of the <body> tag, which is not where it should be.

Create a 'item_count' column in the 'go' db table.

The column will contain the counts store-bought and rewarded items. The 'count' parameter for the go_add_post() function in go_pnc.php is being misused for counting the quantities of store items. The 'count' parameter and 'count' column in the 'go' table in the database is intended to be used for counting the amount of times a test has been failed, only. A parameter and variable need to be added to go_add_post() and a column in the 'go' table, specifically for use by store items, as having one table column serve two purposes is very bad practice. This is an absolute must, but it can be held off until the end of the current school year (2014/2015), as moving around the functionality for the table columns will create unwanted results.

For example, a student that had reached the purchase cap for an item would be able to continue buying the item, as the quantity that they had purchased stored in the database would no longer be the value being checked by the store item purchase code. That would allow the student to continue purchasing items up to the purchase limit, as if they had not purchased any items in the first place.

Custom CSS options.

Add options to allow custom CSS for task elements and possibly store item elements.

Admin messages admin menu title doesn't disappear when "unseeing" messages.

The admin messages counter in the upper left corner of the admin bar appears red when there are unseen messages waiting, and green otherwise. When there are no messages to be read, the admin menu will have the title "You have no messages from admin". The title doesn't disappear when an individual message is "unseen" using the "unsee" link on every seen message.

When the "unsee" link is clicked, the title should appear or disappear depending on whether the amount of unseen messages is greater than or equal to 0.

Time Filter

Add minutes, hours, and/or days setting (three fields) from encounter. An addition to the calendar date filter option. Would be especially cool if on page load the quest was NOT encountered and a warning that this is a time-based quest (e.g. "Are you sure you want to encounter it?"). And protected from viewing when logged out. With a nerf setting of 20 as default.

Add Store Multiple Item Switch

Off by default. The quantity mechanism will only appear if the option is checked. (Simplifies appearance of most store items.)

Add Store Multiple Item Switch

Off by default. The quantity mechanism will only appear if the option is checked. (Simplifies appearance of most store items.)

Testing Game-On

Hey Forest/Ezio, I just thought I would let you know that it might be a good idea to set up a place where people who want to test game-on and see how it works without having to set it up themselves.

Most plugins these days have some sort of site set up that you can log into the backend of. You have to be extremely careful about privileges for these test users, but otherwise you could set up a little walkthrough (such as how to make a quest) in the admin using notifications. You'll grow your user base and you'll probably have a bit more luck gaining contributors.

The only way a plugin in the WordPress market can truly be successful is if you have a ton of people staring at this code all the time, because smaller teams can get tunnel vision. It's good to have fresh eyes on your programs. Good luck you guys, and great work.

Task Date Filter Disclaimer

Task date filters should display a message of sorts at the top of the task to indicate that the date filer exists. This was excluded from the time filter update (#41).

User Login Redirection

Provide options for users to be redirected from the dashboard to the front page, on login. The option should be on by default.

Quest Cap

Limit the number of active quests that a user can have.

v2.1.5 File Permission Change

The following files' permissions where changed from 100644 to 100755:

  • scripts/go_options.js
  • styles/go_options.css
  • types/store/includes/lightbox/css/go-lightbox.css

I'll try to fix it ASAP, and it won't be a stand-alone update.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.