apptha.com
https://www.apptha.com/forum/

Videomore playid code?
https://www.apptha.com/forum/viewtopic.php?f=27&t=1916
Page 1 of 1

Author:  sendsouth [ Mon Dec 16, 2013 5:23 am ]
Post subject:  Videomore playid code?

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

Author:  Alle [ Wed Dec 18, 2013 3:38 pm ]
Post subject:  Re: Videomore playid code?

+1 for that. Would like to see this feature.

Author:  Vidhya Lakshmi [ Mon Dec 23, 2013 11:18 am ]
Post subject:  Re: Videomore playid code?

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.

Author:  Alle [ Mon Dec 23, 2013 12:53 pm ]
Post subject:  Re: Videomore playid code?

So simple :) Thank you!

Author:  contusteam [ Mon Mar 10, 2014 11:49 am ]
Post subject:  Re: Videomore playid code?

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.

Author:  walikhan [ Tue May 27, 2014 12:32 am ]
Post subject:  Re: Videomore playid code?

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

Author:  Vidhya Lakshmi [ Wed May 28, 2014 11:26 am ]
Post subject:  Re: Videomore playid code?

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;

Author:  walikhan [ Sun Jun 01, 2014 2:04 am ]
Post subject:  Re: Videomore playid code?

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

Author:  dkangiel [ Mon Feb 10, 2020 4:13 pm ]
Post subject:  Re: Videomore playid code?

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?

Page 1 of 1 All times are UTC + 5:30 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/