• Hi,

    I wanted to create 3 pages of videos in same model but in different categories.
    i used this shortcodes to do that.
    [hdvideo playlistid=15][categoryvideothumb type=category id=7][categoryvideothumb type=category id=9][categoryvideothumb type=category id=19][categoryvideothumb type=category id=12][videosec type=category id=7 rows=2 cols=4]

    i want to give more links after 8 videos of each category and link to more page with set of that category videos .
    is there any specific shortcode for categories other than this.
    please help me to sort out this. i read lots of forum questions but can not find the exact answer for this.

    https://www.ads-software.com/plugins/contus-video-gallery/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Kalpani R

    (@askaranabahu)

    [categoryvideothumb type=category id=7]

    this shortcode give 1,2,3 page links not “more videos” link

    Hi,

    1) Open \wp-content\plugins\contus-video-gallery\front\views\videomore.php and find function video_more_pages($type) and replace with function video_more_pages($type,$arguments). Now find the below code in the same file at line number around 345

    if ($page_links) {
    						$div .= '<div class="tablenav"><div class="tablenav-pages" >' . $page_links . '</div></div>';
    					}

    and repace with the below code.

    if($typename == __ ( 'Category', 'video_gallery' ) && !empty($arguments)){
    					$playlist_url = get_playlist_permalink( $this->_mPageid, $this->_playid, $fetched_pslug [$videolist-1] );
    					$div .= '<div class="tablenav"><div class="tablenav-pages" ><a href="' . $playlist_url . '" title="'.$fetched [$videolist-1].'">'.$fetched [$videolist-1].'</a></div></div>';
    				} else {
    					if ($page_links) {
    						$div .= '<div class="tablenav"><div class="tablenav-pages" >' . $page_links . '</div></div>';
    					}
    				}

    2) Open \wp-content\plugins\contus-video-gallery\hdflvvideoshare.php file and find $videoOBJ->video_more_pages($more); and replace with the following code $videoOBJ->video_more_pages($more,$arguments);.

    3) Finally, find $videoOBJ->video_more_pages( $more ); in the same file around line number 1079 and replace with the following code $videoOBJ->video_more_pages( $more,$arguments=array() ); and check.

    If you are finding any difficulties in this, feel free to contact the support team at [email protected]

    Thread Starter Kalpani R

    (@askaranabahu)

    I have done that and i could sort out the problems. I have another 2 more question on this.

    i have 3 types of pages of this.

    can i have “more. ” word instead of the category name in after 8 videos.

    next most important thing is, i have set to show 10 rows in more page from the backend. but it shows only 2 rows. how can i set that as 10 or more rows.

    Hi,

    Yes, you can change the category name to “View More” link by following below step.

    1. Open \wp-content\plugins\contus-video-gallery\front\views\videomore.php and find the below code.

    $div .= '<div class="tablenav"><div class="tablenav-pages" ><a href="' . $playlist_url . '" title="'.$fetched [$videolist-1].'">'.$fetched [$videolist-1].'</a></div></div>';

    and replace with the following code.

    $div .= '<div class="tablenav"><div class="tablenav-pages" ><a href="' . $playlist_url . '" title="'.$fetched [$videolist-1].'">More Videos</a></div></div>';

    2. To change the row setting, change row/column of category and check. Not More page setting.

    Thread Starter Kalpani R

    (@askaranabahu)

    hi ,

    i just wanted to change the number of rows in more page. when i change category number of rows it change the main page category number of rows too,

    my requirement is,

    show 2 rows in main page.
    after click on the more link more page open with 10 rows

    how can i do this.

    Hi,

    Please go to admin -> Video Gallery -> Settings ->Here you can change the Rows for category page and more page as well.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how to show selected categories in main page and more link to rest of videos’ is closed to new replies.