|
Sep 2 2008, 5:37 PM EDT
|
|
|
edit |
8 words added
3 words deleted
|
|
Change: $wetpaint_developer_key . "\" type=\"text/javascript\"></script>\r"; $content .= "\t<script type=\"text/javascript\">\r"; $content .= "\t\tif ( window.WPCAPI ) {\r"; if ( isset( $wetpaint_ticket ) ){ $content .= "\t\t\tWPCAPI.setLoginTicket('" . $wetpaint_ticket . "');\r"; } $content .= "\t\t\tWPCAPI.setDeveloperKey('" . $wetpaint_developer_key . "');\r"; $content .= "\t\t\tWPCAPI.setNamespace('" . $wetpaint_developer_content_namespace . "');\r"; $content .= "\t\t}\r"; $content .= "\t</script>\r";
View changes from previous version.
(Word count: 516)
|
|
Jul 17 2008, 1:54 PM EDT
|
|
|
edit |
6 words added
7 words deleted
|
|
Change: sha1(hash_hmac( 'key='"sha1", . $wetpaint_developer_key . '&ts='$user_login . $ts$ts, .$wetpaint_developer_secret, $wetpaint_developer_secretFALSE ); $submit_vars["cred.ts"] = $ts; $submit_vars["cred.sig"] = $sig; $submit_vars["user.userId"] = $user_login; $submit_vars["user.displayName"] = $user_identity; $submit_vars["user.email"] = $user_email; $submit_vars["user.emailOptIn"] = "true"; $submit_vars["user.profileUrl"] = $user_url; if ( $user_level >= 5 ) { $submit_vars["user.role"] = "moderator"; }
View changes from previous version.
(Word count: 514)
|
|
Jul 3 2008, 9:42 PM EDT
|
|
|
edit |
1 word added
1 word deleted
|
|
Change: retreiveretrieve user generated content:function wetpaint_content( $content ) { global $post, $wetpaint_developer_key, $wetpaint_api_host, $wetpaint_developer_content_namespace, $wetpaint_ticket; if ( !( is_home() || is_single() || is_category() || is_date() || is_archive() || is_search() ) ) { return $content; } $cellId = $_REQUEST['cellId']; $displayName = $_REQUEST['displayName']; $cellUrl = $_REQUEST['cellUrl']; if( $cellId
View changes from previous version.
(Word count: 513)
|
|
Jul 3 2008, 9:38 PM EDT
|
|
|
edit |
2 words added
2 words deleted
|
|
Change: pluginplug-in makes, you can get an idea of how your PHP application would integrate with Injected.The following function ensures the current user is logged in to the Wetpaint Server:function wetpaint_init() {global $wetpaint_api_host, $wetpaint_developer_key, $wetpaint_developer_secret,$wetpaint_developer_content_namespace, $wetpaint_ticket;global $user_login, $user_email, $user_level, $user_url, $user_identity; get_currentuserinfo(); if (is_user_logged_in()
View changes from previous version.
(Word count: 513)
|
|
Jun 4 2008, 4:04 PM EDT
|
|
|
edit |
1 word added
1 word deleted
|
|
Change: Balco.Injected.The following function ensures the current user is logged in to the Wetpaint Server:function wetpaint_init() {global $wetpaint_api_host, $wetpaint_developer_key, $wetpaint_developer_secret,$wetpaint_developer_content_namespace, $wetpaint_ticket;global $user_login, $user_email, $user_level, $user_url, $user_identity; get_currentuserinfo(); if (is_user_logged_in() && !(isset($_COOKIE['wetpaint-togo']))) { $submit_vars["key"] = $wetpaint_developer_key; $submit_vars["ns"] = $wetpaint_developer_content_namespace; $submit_vars["output"] = "api"; $ts = time(); $sig
View changes from previous version.
(Word count: 512)
|
|
May 14 2008, 2:26 PM EDT
|
|
|
edit |
1 word added
1 word deleted
|
|
Change: src="http://togo.wetpaint.com/JavaScriptService/getBootstrap.do"src="http://wapi.wetpaint.com/JavaScriptService/getBootstrap.do" type="text/javascript"></script><script type="text/javascript">if ( window.WPCAPI ) {WPCAPI.setLoginTicket("s0m3tick3t-received-during-login"); //see wetpaint_init() function above.WPCAPI.setDeveloperKey("yourdeveloperkey");WPCAPI.setNamespace("yournamespace");}</script>The following functions retreive user generated content:function wetpaint_content( $content ) { global $post, $wetpaint_developer_key, $wetpaint_api_host, $wetpaint_developer_content_namespace, $wetpaint_ticket; if ( !(
View changes from previous version.
(Word count: 512)
|
|
May 2 2008, 2:12 PM EDT
|
|
|
edit |
8 words added
|
|
Change: . $url; if ( $client->status != 200 ) return "";#"Error calling: " . $url . " Results: (" . $client->results . ")"; $results = $client->results; if( $results != "" ) $results .= '<div><em>' . wetpaint_addpage_link($cellId, $displayName) . '</em></div>'; return $results;} Data for testing login is available here.
View changes from previous version.
(Word count: 512)
|
|
May 2 2008, 2:08 PM EDT
|
|
|
edit |
1 word added
1 word deleted
|
|
Change: '/WikiService/getCell.do?key=''/CellService/getCell.do?key=' . urlencode( $wetpaint_developer_key) . '&ns=' . urlencode( $wetpaint_developer_content_namespace ) . '&cell.cellId=' . urlencode( $cellId ) . '&cell.displayName=' . urlencode( $displayName ) . '&cell.url=' . urlencode( $cellUrl ) . '&output=html'; $client = new Snoopy(); @$client->fetch($url); if ( $client->timed_out ) return "";#"Time out calling -> " . $url; if
View changes from previous version.
(Word count: 505)
|
|
Apr 21 2008, 6:25 PM EDT
|
|
|
edit |
30 words added
12 words deleted
|
|
Change: output shown below, as required for the client application (refer to step 3 of the integration guide). The first script tags:Ryan,tag couldrequests youthe describebootstrap, herethe exactlysecond whatsets thisthe codesite does?properties.//function will generate these
View changes from previous version.
(Word count: 505)
|
|
Apr 21 2008, 2:22 PM EDT
|
|
|
edit |
10 words added
|
|
Change: Ryan, could you describe here exactly what this code does?//function will generate these tags if user has a ticket<script src="http://togo.wetpaint.com/JavaScriptService/getBootstrap.do" type="text/javascript"></script><script type="text/javascript">if ( window.WPCAPI ) {WPCAPI.setLoginTicket("s0m3tick3t-received-during-login"); //see wetpaint_init() function above.WPCAPI.setDeveloperKey("yourdeveloperkey");WPCAPI.setNamespace("yournamespace");}</script>The following functions retreive user
View changes from previous version.
(Word count: 488)
|
|
Apr 21 2008, 2:20 PM EDT
|
|
|
edit |
5 words added
1 word deleted
|
|
Change: //see wetpaint_init() function above.WPCAPI.setDeveloperKey("yourdeveloperkey");WPCAPI.setNamespace("yournamespace");}</script>The following functions retreive user generated content:function wetpaint_content( $content ) { global $post, $wetpaint_developer_key, $wetpaint_api_host, $wetpaint_developer_content_namespace, $wetpaint_ticket; if ( !( is_home() || is_single() || is_category() ||
View changes from previous version.
(Word count: 478)
|
|
Apr 21 2008, 2:15 PM EDT
|
|
|
edit |
30 words added
77 words deleted
|
|
Change: : this section is in progress. I'll finish it this morning. 4/21 )<script src="http://togo.wetpaint.com/JavaScriptService/getBootstrap.do" type="text/javascript"></script><script type="text/javascript"> if//function (will window.WPCAPIgenerate )these {tags </script>$wetpaint_api_hostif .user "/JavaScriptService/getBootstrap.do\"has .a "type=\"text/javascript\"></script>\r";ticket $content .=<script "\t<scriptsrc="http://togo.wetpaint.com/JavaScriptService/getBootstrap.do" type=\"text/javascript\">\r";type="text/javascript"></script> $content .=
View changes from previous version.
(Word count: 471)
|
|
Apr 21 2008, 1:50 PM EDT
|
|
|
edit |
15 words added
14 words deleted
|
|
Change: ( note: this section is in progress. I'll finish it this morning. 4/21 )function wetpaint_header() { global $wetpaint_developer_key, $wetpaint_api_host, $wetpaint_developer_content_namespace, $wetpaint_ticket; $content .= "\t<script src=\"" . $wetpaint_api_host . "/JavaScriptService/getBootstrap.do\" . "type=\"text/javascript\"></script>\r"; $content .= "\t<script type=\"text/javascript\">\r"; $content .= "\t\tif ( window.WPCAPI ) {\r"; if ( isset( $wetpaint_ticket ) ){
View changes from previous version.
(Word count: 521)
|
|
Apr 21 2008, 1:50 PM EDT
|
|
|
edit |
14 words added
|
|
Change: ( note: this section is in progress. I'll finish it this morning. 4/21 )function wetpaint_header() { global $wetpaint_developer_key, $wetpaint_api_host, $wetpaint_developer_content_namespace, $wetpaint_ticket; $content .= "\t<script src=\"" . $wetpaint_api_host . "/JavaScriptService/getBootstrap.do\" . "type=\"text/javascript\"></script>\r"; $content .= "\t<script type=\"text/javascript\">\r"; $content .= "\t\tif ( window.WPCAPI ) {\r"; if ( isset( $wetpaint_ticket ) ){
View changes from previous version.
(Word count: 521)
|
|
Apr 21 2008, 1:48 PM EDT
|
|
|
edit |
72 words added
|
|
Change: above function generates the following script tags:<script src="http://togo.wetpaint.com/JavaScriptService/getBootstrap.do" type="text/javascript"></script><script type="text/javascript"> if ( window.WPCAPI ) { </script>$wetpaint_api_host . "/JavaScriptService/getBootstrap.do\" . "type=\"text/javascript\"></script>\r"; $content .= "\t<script type=\"text/javascript\">\r"; $content .= "\t\tif ( window.WPCAPI ) {\r"; if ( isset( $wetpaint_ticket ) ){ $content .= "\t\t\tWPCAPI.setLoginTicket('" . $wetpaint_ticket . "');\r"; } $content
View changes from previous version.
(Word count: 507)
|
|
Apr 21 2008, 1:35 PM EDT
|
|
|
edit |
|
|
Change: There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 422)
|
|
Apr 21 2008, 1:35 PM EDT
|
|
|
edit |
|
|
Change: There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 422)
|
|
Apr 18 2008, 4:52 PM EDT
|
|
|
edit |
|
|
Change: There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 422)
|
|
Apr 18 2008, 4:39 PM EDT
|
|
|
edit |
|
|
Change: There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 422)
|
|
Apr 18 2008, 3:42 PM EDT
|
|
|
edit |
|
|
Change: There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 422)
|