Changeset 771164
- Timestamp:
- 09/12/2013 09:31:36 PM (13 years ago)
- Location:
- barc-chat
- Files:
-
- 4 edited
- 8 copied
-
tags/0.5.4 (copied) (copied from barc-chat/trunk)
-
tags/0.5.4/barc.php (copied) (copied from barc-chat/trunk/barc.php) (7 diffs)
-
tags/0.5.4/css/styles.css (copied) (copied from barc-chat/trunk/css/styles.css)
-
tags/0.5.4/languages/default.mo (copied) (copied from barc-chat/trunk/languages/default.mo)
-
tags/0.5.4/languages/default.po (copied) (copied from barc-chat/trunk/languages/default.po)
-
tags/0.5.4/options.js (copied) (copied from barc-chat/trunk/options.js) (4 diffs)
-
tags/0.5.4/options.php (copied) (copied from barc-chat/trunk/options.php) (1 diff)
-
tags/0.5.4/readme.txt (copied) (copied from barc-chat/trunk/readme.txt) (2 diffs)
-
trunk/barc.php (modified) (7 diffs)
-
trunk/options.js (modified) (4 diffs)
-
trunk/options.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
barc-chat/tags/0.5.4/barc.php
r769424 r771164 4 4 Plugin URI: http://barc.com 5 5 Description: Barc Chat provides a simple yet feature rich chat room for your whole community to interact in real-time directly on your site. You can have an unlimited number of users chatting simultaneously, it's completely free and there are no ads! 6 Version: 0.5. 36 Version: 0.5.4 7 7 Author: Barc Inc. 8 8 Author URI: http://barc.com … … 16 16 17 17 // version of the plugin, must be updated with header version 18 const version = '0.5. 3';18 const version = '0.5.4'; 19 19 20 20 // activation URL, should be changed to live version … … 111 111 add_option(__class__.'_activated', 0); 112 112 add_option(__class__.'_page', 0); 113 add_option(__class__.'_position', 0); 113 114 } 114 115 … … 119 120 delete_option(__class__.'_activated'); 120 121 delete_option(__class__.'_page'); 122 delete_option(__class__.'_position'); 121 123 } 122 124 … … 185 187 $activated = get_option(__class__.'_activated', false); 186 188 $username = self::strip(get_option(__class__.'_code', '')); 189 $position = get_option(__class__.'_position', 0); 187 190 188 191 require_once $this->plugin_path.'/options.php'; … … 200 203 case 'save_page': 201 204 update_option(__class__.'_page', isset($_POST['post_id'])?$_POST['post_id']:0); 205 break; 206 207 case 'save_position': 208 update_option(__class__.'_position', isset($_POST['position'])?$_POST['position']:0); 202 209 break; 203 210 … … 261 268 return $content; 262 269 263 return self::barc_div.self::barc_js; 270 $position = get_option(__class__.'_position', 0); 271 272 return ($position == 1?$content:'').self::barc_div.self::barc_js.($position == 0?$content:''); 264 273 } 265 274 -
barc-chat/tags/0.5.4/options.js
r769424 r771164 4 4 $select_post = $('select[name=barc_post_id]'), 5 5 $button_settings = $('.button-barc-settings'), 6 $verified_username = $('.verified-username'); 6 $verified_username = $('.verified-username'), 7 $content_position = $('input[name=content_position]'); 7 8 8 9 var showMessage = function($message) … … 22 23 $select_post.attr('disabled', false); 23 24 $button_settings.attr('disabled', false); 25 $content_position.attr('disabled', false); 24 26 } 25 27 else … … 28 30 $select_post.attr('disabled', true); 29 31 $button_settings.attr('disabled', true); 32 $content_position.attr('disabled', true); 30 33 } 31 34 } … … 89 92 }); 90 93 94 $content_position.bind('change', function() 95 { 96 var $loader = $('#select_page_loader').show(), 97 v = $content_position.filter(':checked').val(); 98 99 $.post(Barc.action_url, { 100 a: 'save_position', 101 position: v 102 }, function(r) 103 { 104 $loader.hide(); 105 106 }).error(function() 107 { 108 $loader.hide(); 109 alert(Barc.text.ajax_error); 110 }); 111 }); 112 91 113 }); -
barc-chat/tags/0.5.4/options.php
r769286 r771164 50 50 </select> 51 51 <span class="spinner barc-loader" id="select_page_loader"></span> 52 <br class="clear" /> 52 <br class="clear" /><br /> 53 <label for="content_position_1"><input type="radio" id="content_position_1"<?php echo $position == 0?' checked':''; ?> name="content_position" value="0" /> <?php _e('Show above the content', self::ld); ?></label><br /> 54 <label for="content_position_2"><input type="radio" id="content_position_2"<?php echo $position == 1?' checked':''; ?> name="content_position" value="1" /> <?php _e('Show below the content', self::ld); ?></label> 53 55 </div> 54 56 </div> -
barc-chat/tags/0.5.4/readme.txt
r769424 r771164 5 5 Requires at least: 3.1 6 6 Tested up to: 3.6 7 Stable tag: 0.5. 37 Stable tag: 0.5.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 50 50 == Changelog == 51 52 = 0.5.4 = 53 - Added option to put Barc above/below content 51 54 52 55 = 0.5.3 = -
barc-chat/trunk/barc.php
r769424 r771164 4 4 Plugin URI: http://barc.com 5 5 Description: Barc Chat provides a simple yet feature rich chat room for your whole community to interact in real-time directly on your site. You can have an unlimited number of users chatting simultaneously, it's completely free and there are no ads! 6 Version: 0.5. 36 Version: 0.5.4 7 7 Author: Barc Inc. 8 8 Author URI: http://barc.com … … 16 16 17 17 // version of the plugin, must be updated with header version 18 const version = '0.5. 3';18 const version = '0.5.4'; 19 19 20 20 // activation URL, should be changed to live version … … 111 111 add_option(__class__.'_activated', 0); 112 112 add_option(__class__.'_page', 0); 113 add_option(__class__.'_position', 0); 113 114 } 114 115 … … 119 120 delete_option(__class__.'_activated'); 120 121 delete_option(__class__.'_page'); 122 delete_option(__class__.'_position'); 121 123 } 122 124 … … 185 187 $activated = get_option(__class__.'_activated', false); 186 188 $username = self::strip(get_option(__class__.'_code', '')); 189 $position = get_option(__class__.'_position', 0); 187 190 188 191 require_once $this->plugin_path.'/options.php'; … … 200 203 case 'save_page': 201 204 update_option(__class__.'_page', isset($_POST['post_id'])?$_POST['post_id']:0); 205 break; 206 207 case 'save_position': 208 update_option(__class__.'_position', isset($_POST['position'])?$_POST['position']:0); 202 209 break; 203 210 … … 261 268 return $content; 262 269 263 return self::barc_div.self::barc_js; 270 $position = get_option(__class__.'_position', 0); 271 272 return ($position == 1?$content:'').self::barc_div.self::barc_js.($position == 0?$content:''); 264 273 } 265 274 -
barc-chat/trunk/options.js
r769424 r771164 4 4 $select_post = $('select[name=barc_post_id]'), 5 5 $button_settings = $('.button-barc-settings'), 6 $verified_username = $('.verified-username'); 6 $verified_username = $('.verified-username'), 7 $content_position = $('input[name=content_position]'); 7 8 8 9 var showMessage = function($message) … … 22 23 $select_post.attr('disabled', false); 23 24 $button_settings.attr('disabled', false); 25 $content_position.attr('disabled', false); 24 26 } 25 27 else … … 28 30 $select_post.attr('disabled', true); 29 31 $button_settings.attr('disabled', true); 32 $content_position.attr('disabled', true); 30 33 } 31 34 } … … 89 92 }); 90 93 94 $content_position.bind('change', function() 95 { 96 var $loader = $('#select_page_loader').show(), 97 v = $content_position.filter(':checked').val(); 98 99 $.post(Barc.action_url, { 100 a: 'save_position', 101 position: v 102 }, function(r) 103 { 104 $loader.hide(); 105 106 }).error(function() 107 { 108 $loader.hide(); 109 alert(Barc.text.ajax_error); 110 }); 111 }); 112 91 113 }); -
barc-chat/trunk/options.php
r769286 r771164 50 50 </select> 51 51 <span class="spinner barc-loader" id="select_page_loader"></span> 52 <br class="clear" /> 52 <br class="clear" /><br /> 53 <label for="content_position_1"><input type="radio" id="content_position_1"<?php echo $position == 0?' checked':''; ?> name="content_position" value="0" /> <?php _e('Show above the content', self::ld); ?></label><br /> 54 <label for="content_position_2"><input type="radio" id="content_position_2"<?php echo $position == 1?' checked':''; ?> name="content_position" value="1" /> <?php _e('Show below the content', self::ld); ?></label> 53 55 </div> 54 56 </div> -
barc-chat/trunk/readme.txt
r769424 r771164 5 5 Requires at least: 3.1 6 6 Tested up to: 3.6 7 Stable tag: 0.5. 37 Stable tag: 0.5.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 50 50 == Changelog == 51 52 = 0.5.4 = 53 - Added option to put Barc above/below content 51 54 52 55 = 0.5.3 =
Note: See TracChangeset
for help on using the changeset viewer.