Plugin Directory

Changeset 3259705


Ignore:
Timestamp:
03/21/2025 12:23:44 PM (13 months ago)
Author:
elearningevolve
Message:

2.4.3-update

Location:
video-conferencing-with-bbb/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • video-conferencing-with-bbb/trunk/README.md

    r3204172 r3259705  
    55Tags: 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
    66Requires at least: 5.1 
    7 Tested up to: 6.7.1 
     7Tested up to: 6.7.2 
    88Requires PHP: 7.2 
    9 Stable tag: 2.4.2 
     9Stable tag: 2.4.3 
    1010License: GPLv2 or later 
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    175175
    176176## 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
    177181### 2.4.2 ###
    178182* 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  
    2929     * @return  Integer $post_id    Post ID of the new room.
    3030     */
    31     public function save_room( $post_id ) {
     31    public function save_bbb_room( $post_id, $post, $update ) {
    3232        if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
    3333            return $post_id;
     
    9191     * @since 3.0.0
    9292     */
    93     private function can_save_room() {
     93    public function can_save_room() {
    9494        return ( isset( $_POST['bbb-moderator-code'] ) &&
    9595            isset( $_POST['bbb-viewer-code'] ) &&
    9696            isset( $_POST['bbb-room-moderator-code-nonce'] ) &&
    9797            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' ) );
    10699    }
    107100}
  • video-conferencing-with-bbb/trunk/admin/class-bigbluebutton-register-custom-types.php

    r3049441 r3259705  
    193193        $entry_code       = Bigbluebutton_Admin_Helper::generate_random_code();
    194194        $entry_code_label = __( 'Moderator Access Code', 'bigbluebutton' );
    195         $entry_code_msg   = __( 'Access Code Note', 'bigbluebutton' );
     195        $entry_code_msg   = __( 'Note:', 'bigbluebutton' );
    196196
    197197        $entry_code_name = 'bbb-moderator-code';
     
    211211        $entry_code       = Bigbluebutton_Admin_Helper::generate_random_code();
    212212        $entry_code_label = __( 'Viewer Access Code', 'bigbluebutton' );
    213         $entry_code_msg   = __( 'Access Code Note', 'bigbluebutton' );
     213        $entry_code_msg   = __( 'Note:', 'bigbluebutton' );
    214214        $entry_code_name  = 'bbb-viewer-code';
    215215        $existing_value   = get_post_meta( $object->ID, 'bbb-room-viewer-code', true );
  • video-conferencing-with-bbb/trunk/admin/css/bigbluebutton-admin.css

    r3082731 r3259705  
    129129}
    130130
    131 .tooltip {
     131.type-bbb-room .tooltip {
    132132    position: relative;
    133133    display: inline-block;
     134    opacity: 1;
    134135}
    135136
  • 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
    15<label><?php echo $entry_code_label; ?>: </label>
    2 <?php if ($existing_value != '') { ?>
    3     <input name="<?php echo $entry_code_name; ?>" type="text" maxlength="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; ?>">
    48<?php } else { ?>
    5     <input name="<?php echo $entry_code_name; ?>" type="text" maxlength="3" value="<?php echo $entry_code; ?>">
     9    <input name="<?php echo $entry_code_name; ?>" type="text" minlength="3" value="<?php echo $entry_code; ?>">
    610<?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  
    7878        $this->define_public_hooks();
    7979        $this->define_global_hooks();
    80 
    8180    }
    8281
     
    111110         * The activator class
    112111         */
    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';
    114113
    115114        /**
    116115         * The class for all helper functions
    117116         */
    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';
    119118
    120119        /**
     
    122121         * core plugin.
    123122         */
    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';
    125124
    126125        /**
     
    128127         * of the plugin.
    129128         */
    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';
    131130
    132131        /**
    133132         * The class responsible for defining actions specific to the admin area.
    134133         */
    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';
    136135
    137136        /**
    138137         * Registration of necessary components for the plugin.
    139138         */
    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';
    141140
    142141        /**
    143142         * Admin area API
    144143         */
    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';
    146145
    147146        /**
    148147         * Admin helper.
    149148         */
    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';
    151150
    152151        /**
     
    154153         * side of the site.
    155154         */
    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';
    157156
    158157        /**
    159158         * The class responsible for migrations from previous versions of the plugin to new ones.
    160159         */
    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';
    162161
    163162        /**
    164163         * Public facing plugin API
    165164         */
    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';
    168167
    169168        /**
    170169         * Shortcodes
    171170         */
    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';
    173172
    174173        /**
    175174         * Widget
    176175         */
    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';
    178177
    179178        /**
    180179         * Bigbluebutton API
    181180         */
    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';
    183182
    184183        /**
    185184         * Bigbluebutton Recordings helper
    186185         */
    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';
    188187
    189188        /**
    190189         * Bigbluebutton public view helper
    191190         */
    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';
    193192
    194193        /**
    195194         * Bigbluebutton tokens helper
    196195         */
    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';
    198197
    199198        if ( ! function_exists( 'is_plugin_active' ) ) {
     
    204203         * Bigbluebutton permissions helper
    205204         */
    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';
    207206
    208207        $this->loader = new Bigbluebutton_Loader();
     
    224223
    225224        $this->loader->add_action( 'init', $plugin_i18n, 'load_plugin_textdomain' );
    226 
    227225    }
    228226
     
    274272        $this->loader->add_action( 'add_meta_boxes', $plugin_admin_register_custom_types, 'register_record_room_metabox' );
    275273        $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 );
    277275
    278276        // Show custom fields in rooms table.
  • video-conferencing-with-bbb/trunk/video-conferencing-with-bbb.php

    r3204172 r3259705  
    1616 * Plugin URI:        https://wordpress.org/plugins/video-conferencing-with-bbb
    1717 * Description:       This plugin allows teachers to manage their virtual classrooms right from WordPress using BigBlueButton
    18  * Version:           2.4.2
     18 * Version:           2.4.3
    1919 * Author:            eLearning evolve <info@elearningevolve.com>
    2020 * Author URI:        https://elearningevolve.com/
     
    2424 * Domain Path:       /languages
    2525 */
     26$plugin_version = '2.4.3';
     27$plugin_name    = 'Virtual Classroom & Video Conferencing - BigBlueButton';
    2628
    2729// If this file is called directly, abort.
    28 if ( ! defined( 'WPINC' ) ) {
    29     die;
     30if ( ! defined( 'ABSPATH' ) ) {
     31    die( 'No direct access' );
    3032}
    3133
    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);
    3543
    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         }
     44foreach ( $eevolve_constants as $constant => $value ) {
     45    if ( ! defined( $constant ) ) {
     46        define( $constant, $value );
    5347    }
    5448}
     
    7165 */
    7266// 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();
    7569// }
    7670//register_deactivation_hook( __FILE__, 'deactivate_video_conf_bbb' );
     
    7973add_action(
    8074    'admin_notices',
    81     function() {
     75    function () {
    8276        $notice = get_transient( 'video_conf_bbb_conflict_notice' );
    8377        if ( $notice ) {
     
    9488    $conflict_basenames = array( 'bigbluebutton/bigbluebutton.php', 'bbb-administration-panel/bigbluebutton-plugin.php' );
    9589
     90    if ( ! function_exists( 'get_plugin_data' ) ) {
     91        include_once ABSPATH . 'wp-admin' . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'plugin.php';
     92    }
     93
    9694    foreach ( $conflict_basenames as $basename ) {
    9795        $conf_plugin_file = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $basename;
     
    105103    if ( isset( $plugins ) ) {
    106104        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            ) {
    109109
    110110                if ( isset( $_GET['activate'] ) ) {
     
    143143if ( ! function_exists( 'run_video_conf_bbb' ) && ! video_conf_bbb_check_conflict() ) {
    144144    function run_video_conf_bbb() {
    145 
    146145        $plugin = new VideoConferencingWithBBB();
    147146        $plugin->run();
    148 
    149147    }
    150148    run_video_conf_bbb();
Note: See TracChangeset for help on using the changeset viewer.