• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] user rank

Started by wetvibes,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wetvibesTopic starter

Based on this query:

$users = $cachedb->get_results("SELECT  @rownum := @rownum + 1 AS rownum,id,name,avatar,views FROM ".DB_PREFIX."users , (SELECT @rownum := 0) AS dummy order by views DESC ".this_limit());

can anybody make it a global function so we can rank users?

We can use $user->rownum as a ranking number but i dont know how to make it a global function.
  •  

PHPVibe A.

What are you trying to rank it by? You've complicated the question with that query.
You could rank by : number of profile views, activities, likes on videos, views on videos, etc.

wetvibesTopic starter

i wanna rank by profile views. but i wanna be able to display the rank number on the profile page also.
  •  

PHPVibe A.

This should be very easy, you have the profile views fields, already existing and printed in the profile.
Not sure what else you look for?

 

Similar topics (7)

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 45506

How to use the PHPVibe user system (internally or externally)

Started by PHPVibe A.


Replies: 0
Views: 11026

insite ads issue when selecting above/below video player location

Started by georgepanaitescu


Replies: 3
Views: 25917

The problem of video viewing PHPVibe 5.0

Started by Nayn


Replies: 25
Views: 73802

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 55546

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

Started by spirog


Replies: 2
Views: 4918

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

Started by spirog


Replies: 3
Views: 8767