a blog about handmade code

Finding the user id on Phpfox 2.0+

Simple enough, i had to go through code to find it. I totally forgot about the api at http://www.phpfox.com/phpapi/Phpfox/Phpfox.html.

$iUserId = Phpfox::getUserBy('user_id');
//OR
$iUserId = Phpfox::getUserId();
//OR check if its a user
Phpfox::isUser(true);
//finding user group id
Phpfox::getUserBy('user_group_id')
Features Used: 
  • phpfox 2.0
Tags: 

Add new comment

©2012 Tranzic Media / Portfolio of Vasna Sdoeung