• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] How to display videos by upload date instead of ID?

Started by hamnawa,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hamnawaTopic starter

I was wondering if anyone could help me on how to display videos in Recent, Channels, Featured by Upload date instead of ID.

For example I have following:

Video ID:51   Title: My New Cat      Upload Date 2014-05-01
Video ID:50   Title: My last trip    Upload Date 2014-05-02


The script currently list them as:

My Last Trip (50)
My New Cat (51)


I need it to be displayed as below:

My New Cat (51)
My Last Trip (50)

  •  

PHPVibe A.

You will get the same videos if you change id with date.

The script lists them descending, from biggest id to lowest id, not the other way around.

You can open com/com_videolist.php and check for yourself.

ORDER BY ".DB_PREFIX."videos.id DESC


except in special cases like likes and views.

hamnawaTopic starter

Is it because Date field in database is Text? Will that work if I convert the date filed from text to date?
  •  

PHPVibe A.

Quote from: Alexander on
You will get the same videos if you change id with date.

I've already answered you on the date matter.
If you change the field structure some queries may fail.

 

Similar topics (7)

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 40046

insite ads issue when selecting above/below video player location

Started by georgepanaitescu


Replies: 3
Views: 22743

The problem of video viewing PHPVibe 5.0

Started by Nayn


Replies: 25
Views: 70927

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 51044

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

Started by spirog


Replies: 2
Views: 4439

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

Started by spirog


Replies: 3
Views: 5864

Like a video - unlinke a video - relike a video does not work

Started by spirog


Replies: 7
Views: 4807