badge-it-gadget-lite's People
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:
-
line 40, inserted:
$bf = array(); -
line 45 rewrote as:
if (array_key_exists('success', $bf)) { -
line 49 rewrote as:
if (array_key_exists('errors',$bf)) { -
line 63 rewrote as:
if (array_key_exists('posted_form_data',$bf) && $i == $bf['posted_form_data']['badgeId']) { -
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
In Action addition to read me
The following two items could be added to the "In Action" section of the readme:
http://mars.webmaker.org/Unit1/
http://mars.webmaker.org/Unit2/
as referenced from:
https://ben.makes.org/thimble/marswebmakerorg-teaching-kit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.