Giter Club home page Giter Club logo

badge-it-gadget-lite's People

Contributors

kayaelle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

badge-it-gadget-lite's Issues

more php warnings

Hi

In get-my-badges.php there is another warning that briefly displays a warning:

$badge = str_rot13($_GET[id]);

should read

$badge = str_rot13($_GET['id']);

line 52 contains the same error (and that one seems to cause the javascript error i also reported.

regards
wvd_vegt

Javascript warning

Hi

When i try to click the badge link presented after issuing a badge i get a

Javascript is required to get your badge. Please enable it in your preferences.

error in all three major browsers (IE9/FireFox/Chrome).

Also (and maybe related) the link: Click here to get your badge! does not do anything.

regards
wvd_vegt

php warnings

Hi

The index.php script gives quite some warnings that make it unsable when testing.

I changes the following lines to supress these warnings:

  1. line 40, inserted:
    $bf = array();

  2. line 45 rewrote as:
    if (array_key_exists('success', $bf)) {

  3. line 49 rewrote as:
    if (array_key_exists('errors',$bf)) {

  4. line 63 rewrote as:
    if (array_key_exists('posted_form_data',$bf) && $i == $bf['posted_form_data']['badgeId']) {

  5. line 75, 76, 77 rewrote all three like:

    Recipient Name:*

The basic warnings where all about non existing keys but are shown in the input areas when certain warning levels are turned on in php.

Lastly in the gadget-settings.php I had to prepend a '/' t the start the start of "badge-it-gadget-lite" based paths ($root_path and $json_dir). This was neccesary when running on Windows/IIS where $_SERVER['DOCUMENT_ROOT'] does not end with a trailing slash.

Ideally these two variables should be set with a little code determining if a slash is or is not present.

But thanks for publishing the code it helps tackeling the openbadges api.

regards
wvd_vegt

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.