• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Pagination

Started by SonicSync,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SonicSyncTopic starter

How to add pagination to the script and remove the auto load of more videos on scroll in Browse, Most Viewed etc?
  •  

PHPVibe A.


SonicSyncTopic starter

Hi Alex,

I tried that, it works for Channels, but wont work for Browse and other functions fetching from com_videolist.php.

I need a working code like this:

//Count
$count = $cachedb->get_row("Select count(*) as nr from ".DB_PREFIX."videos where category in (select cat_id from ".DB_PREFIX."channels where cat_id='".$id ."' or child_of = '".$id ."')");


Above worked for channels, need something like that for the com_videolist.php.

regards
  •  

SonicSyncTopic starter

nevermind got it, here is the code, add this code to the com_videolist.php:

//Count
$count = $cachedb->get_row("Select count(*) as nr from ".DB_PREFIX."videos where pub > 0 ");


  •  

PHPVibe A.

$count information should be sent from the component, as it's not a global count.

fourdeltaOne

#5
may suggest? how to hide blocks on the next page?

example:  originally displayed in the category
top video views in this section and then recently added videos.

how to make the transition to the next page last added video did not show hide top video views!

hide blocks in the next page pagination.

roughly tried this method  :)

if(pagination){
TOP VIDEOS VIEWS (block)
Recent Uploads Video (block)
} else {
Recent Uploads Video (block)
}


not turned!  please help!  :'(





Skype: epic.mediauz
  •  

PHPVibe A.

I don't understand at all what you need.

fourdeltaOne

I'm sorry it's hard to explain because I do not know English and translate through Google  :'(

overall I remade the channel latest videos.

1) disable infinite scrolling and  pagination included
2) in each category display the most viewed video on this category!

Question! . I need to hide the most viewed video in the transition to the next page!


site.com/channel/movie-trailers/6/ - front page

Quoteis displayed in the category
1) top most viewed video
2) latest videos

site.com/channel/movie-trailers/6/&p=2 - the second page, and so on

Quoteis displayed in the category
1) top most viewed video - in the following pages, hidden
2) latest videos
Skype: epic.mediauz
  •  

PHPVibe A.

If(this_page() <> 1) {
//No longer on first page
}


This?

fourdeltaOne

Skype: epic.mediauz
  •  

 

Similar topics (7)

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 35979

The problem of video viewing PHPVibe 5.0

Started by Nayn


Replies: 25
Views: 63456

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 43680

when slecting to unpublish music mp3 - next page says unpublished video ?

Started by spirog


Replies: 2
Views: 3756

insite ads issue when selecting above/below video player location

Started by georgepanaitescu


Replies: 3
Views: 19241

Video that I've uploaded needs to have that value in admin to upload

Started by spirog


Replies: 4
Views: 2885

video,playlist,images, etc. (frontend) select all deselect all reselect all

Started by spirog


Replies: 3
Views: 3100