- About Grab Get Set
- Configuration and features
- Appearance
GRAB GET SET is an open source Get Satisfaction php topic display library including some Libraries for PEAR, HTTP Request2, ect.
Legal information about GRAB GET SET:
- Don't Code and Drive! Use Responsibly.
The config.inc.php file located in HttpReq/config.inc.php is where you put in your basic auth info for GetSatisfaction. Also the link to the community should be listed here if you want people to click and go directly to your community.
The topic_block.php is a Class file that returns the data from the api. You can use URL parameters to have it return a list. This file can not be moved or included out side of it's folder so it must be reference by java script.
The index.html file is a example of the url parameters and used jquery to call the topic_block.php file
More about configuration:
Call the Topic Block Class and add URL parameters to return the data you want.
Config File:
*1. First Fill in the needed credentials in the config file
HttpReq/config.inc.php
define('USERNAME', '' );
define('PASSWORD', '' );
define('HOST', 'http://api.getsatisfaction.com' )
define('COMMUNITYLINK', '' );
Index.html JQUERY:
index.html
*2. Second in the URL that points to the topic block class, Add in needed URL parameters
$(document).ready(function() {
$('#topics').css('display','none')
$('#topics').load('HttpReq/topic_block.php?company=servicemax&category=topics&type=list&title=Hot
%20Topic&article_amt=3&class_name=orange', function() {
$('#topics').fadeIn('slow');});
});
Example URL:
http://YOURSITE.COM/HttpReq/topic_block.php?company=[YOUR COMPANY]&category=topics
&type=list&title=Hot%20Topic&article_amt=3&class_name=orange
URL Calls:
?company=[your_company] //put your company name here
$category= topics //Included topics,products,ideas
&type=list //You can return a list or an array
&title=Hot%20Topic // Title of the List
&article_amt=3 // Number of Articles to return
&class_name=orange // class name of the un ordered list