It is currently Mon May 25, 2020 12:42 pm

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Videomore playid code?
PostPosted: Mon Dec 16, 2013 5:23 am 

Joined :
Sun Oct 13, 2013 9:48 am

Posts : 5
Hello,

I want to create a specific page with the content that would normally appear with this link..
http://website.com/video-more/?playid=7

I need it to be an actual page in my pages list.

Is there some code I can place in a page that will produce the same thing?

Thanks

Jamie


Report this post
Top
 Profile  
 
PostPosted: Wed Dec 18, 2013 3:38 pm 

Joined :
Wed Dec 18, 2013 3:35 pm

Posts : 6
+1 for that. Would like to see this feature.


Report this post
Top
 Profile  
 
PostPosted: Mon Dec 23, 2013 11:18 am 
Apptha Team

Joined :
Tue May 07, 2013 3:09 pm

Responses Posted : 316
Hi,

To create a specific page for particular category, kindly follow the below steps.

Steps:

1) Go to your admin -> menu -> create new menu.

2) In menu pages, find the tab "Links". In this tab, give input for "URL" as "the category which you want to show".
Eg: http://website.com/video-more/?playid=7
and give input for "Link Text" as "your link name".

3) After that, add this link to the menu which you have created previously and save the menu.

4) Now, go to Admin -> Appearance -> Widgets. In this find the "Custom Menu" widget. Kindly Drag and drop the custom menu widget into your widget positions, where you need to show your category link.

5) In this custom menu widget, select the menu which you have created previously and save it.

After that, check your site and the link will be shown in your site. Regarding this, kindly refer the below sample video link for your reference.

Video Link:
http://screencast.com/t/3cQ0IzHiaN



Thanks & Regards,
Vidhya S,
Apptha Team.


Report this post
Top
 Profile  
 
PostPosted: Mon Dec 23, 2013 12:53 pm 

Joined :
Wed Dec 18, 2013 3:35 pm

Posts : 6
So simple :) Thank you!


Report this post
Top
 Profile  
 
PostPosted: Mon Mar 10, 2014 11:49 am 
Apptha Team

Joined :
Thu Aug 25, 2011 2:32 pm

Responses Posted : 203
Hi,

To create shortcode to display particular category videos in your page, please follow the below steps.

1) Open \wp-content\plugins\contus-video-gallery\hdflvvideoshare.php and find

Quote:
function videogallery_pagereplace($pageContent)


and add the below code before

Quote:
return $pageContent;


Code:
$pageContent = preg_replace_callback('/\[videosec ([^]]*)\o]/i', 'video_moreidreplace', $pageContent);


2) Now add the following code after
Quote:
add_shortcode('hdvideo', 'video_shortcodeplace');


Code:
function video_moreidreplace($arguments = array()) {
    global $frontControllerPath, $frontModelPath, $frontViewPath, $wp_query;
   
    $playid = $arguments['id'];
    $wp_query->query_vars["playid"] = $playid;

    include_once ($frontControllerPath . 'videomoreController.php');
    $videoOBJ = new ContusMoreView();

    if (!empty($playid)){
        $more = 'cat';
    }   
    $contentvideoPlayer = $videoOBJ->video_more_pages($more);
    return $contentvideoPlayer;
}
add_shortcode('videosec', 'video_moreidreplace');


3) Finally, insert the below mentioned shortcode to display the particular category videos in your page.

Code:
[videosec type=category id=27]


*Note : 27 - is the Category ID.


Regards,
Karthikeyani S,
Apptha Team.


Report this post
Top
 Profile  
 
PostPosted: Tue May 27, 2014 12:32 am 

Joined :
Sat May 24, 2014 1:57 pm

Posts : 1
Thnx you so much i This iz what i am searching for :) <3

and one thing more plx in this Old videos showing in 1st and latest in that end of page plx share the code of that latest video show at 1st and old at last thnx


Report this post
Top
 Profile  
 
PostPosted: Wed May 28, 2014 11:26 am 
Apptha Team

Joined :
Tue May 07, 2013 3:09 pm

Responses Posted : 316
Hi,

The below steps are used to show video thumbs from recent to old order in category short code pages.

1) Go to below file path.
Path: ../wp-content/plugins/contus-video-gallery/front/models/videomore.php

In this file find the function home_catthumbdata and the below query

$query = "SELECT s.guid,w.*,p.playlist_name,p.playlist_slugname FROM " . $wpdb->prefix . "hdflvvideoshare as w
INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_med2play as m ON m.media_id = w.vid
INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist as p on m.playlist_id = p.pid
INNER JOIN " . $wpdb->prefix . "posts s ON s.ID=w.slug
WHERE w.publish='1' AND p.is_publish='1' AND m.playlist_id=" . intval($thumImageorder) . "
GROUP BY w.vid ORDER BY w.ordering asc LIMIT ".$offset.','.$dataLimit;


and replace with the below query

$query = "SELECT s.guid,w.*,p.playlist_name,p.playlist_slugname FROM " . $wpdb->prefix . "hdflvvideoshare as w
INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_med2play as m ON m.media_id = w.vid
INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist as p on m.playlist_id = p.pid
INNER JOIN " . $wpdb->prefix . "posts s ON s.ID=w.slug
WHERE w.publish='1' AND p.is_publish='1' AND m.playlist_id=" . intval($thumImageorder) . "
GROUP BY w.vid ORDER BY w.vid DESC LIMIT ".$offset.','.$dataLimit;


Report this post
Top
 Profile  
 
PostPosted: Sun Jun 01, 2014 2:04 am 

Joined :
Sat May 24, 2014 1:57 pm

Posts : 1
Ooh my DEAR ur owsum <3 love it <3 such a gr8 player i got thnx you So much i will get this play soon as posible
:D


Report this post
Top
 Profile  
 
PostPosted: Mon Feb 10, 2020 4:13 pm 

Joined :
Mon Feb 10, 2020 3:59 pm

Posts : 0
I can't find "videogallery_pagereplace($pageContent)"
in my \wp-content\plugins\contus-video-gallery\hdflvvideoshare.php

there is a
videogallery_pagereplace
_register
_admin_init
_cssjs()
_jcar_js_css
_admin_notices()
_addpages()
_menu()

but no "_pagereplace" can you help?


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

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 4 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:  
cron