It is currently Thu Mar 23, 2017 3:31 am

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Show latest video
PostPosted: Tue Jul 01, 2014 2:19 am 

Joined :
Tue Jul 01, 2014 2:16 am

Posts : 1
How to show latest video in this box.

http://imagizer.imageshack.us/v2/640x480q90/855/0h1m.png


Report this post
Top
 Profile  
 
 Post subject: Re: Show latest video
PostPosted: Tue Jul 01, 2014 12:04 pm 
Apptha Team

Joined :
Tue May 07, 2013 3:09 pm

Responses Posted : 316
Hi,

If you want to play recent videos then open ../wp-content/plugins/contus-video-gallery/myextractXML.php file and find the code $singleVideodata = $pageOBJ->_featuredvideodata; and replace with the following code.


$thumImageorder = 'w.vid DESC';
$where = '';
$singleVideodata = $contOBJ->home_playxmldata ( $getVid, $thumImageorder, $where, $numberofvideos );


Report this post
Top
 Profile  
 
 Post subject: Re: Show latest video
PostPosted: Wed Jul 02, 2014 9:22 pm 

Joined :
Wed Jul 02, 2014 9:19 pm

Posts : 1
Doesn't work. Say "no videos in this category".

I replace this $singleVideodata = $pageOBJ->_featuredvideodata; ## Get detail of featured videos

to:


$thumImageorder = 'w.vid DESC';
$where = '';
$singleVideodata = $contOBJ->home_playxmldata ( $getVid, $thumImageorder, $where, $numberofvideos );


Report this post
Top
 Profile  
 
 Post subject: Re: Show latest video
PostPosted: Thu Jul 03, 2014 9:37 am 
Apptha Team

Joined :
Tue May 07, 2013 3:09 pm

Responses Posted : 316
Hi,

To show the latest video in the home page player, go to file path ../wp-content/plugins/contus-video-gallery/front/models/videohome.php

In this file finds the function get_featuredvideodata() and find the below query

$query = "SELECT distinct w.*,s.guid FROM " . $this->_videoinfotable . " w
INNER JOIN " . $this->_wpdb->prefix . "hdflvvideoshare_med2play m ON m.media_id = w.vid
INNER JOIN " . $this->_wpdb->prefix . "hdflvvideoshare_playlist p ON p.pid=m.playlist_id
INNER JOIN " . $this->_wpdb->prefix . "posts s ON s.ID=w.slug
WHERE featured='1' AND publish='1' AND p.is_publish='1' GROUP BY w.vid ORDER BY ordering ASC";


and replace with the below query


$query = "SELECT distinct w.*,s.guid FROM " . $this->_videoinfotable . " w
INNER JOIN " . $this->_wpdb->prefix . "hdflvvideoshare_med2play m ON m.media_id = w.vid
INNER JOIN " . $this->_wpdb->prefix . "hdflvvideoshare_playlist p ON p.pid=m.playlist_id
INNER JOIN " . $this->_wpdb->prefix . "posts s ON s.ID=w.slug
WHERE publish='1' AND p.is_publish='1' GROUP BY w.vid ORDER BY w.vid DESC";


Report this post
Top
 Profile  
 
 Post subject: Re: Show latest video
PostPosted: Thu Oct 30, 2014 2:33 am 

Joined :
Thu Oct 30, 2014 2:29 am

Posts : 0
Hi,

How do you apply this fix to the video module that corresponds to [hdvideo playlistid=x]? When I use this shortcode, I see the playlist for a category play the oldest to newest videos. I would like to play the newest to oldest.

Thanks in advance.

-Jorge


Report this post
Top
 Profile  
 
 Post subject: Re: Show latest video
PostPosted: Mon Nov 03, 2014 11:00 am 
Apptha Team

Joined :
Tue May 07, 2013 3:09 pm

Responses Posted : 316
Hi,

If you use the recent to old videos concept in this playlist and when you play the recently added video you will face this looping ( Example , If you are having 4 videos in one category and if the player is playing 4th video, it will display other recent videos ( 3, 2, 1 etc ). Now when 3rd video is playing, it will display other recent videos (4,2,1 ) and the same process will continue while playing the playlist auto play. So, it is not possible to play the recent to old videos in video detail page.


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: