Changeset 868782
- Timestamp:
- 03/03/2014 08:05:27 PM (12 years ago)
- Location:
- nextgen-gallery-voting
- Files:
-
- 34 added
- 2 edited
-
tags/2.7.2 (added)
-
tags/2.7.2/css (added)
-
tags/2.7.2/css/jquery-ui (added)
-
tags/2.7.2/css/jquery-ui/images (added)
-
tags/2.7.2/css/jquery-ui/images/animated-overlay.gif (added)
-
tags/2.7.2/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png (added)
-
tags/2.7.2/css/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png (added)
-
tags/2.7.2/css/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png (added)
-
tags/2.7.2/css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png (added)
-
tags/2.7.2/css/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png (added)
-
tags/2.7.2/css/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png (added)
-
tags/2.7.2/css/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png (added)
-
tags/2.7.2/css/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png (added)
-
tags/2.7.2/css/jquery-ui/images/ui-icons_222222_256x240.png (added)
-
tags/2.7.2/css/jquery-ui/images/ui-icons_2e83ff_256x240.png (added)
-
tags/2.7.2/css/jquery-ui/images/ui-icons_454545_256x240.png (added)
-
tags/2.7.2/css/jquery-ui/images/ui-icons_888888_256x240.png (added)
-
tags/2.7.2/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png (added)
-
tags/2.7.2/css/jquery-ui/jquery-ui-1.10.3.custom.css (added)
-
tags/2.7.2/css/jquery-ui/jquery-ui-1.10.3.custom.min.css (added)
-
tags/2.7.2/css/star_rating.css (added)
-
tags/2.7.2/images (added)
-
tags/2.7.2/images/loading.gif (added)
-
tags/2.7.2/images/star.gif (added)
-
tags/2.7.2/images/thumbs_down.png (added)
-
tags/2.7.2/images/thumbs_up.png (added)
-
tags/2.7.2/js (added)
-
tags/2.7.2/js/admin_gallery.js (added)
-
tags/2.7.2/js/ajaxify-likes.js (added)
-
tags/2.7.2/js/ajaxify-stars.js (added)
-
tags/2.7.2/js/top-voted.js (added)
-
tags/2.7.2/ngg-voting.php (added)
-
tags/2.7.2/readme.txt (added)
-
tags/2.7.2/voting-types.php (added)
-
trunk/ngg-voting.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nextgen-gallery-voting/trunk/ngg-voting.php
r848470 r868782 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. 16 Version: 2.7.2 7 7 Author: Shaun Alberts 8 8 Author URI: http://shauno.co.za … … 117 117 //add_filter('ngg_show_gallery_content', array(&$this, 'showGallery'), 10, 2); 118 118 */ 119 120 add_action('load_nextgen_gallery_modules', array(&$this, 'nggLoadModules')); 119 121 120 122 add_action('init', array(&$this, 'wpInit')); … … 701 703 //TODO 2.0, consider using wpdb insert methods 702 704 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 one704 705 return true; 705 706 }else{ … … 745 746 $ip = $this->getUserIp(); 746 747 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 one748 748 return true; 749 749 }else{ … … 806 806 public static function msg($msg) { 807 807 return apply_filters('nggv_msg', $msg); 808 } 809 810 //remove NGG's caching, as we are adding user's dynamic content to the gallery templates 811 function nggLoadModules($registry) { 812 if(class_exists('C_Photocrati_Cache')) { 813 C_Photocrati_Cache::$enabled = false; 814 } 808 815 } 809 816 // } -
nextgen-gallery-voting/trunk/readme.txt
r848470 r868782 5 5 Requires at least: 2.9.1 6 6 Tested up to: 3.8.1 7 Stable tag: 2.7. 17 Stable tag: 2.7.2 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.2 = 81 * Disabled NGG v2.x's caching class entirely. 79 82 80 83 = 2.7.1 = … … 218 221 == Upgrade Notice == 219 222 223 = 2.7.2 = 224 I have disabled NGG v2.x caching class entirely. It creates many problems with the dynamic content the voting adds to gallery pages 225 220 226 = 2.7.1 = 221 227 Added code to flush the NextGEN Gallery display template cache when vote is saved, so vote shows on next page refresh
Note: See TracChangeset
for help on using the changeset viewer.