Have been working on implementing your plugin into my theme, and for the most part love it. However, I want to take a different approach to how the voting forms appear.
What I’m trying to do, is do an external check (from my own php file) to see if a user has the ability to vote on the current image (PID). However, when I try and include ngg-voting.php it seems the $offical function around line 174X causes it to bung up, not allowing me to include the file.
To clarify I want to:
Check with Ngg-voting to see if a user can vote on image (Based on the predefined options ie: IP/if voting is enabled etc) from my own php file, and then set a variable on if they can/can’t.
Just looking for advice on how I can proceed.
- The topic ‘A way to check if a user can vote from external php file’ is closed to new replies.