Changeset 848470
- Timestamp:
- 01/30/2014 08:03:59 PM (12 years ago)
- Location:
- nextgen-gallery-voting
- Files:
-
- 34 added
- 2 edited
-
tags/2.7.1 (added)
-
tags/2.7.1/css (added)
-
tags/2.7.1/css/jquery-ui (added)
-
tags/2.7.1/css/jquery-ui/images (added)
-
tags/2.7.1/css/jquery-ui/images/animated-overlay.gif (added)
-
tags/2.7.1/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png (added)
-
tags/2.7.1/css/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png (added)
-
tags/2.7.1/css/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png (added)
-
tags/2.7.1/css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png (added)
-
tags/2.7.1/css/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png (added)
-
tags/2.7.1/css/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png (added)
-
tags/2.7.1/css/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png (added)
-
tags/2.7.1/css/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png (added)
-
tags/2.7.1/css/jquery-ui/images/ui-icons_222222_256x240.png (added)
-
tags/2.7.1/css/jquery-ui/images/ui-icons_2e83ff_256x240.png (added)
-
tags/2.7.1/css/jquery-ui/images/ui-icons_454545_256x240.png (added)
-
tags/2.7.1/css/jquery-ui/images/ui-icons_888888_256x240.png (added)
-
tags/2.7.1/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png (added)
-
tags/2.7.1/css/jquery-ui/jquery-ui-1.10.3.custom.css (added)
-
tags/2.7.1/css/jquery-ui/jquery-ui-1.10.3.custom.min.css (added)
-
tags/2.7.1/css/star_rating.css (added)
-
tags/2.7.1/images (added)
-
tags/2.7.1/images/loading.gif (added)
-
tags/2.7.1/images/star.gif (added)
-
tags/2.7.1/images/thumbs_down.png (added)
-
tags/2.7.1/images/thumbs_up.png (added)
-
tags/2.7.1/js (added)
-
tags/2.7.1/js/admin_gallery.js (added)
-
tags/2.7.1/js/ajaxify-likes.js (added)
-
tags/2.7.1/js/ajaxify-stars.js (added)
-
tags/2.7.1/js/top-voted.js (added)
-
tags/2.7.1/ngg-voting.php (added)
-
tags/2.7.1/readme.txt (added)
-
tags/2.7.1/voting-types.php (added)
-
trunk/ngg-voting.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nextgen-gallery-voting/trunk/ngg-voting.php
r827445 r848470 4 4 Plugin URI: http://shauno.co.za/wordpress/nextgen-gallery-voting/ 5 5 Description: This plugin allows you to add user voting and rating to NextGEN Galleries and Images 6 Version: 2.7 6 Version: 2.7.1 7 7 Author: Shaun Alberts 8 8 Author URI: http://shauno.co.za 9 9 */ 10 10 /* 11 Copyright 201 3Shaun Alberts (email : [email protected])11 Copyright 2014 Shaun Alberts (email : [email protected]) 12 12 13 13 This program is free software; you can redistribute it and/or modify … … 701 701 //TODO 2.0, consider using wpdb insert methods 702 702 if($wpdb->query('INSERT INTO '.$wpdb->prefix.'nggv_votes (id, pid, gid, vote, user_id, ip, proxy, dateadded) VALUES (null, 0, "'.$wpdb->escape($config['gid']).'", "'.$wpdb->escape($config['vote']).'", "'.$current_user->ID.'", "'.$ip['ip'].'", "'.$ip['proxy'].'", "'.date('Y-m-d H:i:s', time()).'")')) { 703 C_Photocrati_Cache::flush('displayed_gallery_rendering'); //clear the entire 'displayed_gallery_rendering' cache (cache implemented from ngg 2.0.40). todo, try figure out the transient id, and clear the specific one 703 704 return true; 704 705 }else{ … … 744 745 $ip = $this->getUserIp(); 745 746 if($wpdb->query("INSERT INTO ".$wpdb->prefix."nggv_votes (id, gid, pid, criteria_id, vote, user_id, ip, proxy, dateadded) VALUES (null, 0, '".$wpdb->escape($config["pid"])."', '".$wpdb->escape($criteriaId)."', '".$wpdb->escape($config["vote"])."', '".$current_user->ID."', '".$ip["ip"]."', '".$ip["proxy"]."', '".date("Y-m-d H:i:s", time())."')")) { 747 C_Photocrati_Cache::flush('displayed_gallery_rendering'); //clear the entire 'displayed_gallery_rendering' cache (cache implemented from ngg 2.0.40). todo, try figure out the transient id, and clear the specific one 746 748 return true; 747 749 }else{ -
nextgen-gallery-voting/trunk/readme.txt
r827445 r848470 4 4 Tags: nextgen-gallery, nextgen, gallery, voting, rating, ratings, nextgen-gallery-voting 5 5 Requires at least: 2.9.1 6 Tested up to: 3.8 7 Stable tag: 2.7 6 Tested up to: 3.8.1 7 Stable tag: 2.7.1 8 8 9 9 Adds the ability for users to vote and rate your NextGEN Images. Simple options give you the ability to limit who can vote on what. … … 77 77 78 78 == Changelog == 79 80 = 2.7.1 = 81 * Patch to flush the NextGEN Gallery display template cache when vote is saved, so vote shows on next page refresh 79 82 80 83 = 2.7 = … … 215 218 == Upgrade Notice == 216 219 220 = 2.7.1 = 221 Added code to flush the NextGEN Gallery display template cache when vote is saved, so vote shows on next page refresh 222 217 223 = 2.7 = 218 224 Fixed gallery voting on NGG v2.x. Also added code to make NGG Voting work with NGG Public Uploader
Note: See TracChangeset
for help on using the changeset viewer.