Can you give an example of how to use json.php? I have tried several different ways to get this working but I’m struggling.
I have this in my config:
define(‘NGG_JSON_ENABLED’, true);
I would like to be able to query the gallery using jQuery with a load perhaps, but I can’t quite seem to get that to work…either way I get header already included errors.
If I include the json.php file in my templates, I will get the cannot modify header error as well.
Perhaps a basic way to use the json.php script?