Changeset 469932
- Timestamp:
- 12/01/2011 04:56:28 PM (14 years ago)
- Location:
- rockhoist-ratings
- Files:
-
- 7 added
- 2 edited
-
tags/1.1.3 (added)
-
tags/1.1.3/ajax_rate.js (added)
-
tags/1.1.3/ratings.css (added)
-
tags/1.1.3/readme.txt (added)
-
tags/1.1.3/rh-ratings.php (added)
-
tags/1.1.3/screenshot-1.png (added)
-
tags/1.1.3/sprites.png (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/rh-ratings.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rockhoist-ratings/trunk/readme.txt
r372767 r469932 1 1 === Rockhoist Ratings === 2 2 Contributors: esserq 3 Donate link: http://blarrr.com/ratings-plugin/4 3 Tags: rating, thumbs, up, down, post, ajax 5 4 Requires at least: 3.1 6 Tested up to: 3. 1.17 Stable tag: 1.1. 25 Tested up to: 3.2.1 6 Stable tag: 1.1.3 8 7 9 8 Rockhoist Ratings is a thumbs up/ thumbs down style rating widget for posts. … … 22 21 Contact me if you find any bugs, issues or have a feature request and I will do my best to accommodate. 23 22 24 More examples and information @ [blarrr.com](http://blarrr.com/ratings-plugin/)25 26 23 == Installation == 27 24 … … 37 34 38 35 == Changelog == 36 37 = 1.1.3 = 38 * Added rating widget to bottom of posts by default. 39 39 40 40 = 1.1.2 = -
rockhoist-ratings/trunk/rh-ratings.php
r372767 r469932 39 39 40 40 // Install the plugin. 41 function rhr_installation() { 42 43 global $wpdb; 44 45 // Create the rh_ratings. 41 function rhr_activate() { 42 43 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 44 45 global $wpdb; 46 47 // Create the rh_ratings table. 46 48 47 49 $table_name = $wpdb->prefix . "rh_ratings"; … … 57 59 );"; 58 60 59 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );60 61 dbDelta( $sql ); 61 62 } … … 65 66 66 67 // Hook for registering the install function upon plugin activation. 67 register_activation_hook(__FILE__,'rhr_installation'); 68 register_activation_hook(__FILE__,'rhr_activate'); 69 70 // Install the plugin. 71 function rhr_deactivate() { 72 73 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 74 75 global $wpdb; 76 77 // Drop the rh_ratings table. 78 $table_name = $wpdb->prefix . "rh_ratings"; 79 $sql = "DROP TABLE IF EXISTS " . $table_name . ";"; 80 dbDelta( $sql ); 81 82 delete_option('rhr_db_version'); 83 } 84 85 // Hook for registering the uninstall function upon plugin deactivation. 86 register_deactivation_hook( __FILE__, 'rhr_deactivate' ); 68 87 69 88 function rhr_set_rating( $args = '' ) { … … 184 203 } 185 204 205 add_filter('the_content', 'rhr_the_rating'); 206 186 207 // Link to Rockhoist Ratings stylesheet and apply some custom styles 187 208 function rhr_css() {
Note: See TracChangeset
for help on using the changeset viewer.