pizzutiphoto
Forum Replies Created
-
Since we changed the files names for SEO they are not in order. I’m a wedding photog so the timeline of the day needs to be in order. Time sort doesn’t seem to work so we have to sort manually. I have about 40 more back blog posts to go…. ??
Does anyone know a workaround for this? i use NG on two other sites and feel, like it’s zoomed in, but not this much. I can’t even tell what photo is what.
Same thing is happening on my end as well. Not sure what to do.
Hi, I’m not that great with the code, I addeded it where you said but it doesn’t seem to be working. When I replace code below with your code then I get the error message:
<<< Fatal error: Call to undefined function nggv_ipHasVotedImage() in /home/content/p/i/z/pizzutistudios/html/blog/wp-content/plugins/nextgen-gallery-voting/ngg-voting.php on line 130 >>>>What am I doing wrong? I have a contest running in a week and I would like people to be able to only vote on one image. Thank you so much for your time and your help.
CODE:
function nggv_ipHasVotedImage($pid, $ip=null) {
global $wpdb;
if(!$ip) {
$tmp = getUserIp();
$ip = $tmp[“ip”];
}if($votes = $wpdb->get_results(“SELECT * FROM “.$wpdb->prefix.”nggv_votes WHERE pid = ‘”.$wpdb->escape($pid).”‘ AND ip = ‘”.$wpdb->escape($ip).”‘”)) {
return $votes;
}else{
return array();
}}