Changeset 3259705
- Timestamp:
- 03/21/2025 12:23:44 PM (13 months ago)
- Location:
- video-conferencing-with-bbb/trunk
- Files:
-
- 7 edited
-
README.md (modified) (2 diffs)
-
admin/class-bigbluebutton-admin-api.php (modified) (2 diffs)
-
admin/class-bigbluebutton-register-custom-types.php (modified) (2 diffs)
-
admin/css/bigbluebutton-admin.css (modified) (1 diff)
-
admin/partials/bigbluebutton-room-code-metabox-display.php (modified) (1 diff)
-
includes/class-bigbluebutton.php (modified) (8 diffs)
-
video-conferencing-with-bbb.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
video-conferencing-with-bbb/trunk/README.md
r3204172 r3259705 5 5 Tags: virtual classroom, video conference, BigBlueButton, BBB, online meeting, web conferencing, online teaching, learning management system, LMS, online session, live training, video conferencing, video conference, meetings, virtual meetings 6 6 Requires at least: 5.1 7 Tested up to: 6.7. 17 Tested up to: 6.7.2 8 8 Requires PHP: 7.2 9 Stable tag: 2.4. 29 Stable tag: 2.4.3 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 175 175 176 176 ## Changelog ## 177 ### 2.4.3 ### 178 * Fixed: Access code not updates are not applied for the room 179 * Fixed: Shortcode does not display in the admin rooms list 180 177 181 ### 2.4.2 ### 178 182 * Added: Character limit message for meeting access code on the meeting edit page -
video-conferencing-with-bbb/trunk/admin/class-bigbluebutton-admin-api.php
r2716624 r3259705 29 29 * @return Integer $post_id Post ID of the new room. 30 30 */ 31 public function save_ room( $post_id) {31 public function save_bbb_room( $post_id, $post, $update ) { 32 32 if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { 33 33 return $post_id; … … 91 91 * @since 3.0.0 92 92 */ 93 p rivatefunction can_save_room() {93 public function can_save_room() { 94 94 return ( isset( $_POST['bbb-moderator-code'] ) && 95 95 isset( $_POST['bbb-viewer-code'] ) && 96 96 isset( $_POST['bbb-room-moderator-code-nonce'] ) && 97 97 wp_verify_nonce( $_POST['bbb-room-moderator-code-nonce'], 'bbb-room-moderator-code-nonce' ) && 98 isset( $_POST['bbb-room-viewer-code-nonce'] ) && 99 wp_verify_nonce( $_POST['bbb-room-viewer-code-nonce'], 'bbb-room-viewer-code-nonce' ) && 100 isset( $_POST['bbb-room-wait-for-moderator-nonce'] ) && 101 wp_verify_nonce( $_POST['bbb-room-wait-for-moderator-nonce'], 'bbb-room-wait-for-moderator-nonce' ) && 102 ( ! current_user_can( 'create_recordable_bbb_room' ) || 103 ( isset( $_POST['bbb-room-recordable-nonce'] ) && 104 wp_verify_nonce( $_POST['bbb-room-recordable-nonce'], 'bbb-room-recordable-nonce' ) ) ) 105 ); 98 current_user_can( 'create_recordable_bbb_room' ) ); 106 99 } 107 100 } -
video-conferencing-with-bbb/trunk/admin/class-bigbluebutton-register-custom-types.php
r3049441 r3259705 193 193 $entry_code = Bigbluebutton_Admin_Helper::generate_random_code(); 194 194 $entry_code_label = __( 'Moderator Access Code', 'bigbluebutton' ); 195 $entry_code_msg = __( ' Access Code Note', 'bigbluebutton' );195 $entry_code_msg = __( 'Note:', 'bigbluebutton' ); 196 196 197 197 $entry_code_name = 'bbb-moderator-code'; … … 211 211 $entry_code = Bigbluebutton_Admin_Helper::generate_random_code(); 212 212 $entry_code_label = __( 'Viewer Access Code', 'bigbluebutton' ); 213 $entry_code_msg = __( ' Access Code Note', 'bigbluebutton' );213 $entry_code_msg = __( 'Note:', 'bigbluebutton' ); 214 214 $entry_code_name = 'bbb-viewer-code'; 215 215 $existing_value = get_post_meta( $object->ID, 'bbb-room-viewer-code', true ); -
video-conferencing-with-bbb/trunk/admin/css/bigbluebutton-admin.css
r3082731 r3259705 129 129 } 130 130 131 .t ooltip {131 .type-bbb-room .tooltip { 132 132 position: relative; 133 133 display: inline-block; 134 opacity: 1; 134 135 } 135 136 -
video-conferencing-with-bbb/trunk/admin/partials/bigbluebutton-room-code-metabox-display.php
r3204172 r3259705 1 <?php if ( $entry_code_name == 'bbb-moderator-code' ) : ?> 2 <h4><strong><?php echo esc_html( $entry_code_msg ); ?> <?php _e( 'Access codes must be at least 3 characters. To change it during a meeting, end the meeting first', 'bigbluebutton' ); ?></strong></h4> 3 <?php endif; ?> 4 1 5 <label><?php echo $entry_code_label; ?>: </label> 2 <?php if ( $existing_value != '') { ?>3 <input name="<?php echo $entry_code_name; ?>" type="text" m axlength="3" value="<?php echo $existing_value; ?>">6 <?php if ( $existing_value != '' ) { ?> 7 <input name="<?php echo $entry_code_name; ?>" type="text" minlength="3" value="<?php echo $existing_value; ?>"> 4 8 <?php } else { ?> 5 <input name="<?php echo $entry_code_name; ?>" type="text" m axlength="3" value="<?php echo $entry_code; ?>">9 <input name="<?php echo $entry_code_name; ?>" type="text" minlength="3" value="<?php echo $entry_code; ?>"> 6 10 <?php } ?> 7 <p><?php echo esc_html($entry_code_msg); ?></p>8 <p><strong><?php _e('The access code must be at least 3 characters long', 'bigbluebutton'); ?></strong></p> -
video-conferencing-with-bbb/trunk/includes/class-bigbluebutton.php
r3057862 r3259705 78 78 $this->define_public_hooks(); 79 79 $this->define_global_hooks(); 80 81 80 } 82 81 … … 111 110 * The activator class 112 111 */ 113 require_once plugin_dir_path( dirname( __FILE__ )) . 'includes/class-bigbluebutton-activator.php';112 require_once plugin_dir_path( __DIR__ ) . 'includes/class-bigbluebutton-activator.php'; 114 113 115 114 /** 116 115 * The class for all helper functions 117 116 */ 118 require_once plugin_dir_path( dirname( __FILE__ )) . 'includes/class-bigbluebutton-helper.php';117 require_once plugin_dir_path( __DIR__ ) . 'includes/class-bigbluebutton-helper.php'; 119 118 120 119 /** … … 122 121 * core plugin. 123 122 */ 124 require_once plugin_dir_path( dirname( __FILE__ )) . 'includes/class-bigbluebutton-loader.php';123 require_once plugin_dir_path( __DIR__ ) . 'includes/class-bigbluebutton-loader.php'; 125 124 126 125 /** … … 128 127 * of the plugin. 129 128 */ 130 require_once plugin_dir_path( dirname( __FILE__ )) . 'includes/class-bigbluebutton-i18n.php';129 require_once plugin_dir_path( __DIR__ ) . 'includes/class-bigbluebutton-i18n.php'; 131 130 132 131 /** 133 132 * The class responsible for defining actions specific to the admin area. 134 133 */ 135 require_once plugin_dir_path( dirname( __FILE__ )) . 'admin/class-bigbluebutton-admin.php';134 require_once plugin_dir_path( __DIR__ ) . 'admin/class-bigbluebutton-admin.php'; 136 135 137 136 /** 138 137 * Registration of necessary components for the plugin. 139 138 */ 140 require_once plugin_dir_path( dirname( __FILE__ )) . 'admin/class-bigbluebutton-register-custom-types.php';139 require_once plugin_dir_path( __DIR__ ) . 'admin/class-bigbluebutton-register-custom-types.php'; 141 140 142 141 /** 143 142 * Admin area API 144 143 */ 145 require_once plugin_dir_path( dirname( __FILE__ )) . 'admin/class-bigbluebutton-admin-api.php';144 require_once plugin_dir_path( __DIR__ ) . 'admin/class-bigbluebutton-admin-api.php'; 146 145 147 146 /** 148 147 * Admin helper. 149 148 */ 150 require_once plugin_dir_path( dirname( __FILE__ )) . 'admin/helpers/class-bigbluebutton-admin-helper.php';149 require_once plugin_dir_path( __DIR__ ) . 'admin/helpers/class-bigbluebutton-admin-helper.php'; 151 150 152 151 /** … … 154 153 * side of the site. 155 154 */ 156 require_once plugin_dir_path( dirname( __FILE__ )) . 'public/class-bigbluebutton-public.php';155 require_once plugin_dir_path( __DIR__ ) . 'public/class-bigbluebutton-public.php'; 157 156 158 157 /** 159 158 * The class responsible for migrations from previous versions of the plugin to new ones. 160 159 */ 161 require_once plugin_dir_path( dirname( __FILE__ )) . 'includes/class-bigbluebutton-migration.php';160 require_once plugin_dir_path( __DIR__ ) . 'includes/class-bigbluebutton-migration.php'; 162 161 163 162 /** 164 163 * Public facing plugin API 165 164 */ 166 require_once plugin_dir_path( dirname( __FILE__ )) . 'public/class-bigbluebutton-public-room-api.php';167 require_once plugin_dir_path( dirname( __FILE__ )) . 'public/class-bigbluebutton-public-recording-api.php';165 require_once plugin_dir_path( __DIR__ ) . 'public/class-bigbluebutton-public-room-api.php'; 166 require_once plugin_dir_path( __DIR__ ) . 'public/class-bigbluebutton-public-recording-api.php'; 168 167 169 168 /** 170 169 * Shortcodes 171 170 */ 172 require_once plugin_dir_path( dirname( __FILE__ )) . 'public/class-bigbluebutton-public-shortcode.php';171 require_once plugin_dir_path( __DIR__ ) . 'public/class-bigbluebutton-public-shortcode.php'; 173 172 174 173 /** 175 174 * Widget 176 175 */ 177 require_once plugin_dir_path( dirname( __FILE__ )) . 'public/class-bigbluebutton-public-widget.php';176 require_once plugin_dir_path( __DIR__ ) . 'public/class-bigbluebutton-public-widget.php'; 178 177 179 178 /** 180 179 * Bigbluebutton API 181 180 */ 182 require_once plugin_dir_path( dirname( __FILE__ )) . 'includes/class-bigbluebutton-api.php';181 require_once plugin_dir_path( __DIR__ ) . 'includes/class-bigbluebutton-api.php'; 183 182 184 183 /** 185 184 * Bigbluebutton Recordings helper 186 185 */ 187 require_once plugin_dir_path( dirname( __FILE__ )) . 'public/helpers/class-bigbluebutton-recording-helper.php';186 require_once plugin_dir_path( __DIR__ ) . 'public/helpers/class-bigbluebutton-recording-helper.php'; 188 187 189 188 /** 190 189 * Bigbluebutton public view helper 191 190 */ 192 require_once plugin_dir_path( dirname( __FILE__ )) . 'public/helpers/class-bigbluebutton-display-helper.php';191 require_once plugin_dir_path( __DIR__ ) . 'public/helpers/class-bigbluebutton-display-helper.php'; 193 192 194 193 /** 195 194 * Bigbluebutton tokens helper 196 195 */ 197 require_once plugin_dir_path( dirname( __FILE__ )) . 'public/helpers/class-bigbluebutton-tokens-helper.php';196 require_once plugin_dir_path( __DIR__ ) . 'public/helpers/class-bigbluebutton-tokens-helper.php'; 198 197 199 198 if ( ! function_exists( 'is_plugin_active' ) ) { … … 204 203 * Bigbluebutton permissions helper 205 204 */ 206 require_once plugin_dir_path( dirname( __FILE__ )) . 'public/helpers/class-bigbluebutton-permissions-helper.php';205 require_once plugin_dir_path( __DIR__ ) . 'public/helpers/class-bigbluebutton-permissions-helper.php'; 207 206 208 207 $this->loader = new Bigbluebutton_Loader(); … … 224 223 225 224 $this->loader->add_action( 'init', $plugin_i18n, 'load_plugin_textdomain' ); 226 227 225 } 228 226 … … 274 272 $this->loader->add_action( 'add_meta_boxes', $plugin_admin_register_custom_types, 'register_record_room_metabox' ); 275 273 $this->loader->add_action( 'add_meta_boxes', $plugin_admin_register_custom_types, 'register_wait_for_moderator_metabox' ); 276 $this->loader->add_action( 'save_post ', $plugin_admin_api, 'save_room');274 $this->loader->add_action( 'save_post_bbb-room', $plugin_admin_api, 'save_bbb_room', 999, 3 ); 277 275 278 276 // Show custom fields in rooms table. -
video-conferencing-with-bbb/trunk/video-conferencing-with-bbb.php
r3204172 r3259705 16 16 * Plugin URI: https://wordpress.org/plugins/video-conferencing-with-bbb 17 17 * Description: This plugin allows teachers to manage their virtual classrooms right from WordPress using BigBlueButton 18 * Version: 2.4. 218 * Version: 2.4.3 19 19 * Author: eLearning evolve <info@elearningevolve.com> 20 20 * Author URI: https://elearningevolve.com/ … … 24 24 * Domain Path: /languages 25 25 */ 26 $plugin_version = '2.4.3'; 27 $plugin_name = 'Virtual Classroom & Video Conferencing - BigBlueButton'; 26 28 27 29 // If this file is called directly, abort. 28 if ( ! defined( ' WPINC' ) ) {29 die ;30 if ( ! defined( 'ABSPATH' ) ) { 31 die( 'No direct access' ); 30 32 } 31 33 32 if ( ! function_exists( 'get_plugin_data' ) ) { 33 include_once ABSPATH . 'wp-admin' . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'plugin.php'; 34 } 34 $eevolve_constants = array( 35 'VIDEO_CONF_WITH_BBB_VERSION' => esc_html( $plugin_version ), 36 'VIDEO_CONF_WITH_BBB_ENDPOINT' => 'https://test-install.blindsidenetworks.com/bigbluebutton/', 37 'VIDEO_CONF_WITH_BBB_SALT' => '8cd8ef52e8e101574e400365b55e11a6', 38 'VIDEO_CONF_WITH_BBB_PLUGIN_NAME' => esc_html( $plugin_name ), 39 'VIDEO_CONF_WITH_BBB_PUBLIC_PATH' => __DIR__ . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR, 40 'VIDEO_CONF_WITH_BBB_IMG_URL' => plugin_dir_url( __FILE__ ) . '/images', 41 'VIDEO_CONF_WITH_BBB_PRO' => esc_url( 'https://elearningevolve.com/products/wp-virtual-classroom/' ), 42 ); 35 43 36 if ( function_exists( 'get_plugin_data' ) ) { 37 $plugin_data = get_plugin_data( __FILE__ ); 38 39 $eevolve_constants = array( 40 'VIDEO_CONF_WITH_BBB_VERSION' => esc_html( $plugin_data['Version'] ), 41 'VIDEO_CONF_WITH_BBB_ENDPOINT' => 'https://test-install.blindsidenetworks.com/bigbluebutton/', 42 'VIDEO_CONF_WITH_BBB_SALT' => '8cd8ef52e8e101574e400365b55e11a6', 43 'VIDEO_CONF_WITH_BBB_PLUGIN_NAME' => esc_html( $plugin_data['Name'] ), 44 'VIDEO_CONF_WITH_BBB_PUBLIC_PATH' => __DIR__ . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR, 45 'VIDEO_CONF_WITH_BBB_IMG_URL' => plugin_dir_url( __FILE__ ) . '/images', 46 'VIDEO_CONF_WITH_BBB_PRO' => esc_url( 'https://elearningevolve.com/products/wp-virtual-classroom/' ), 47 ); 48 49 foreach ( $eevolve_constants as $constant => $value ) { 50 if ( ! defined( $constant ) ) { 51 define( $constant, $value ); 52 } 44 foreach ( $eevolve_constants as $constant => $value ) { 45 if ( ! defined( $constant ) ) { 46 define( $constant, $value ); 53 47 } 54 48 } … … 71 65 */ 72 66 // function deactivate_video_conf_bbb() { 73 // require_once plugin_dir_path( __FILE__ ) . 'includes/class-bigbluebutton-deactivator.php';74 // Bigbluebutton_Deactivator::deactivate();67 // require_once plugin_dir_path( __FILE__ ) . 'includes/class-bigbluebutton-deactivator.php'; 68 // Bigbluebutton_Deactivator::deactivate(); 75 69 // } 76 70 //register_deactivation_hook( __FILE__, 'deactivate_video_conf_bbb' ); … … 79 73 add_action( 80 74 'admin_notices', 81 function () {75 function () { 82 76 $notice = get_transient( 'video_conf_bbb_conflict_notice' ); 83 77 if ( $notice ) { … … 94 88 $conflict_basenames = array( 'bigbluebutton/bigbluebutton.php', 'bbb-administration-panel/bigbluebutton-plugin.php' ); 95 89 90 if ( ! function_exists( 'get_plugin_data' ) ) { 91 include_once ABSPATH . 'wp-admin' . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'plugin.php'; 92 } 93 96 94 foreach ( $conflict_basenames as $basename ) { 97 95 $conf_plugin_file = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $basename; … … 105 103 if ( isset( $plugins ) ) { 106 104 foreach ( $plugins as $basename => $plugin ) { 107 if ( is_plugin_active( $basename ) || is_plugin_active_for_network( $basename ) 108 || defined( $plugin['class'] ) || ( isset( $_REQUEST['plugin'] ) && isset( $_REQUEST['action'] ) && 'activate' == $_REQUEST['action'] && $basename == $_REQUEST['plugin'] ) ) { 105 if ( 106 is_plugin_active( $basename ) || is_plugin_active_for_network( $basename ) 107 || defined( $plugin['class'] ) || ( isset( $_REQUEST['plugin'] ) && isset( $_REQUEST['action'] ) && 'activate' == $_REQUEST['action'] && $basename == $_REQUEST['plugin'] ) 108 ) { 109 109 110 110 if ( isset( $_GET['activate'] ) ) { … … 143 143 if ( ! function_exists( 'run_video_conf_bbb' ) && ! video_conf_bbb_check_conflict() ) { 144 144 function run_video_conf_bbb() { 145 146 145 $plugin = new VideoConferencingWithBBB(); 147 146 $plugin->run(); 148 149 147 } 150 148 run_video_conf_bbb();
Note: See TracChangeset
for help on using the changeset viewer.