Plugin Directory

Changeset 976447


Ignore:
Timestamp:
09/01/2014 01:37:49 PM (12 years ago)
Author:
hdflvplayer
Message:

Fixed video details not displaying in video page - Upgrade (2.7) issue

Location:
contus-video-gallery
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • contus-video-gallery/tags/2.7/ContusFeatureVideos.php

    r974692 r976447  
    5353        extract ( $args, EXTR_SKIP );
    5454        $title = empty ( $instance ['title'] ) ? ' ' : apply_filters ( 'widget_title', $instance ['title'] );
     55        $show = 3;
    5556        if (! empty ( $title ))
    5657            // WIDGET CODE GOES HERE
     
    6465            if( absint( $instance['show'] ) ){
    6566                $show = $instance ['show'];
    66             }else{
    67                 $show =3;   
    6867            }
    69         } else {
    70             $show = 3;
    7168        }
    7269           
  • contus-video-gallery/tags/2.7/ContusRandomVideos.php

    r974692 r976447  
    9393        $viewslang = __ ( 'Views', 'video_gallery' );
    9494        $viewlang = __ ( 'View', 'video_gallery' );
     95        $show = 3;
    9596        echo $before_widget;
    9697        $div = '<div id="random-videos" class="sidebar-wrap "><h3 class="widget-title"><a href="' . $more_videos_link . '">' . $title . '</a></h3>';
     
    99100            if( absint( $instance['show'] ) ){
    100101                $show = $instance ['show'];
    101             }else{
    102                 $show = 3;
    103102            }
    104         }else{
    105                 $show = 3;
    106         }
     103        }
     104
    107105        $sql = 'SELECT DISTINCT a.*,s.guid,b.playlist_id,p.playlist_name FROM ' . $wpdb->prefix . 'hdflvvideoshare a
    108106                LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id
     
    111109                WHERE a.publish=1 AND p.is_publish=1 GROUP BY a.vid ORDER BY RAND() LIMIT ' . $show;
    112110        $posts = $wpdb->get_results ( $sql );
     111
    113112        if (! empty ( $posts )) {
    114113            $fetched = $posts [0]->playlist_name;
    115114        }
     115
    116116        $moreR = $wpdb->get_results ( 'SELECT count(a.vid) as contus from ' . $wpdb->prefix . 'hdflvvideoshare a
    117117                LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id
  • contus-video-gallery/tags/2.7/ContusRecentVideos.php

    r974692 r976447  
    8181        $viewslang = __ ( 'Views', 'video_gallery' );
    8282        $viewlang = __ ( 'View', 'video_gallery' );
     83        $show = 3;
    8384        echo $before_widget;
    8485        $div = '<div id="recent-videos" class="sidebar-wrap "><h3 class="widget-title"><a href="' .$more_videos_link .'">' . $title . '</a></h3>';
     86
    8587        if ($instance ['show']) {
    8688            if( absint( $instance['show'] ) ) {
    8789                $show = $instance['show'];
    8890            }
    89             $show = 3;
    90         } else {
    91             $show = 3;
    9291        }
     92
    9393        $sql = 'SELECT DISTINCT a.*,s.guid,b.playlist_id,p.playlist_name FROM ' . $wpdb->prefix . 'hdflvvideoshare a
    9494                LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id
     
    9797                WHERE a.publish=1 AND p.is_publish=1 GROUP BY a.vid ORDER BY a.vid DESC LIMIT ' . $show;
    9898        $posts = $wpdb->get_results ( $sql );
     99
    99100        if (! empty ( $posts )) {
    100101            $fetched = $posts [0]->playlist_name;
    101102        }
     103
    102104        $moreR = $wpdb->get_results ( 'SELECT count(a.vid) as contus from ' . $wpdb->prefix . 'hdflvvideoshare a
    103105                LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id
  • contus-video-gallery/tags/2.7/ContusRelatedVideos.php

    r974692 r976447  
    4040        extract( $args, EXTR_SKIP );
    4141        $title = empty( $instance['title'] ) ? ' ' : apply_filters( 'widget_title', $instance['title'] );
     42        $show = 3;
    4243        global $wpdb;
    4344        // These are our own options
     45
    4446        if($instance['show']){
    4547           if( absint( $instance['show'] ) ){
    4648                $show = $instance['show'];
    47             }else{
    48                 $show=3;
    4949            }
    50         }else{
    51             $show = 3;     
    5250        }
     51
    5352        $site_url = get_site_url();
    5453        $dir      = dirname( plugin_basename( __FILE__ ) );
  • contus-video-gallery/tags/2.7/ContusVideoCategory.php

    r973338 r976447  
    3939        extract( $args, EXTR_SKIP );
    4040        $title = empty( $instance['title']) ? ' ' : apply_filters( 'widget_title', $instance['title'] );
     41        $show = 3;
    4142        ## WIDGET CODE GOES HERE
    4243        global $wpdb;
     
    4647            if( absint( $instance['show'] ) ) {
    4748                $show = $instance['show'];
    48             }else{
    49                 $show = 3;
    50             }
    51         }else{
    52             $show = 3;     
     49            }
    5350        }
    5451        ?>
  • contus-video-gallery/tags/2.7/front/models/videohome.php

    r974692 r976447  
    9999            $select = 'SELECT distinct w.vid,w.*,s.guid FROM ' . $wpdb->prefix . 'hdflvvideoshare w
    100100                    LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play m ON m.media_id = w.vid
    101                     LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_playlist p ON p.pid=m.playlist_id ON p.pid=m.playlist_id
     101                    LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_playlist p ON p.pid=m.playlist_id
    102102                    LEFT JOIN ' . $wpdb->prefix . 'posts s ON s.ID=w.slug
    103103                    WHERE w.vid="' . $vid . '" AND w.publish=1 AND p.is_publish=1 GROUP BY w.vid';
  • contus-video-gallery/tags/2.7/front/views/videoshortcode.php

    r974692 r976447  
    698698                // Show /hide video description.
    699699                if ($configXML->showTag) {
    700                     $output .= '<div style="clear: both;"></div><div class="video-page-desc">' . apply_filters('the_content', $description ) . '</div></div>';
     700                    $output .= '<div style="clear: both;"></div><div class="video-page-desc">' . apply_filters('the_content', $description ) . '</div>';
    701701                }
    702702               
    703                 $output .= '</div>';               
    704             } else {
    705                 // show / hide video description
    706                 if ($configXML->showTag) {
    707                     $output .= '<div style="clear:both;"></div><div class="video-page-desc">' . apply_filters('the_content', $fetched [0]->description ). '</div>';
    708                 }
    709             }
    710             $output .= '</div></div>';
     703                $output .= '</div></div>';             
     704            }
     705
    711706            // Enable/disable Related videos starts here
    712707            if ( ( ( $this->_post_type === 'videogallery' && $configXML->playlist == 1|| $this->_page_post_type === 'videogallery' && $configXML->playlist == 1) ) || (((isset ( $arguments ['playlistid'] ) && isset ( $arguments ['id'] )) || $player_color['show_related_video']== 1|| (isset ( $arguments ['playlistid'] ))) && (isset ( $arguments ['relatedvideos'] ) && $arguments ['relatedvideos'] == 'on'))) {
  • contus-video-gallery/tags/2.7/hdflvvideoshare.php

    r973804 r976447  
    684684        $progressControl      = add_column_if_not_exists( $errorMsg, "$table_settings", 'progressControl', 'INT( 3 ) NOT NULL DEFAULT 1' );
    685685        $imageDefault         = add_column_if_not_exists( $errorMsg, "$table_settings", 'imageDefault', 'INT( 3 ) NOT NULL' );
    686         $memeber_upload_enable =  add_column_if_not_exists( $errorMsg , "$table_setting" , 'memeber_upload_enable' , 'INT( 3 ) NOT NULL ');
    687686       
    688687        /**
  • contus-video-gallery/trunk/ContusFeatureVideos.php

    r974692 r976447  
    5353        extract ( $args, EXTR_SKIP );
    5454        $title = empty ( $instance ['title'] ) ? ' ' : apply_filters ( 'widget_title', $instance ['title'] );
     55        $show =3;
    5556        if (! empty ( $title ))
    5657            // WIDGET CODE GOES HERE
     
    6465            if( absint( $instance['show'] ) ){
    6566                $show = $instance ['show'];
    66             }else{
    67                 $show =3;   
    6867            }
    69         } else {
    70             $show = 3;
    7168        }
    7269           
  • contus-video-gallery/trunk/ContusRandomVideos.php

    r974692 r976447  
    6767        extract ( $args, EXTR_SKIP );
    6868        $title = empty ( $instance ['title'] ) ? ' ' : apply_filters ( 'widget_title', $instance ['title'] );
     69        $show = 3;
    6970        global $wpdb;
    7071        // These are our own options
     
    99100            if( absint( $instance['show'] ) ){
    100101                $show = $instance ['show'];
    101             }else{
    102                 $show = 3;
    103102            }
    104         }else{
    105                 $show = 3;
    106         }
     103        }
     104
    107105        $sql = 'SELECT DISTINCT a.*,s.guid,b.playlist_id,p.playlist_name FROM ' . $wpdb->prefix . 'hdflvvideoshare a
    108106                LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id
     
    111109                WHERE a.publish=1 AND p.is_publish=1 GROUP BY a.vid ORDER BY RAND() LIMIT ' . $show;
    112110        $posts = $wpdb->get_results ( $sql );
     111
    113112        if (! empty ( $posts )) {
    114113            $fetched = $posts [0]->playlist_name;
    115114        }
     115
    116116        $moreR = $wpdb->get_results ( 'SELECT count(a.vid) as contus from ' . $wpdb->prefix . 'hdflvvideoshare a
    117117                LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id
  • contus-video-gallery/trunk/ContusRecentVideos.php

    r974692 r976447  
    8181        $viewslang = __ ( 'Views', 'video_gallery' );
    8282        $viewlang = __ ( 'View', 'video_gallery' );
     83        $show = 3;
    8384        echo $before_widget;
    8485        $div = '<div id="recent-videos" class="sidebar-wrap "><h3 class="widget-title"><a href="' .$more_videos_link .'">' . $title . '</a></h3>';
     
    8788                $show = $instance['show'];
    8889            }
    89             $show = 3;
    90         } else {
    91             $show = 3;
    9290        }
     91
    9392        $sql = 'SELECT DISTINCT a.*,s.guid,b.playlist_id,p.playlist_name FROM ' . $wpdb->prefix . 'hdflvvideoshare a
    9493                LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id
  • contus-video-gallery/trunk/ContusRelatedVideos.php

    r974692 r976447  
    4040        extract( $args, EXTR_SKIP );
    4141        $title = empty( $instance['title'] ) ? ' ' : apply_filters( 'widget_title', $instance['title'] );
     42        $show = 3;
    4243        global $wpdb;
    4344        // These are our own options
     
    4546           if( absint( $instance['show'] ) ){
    4647                $show = $instance['show'];
    47             }else{
    48                 $show=3;
    4948            }
    50         }else{
    51             $show = 3;     
    5249        }
     50
    5351        $site_url = get_site_url();
    5452        $dir      = dirname( plugin_basename( __FILE__ ) );
  • contus-video-gallery/trunk/ContusVideoCategory.php

    r973338 r976447  
    3939        extract( $args, EXTR_SKIP );
    4040        $title = empty( $instance['title']) ? ' ' : apply_filters( 'widget_title', $instance['title'] );
     41        $show = 3;
    4142        ## WIDGET CODE GOES HERE
    4243        global $wpdb;
     
    4647            if( absint( $instance['show'] ) ) {
    4748                $show = $instance['show'];
    48             }else{
    49                 $show = 3;
    50             }
    51         }else{
    52             $show = 3;     
     49            }
    5350        }
    5451        ?>
  • contus-video-gallery/trunk/front/models/videohome.php

    r974692 r976447  
    9999            $select = 'SELECT distinct w.vid,w.*,s.guid FROM ' . $wpdb->prefix . 'hdflvvideoshare w
    100100                    LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play m ON m.media_id = w.vid
    101                     LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_playlist p ON p.pid=m.playlist_id ON p.pid=m.playlist_id
     101                    LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_playlist p ON p.pid=m.playlist_id
    102102                    LEFT JOIN ' . $wpdb->prefix . 'posts s ON s.ID=w.slug
    103103                    WHERE w.vid="' . $vid . '" AND w.publish=1 AND p.is_publish=1 GROUP BY w.vid';
  • contus-video-gallery/trunk/front/views/videoshortcode.php

    r974692 r976447  
    197197            }
    198198            // get Playlist detail
    199             $playlistData = $this->playlist_detail ($vid);
     199            $playlistData = $this->playlist_detail ($vid );
    200200            $incre = 0;
    201201            $playlistname = $windo = $htmlvideo = '';
     
    698698                // Show /hide video description.
    699699                if ($configXML->showTag) {
    700                     $output .= '<div style="clear: both;"></div><div class="video-page-desc">' . apply_filters('the_content', $description ) . '</div></div>';
     700                    $output .= '<div style="clear: both;"></div><div class="video-page-desc">' . apply_filters('the_content', $description ) . '</div>';
    701701                }
    702702               
    703                 $output .= '</div>';               
    704             } else {
    705                 // show / hide video description
    706                 if ($configXML->showTag) {
    707                     $output .= '<div style="clear:both;"></div><div class="video-page-desc">' . apply_filters('the_content', $fetched [0]->description ). '</div>';
    708                 }
    709             }
    710             $output .= '</div></div>';
     703                $output .= '</div></div>';             
     704            }
     705
    711706            // Enable/disable Related videos starts here
    712707            if ( ( ( $this->_post_type === 'videogallery' && $configXML->playlist == 1|| $this->_page_post_type === 'videogallery' && $configXML->playlist == 1) ) || (((isset ( $arguments ['playlistid'] ) && isset ( $arguments ['id'] )) || $player_color['show_related_video']== 1|| (isset ( $arguments ['playlistid'] ))) && (isset ( $arguments ['relatedvideos'] ) && $arguments ['relatedvideos'] == 'on'))) {
  • contus-video-gallery/trunk/hdflvvideoshare.php

    r973804 r976447  
    684684        $progressControl      = add_column_if_not_exists( $errorMsg, "$table_settings", 'progressControl', 'INT( 3 ) NOT NULL DEFAULT 1' );
    685685        $imageDefault         = add_column_if_not_exists( $errorMsg, "$table_settings", 'imageDefault', 'INT( 3 ) NOT NULL' );
    686         $memeber_upload_enable =  add_column_if_not_exists( $errorMsg , "$table_setting" , 'memeber_upload_enable' , 'INT( 3 ) NOT NULL ');
    687686       
    688687        /**
Note: See TracChangeset for help on using the changeset viewer.