• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Shuffle !

Started by megzz,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

megzzTopic starter

Hey
Does anyone knows how i can make a shuffle button for randomly shuffling between public videos ...

Regards
  •  

Marius P.

Very simple! shuffle.php

<?php require_once('load.php' );
$video = $db->get_row("SELECT id ,title from ".DB_PREFIX."videos where pub > 0 order by rand()");
if($video) {
redirect(video_url($video->id , $video->title));
}
?>
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

 

Similar topics (7)

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 43913

The problem of video viewing PHPVibe 5.0

Started by Nayn


Replies: 25
Views: 72801

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 54250

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

Started by spirog


Replies: 2
Views: 4737

insite ads issue when selecting above/below video player location

Started by georgepanaitescu


Replies: 3
Views: 25035

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

Started by spirog


Replies: 4
Views: 8065

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

Started by spirog


Replies: 3
Views: 7872