jeromedms
Forum Replies Created
Viewing 7 replies - 1 through 7 (of 7 total)
-
Forum: Plugins
In reply to: [JSON API User] Error while adding commentgreat, it works now
Forum: Plugins
In reply to: [JSON API User] Error while adding commentHi Ali,
Any news regarding this pending issue ?
Thanks
JeromeForum: Plugins
In reply to: [JSON API User] Error while adding commentThanks Ali.
Forum: Plugins
In reply to: [JSON API User] Error while adding commentI checked the V2.7 regarding this issue, and it still not work.
It seems isset() still returns false if the variable is zero.
After some research, It seems difficult to test a variable if it is zero.I suggest the url should be comment_status=’0′ or comment_status=’1′ so the tests are easier, then, we updating database, cast to integer as follow :
$data = array(
…
…
‘comment_approved’ => (int) $comment_approved,
);I did not check this but I guess it should work.
Thanks
JeromeForum: Plugins
In reply to: [JSON API User] Error while adding commentgreat, thanks
Forum: Plugins
In reply to: [Favorites] Favorites mobile APIAny news, I’m also interested in this feature ?
Forum: Plugins
In reply to: [JSON API User] Error while adding commentThe solution to make this working is to modify User.php as follow :
if (!$json_api->query->comment_status ) { $json_api->error("Please include 'comment_status' var in your request. Possible values are '1' (approved) or '0' (not-approved)"); }else $comment_approved = $json_api->query->comment_status;modified :
if (!isset($json_api->query->comment_status) ) { $json_api->error("Please include 'comment_status' var in your request. Possible values are '1' (approved) or '0' (not-approved)"); }else $comment_approved = $json_api->query->comment_status;
Viewing 7 replies - 1 through 7 (of 7 total)