how to get the userid of a profile being view by the logged - Joomla! Forum - community, help and support


what find way user id of profile being viewed logged in user when profile clicked on , viewed want id can insert button start chat conversation person who's profile being viewed. ideas of how this? know id in url of profile don't know how take url or there built in function can use it? can profile.
buck

to logged user_id:

code: select all

<?php
//add user id
$user_id = jfactory::getuser()->id;
?>


to parameter url:

code: select all

 $itemid = jrequest::getint('itemid');





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support