Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Specific User Cover Photo

11 years 1 month ago
  • dave's Avatar
    Topic Author
  • dave
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

ISSUE SUMMARY:
Hi, so i know that

<?php
$cuser = CFactory::getUser();
$data = $cuser->getCover();
?>
<img src="<?php echo $data; ?>" />

Will fetch the logged in users cover photo BUT how do i retrieve the cover of the users profile being viewed, say i go on to my friends profile and i want to be able to see their cover photo on a specific place i have assigned in the code what is the PHP for that?

Thanks!

11 years 1 month ago
Licenses:

Hi Dave,

you need to put user ID

CFactory::getUser($user->id);

seem your jomsocial license has been expired, I only saw socialize license.

could you please make sure about it?

without active jomsocial license, we cant providing jomsocial support for you.

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW