• Welcome to PHPVIBE Forums. Please log in.

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

Started by PHPVibe A.,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PHPVibe A.Topic starter

The PHPVibe functions for user handling are located in lib/functions.user.php and are as follows:

Note: user refers to "current logged in user".

is_user() -> Returns if user is logged in
user_id() -> Returns the user's id
user_name() -> Returns the user's name
user_noty() -> Returns the user's last notify time (more accurate than last login)
my_profile() -> Returns url to user's profile
user_avatar() -> Returns the user's avatar
user_group() -> Returns the group the user is assigned to
is_admin() -> Returns if user is an admin
is_moderator() -> Returns if user is the moderator or admins group

This are the session values, there are some other useful functions for likes, history and others.

To pull this in your custom script/app, just include load.php (Beware: in most cases this is not that simple, since it will conflict with the custom app/script's functions if they share functions).

 

Similar topics (7)

The PHPVibe Archive is now public

Started by Marius P.


Replies: 0
Views: 22735

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 50697

[ Video Sharing CMS v4 ] PHPVibe "Video Blog" concept design

Started by Marius P.


Replies: 9
Views: 7416

[ Video Sharing CMS v4 ] Security warning! Apply the PHPVibe patch 22

Started by PHPVibe A.


Replies: 7
Views: 3933

[ Video Sharing CMS v4 ] PHPVibe Tester and Debugger

Started by PHPVibe A.


Replies: 0
Views: 6642

[ Video Sharing CMS v4 ] New theme for 4.x

Started by max18121980


Replies: 9
Views: 3333

[ Video Sharing CMS v4 ] 4 Question about skin / navbar / sidebar and remove powered by phpvibe

Started by gale77


Replies: 8
Views: 19461