About: PHP Character Widget   Sponge Permalink

An Entity of Type : dbkwik:resource/ZwE4O3utshWv1Qc47xdU6Q==, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

Information about the API change can be found at Application Programming Interface. PHP Character Widget html/php [[|thumb|left|50px]] See Also Extensions, Add-Ons, and Customizations

AttributesValues
rdf:type
rdfs:label
  • PHP Character Widget
rdfs:comment
  • Information about the API change can be found at Application Programming Interface. <default>PHP Character Widget</default> html/php [[|thumb|left|50px]] See Also Extensions, Add-Ons, and Customizations
webname
  • github
dcterms:subject
foaf:homepage
dbkwik:habitica/pr...iPageUsesTemplate
Platform
  • html/php
Name
  • PHP Character Widget
latest release version
  • 1(xsd:integer)
latest release date
  • 2014-05-24(xsd:date)
Description
  • A widget displaying a player's user name, current appearance and select stats that can be placed on the player's own website. It can run as a PHP include off your own server or as an iframe. There is also a WordPress-specific version created by gersande available here.
Screenshot
  • File:php-widget.png
Website
Developer
  • Pipcorona and Gersande
Usage
  • Running on your own server
  • To run this on your own server you will need the following files: *get-character.php *habitrpg.css *habitrpg-api.php *habitrpg and its contents in the img folder After placing all the files where they belong, edit the habitrpg-api.php file to have your API key and User ID for the appropriate variables. Then chmod the file to have read and write permissions for user only to keep those keys secure. Wherever you want the widget to show up, use a php include and include get-character.php. You also might need to edit the include or image paths if you don't have the files placed in the "inc" or "img" folder. Running through an iframe
  • If you don't want to host all the files on your server you can accomplish this two ways. Method 1
  • Place the habitrpg-api.php file in your inc folder. Edit it to have your API key and User ID and then chmod the file to read and write permissions for user only to keep those secure. Then use the php include code from index.html between the method 1 tags. Place that at the very top of your webpage, even above the html tag. Then place the iframe code between the method one tags where you want it on your webpage. This will place an iframe that will display your info. Method 2
  • This method is the least secure, but this method works if you want to display this character badge but cannot upload files to the web server . In this method, copy the code from index.html between the method 2 tags and paste it where you want it. Then replace PUT_USER_ID_HERE and PUT_API_KEY_HERE with your User ID and API key. The reason this isn't secure is because the API key and User ID values would be visible in the HTML source, so someone could use this information to access your account through the API.
abstract
  • Information about the API change can be found at Application Programming Interface. <default>PHP Character Widget</default> html/php [[|thumb|left|50px]] See Also Extensions, Add-Ons, and Customizations
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software