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.

jomsocial api - display member profile infos in joomla module or article

10 years 2 weeks ago
Licenses:
JomSocial Expired

i want to display outsite from the jomsocial component some user information's, controlled bei userID. i have looked in your API docs - but i do not really get any useful information about that:
documentation.jomsocial.com/wiki/API_Events

as a sample of what i want to do: i have a team-member-site, the member infos (avatar image, username) are right now hardcoded. i want to extract this informations from jomsocial itself. like a membercard or something similar.

is there any way that i could do this with your API interface right now? to set the userIDs what i want and take the right userNAME and so on...

10 years 1 week ago
Licenses:

Hi,

here the doc:
documentation.jomsocial.com/wiki/Integrating_Your_Component

you can use that for template, module or a plugin. for module example you can have a look at hellome module or jomsocial members module.

Regards

10 years 1 week ago
Licenses:
JomSocial Expired

thx you for this info.

i have played around with this code examples. what i get is only the User Name from a custom userID.
i'am working with "Sourcerer" from nonumber in a custom module from joomla.
sample:

<?php
include_once JPATH_ROOT.'/components/com_community/libraries/core.php';
$user = CFactory::getUser( 70 );
$name = $user->getDisplayName();
echo 'User name: '.$name ;
?>

this code for the Thumbnail does not:
<?php
include_once JPATH_ROOT.'/components/com_community/libraries/core.php';
$user = CFactory::getUser( 70 );
$avatarUrl = $user->getThumbAvatar();
echo '<img src="'.$avatarUrl.'">';
?>

i have copy paste the code from your link, why is it running with the username but does not get the Avatarimage?

i'm running jomsocial 4.0.7 on joomla 3.4.1
php 5.5 / database 5.6

10 years 1 week ago
Licenses:

Hi,

I made a test with my test site. getThumbAvatar its works like expected. can you provide me FTP access detail or send me that module to This email address is being protected from spambots. You need JavaScript enabled to view it.

I need to have a look by my self. maybe some thing wrong there.

Regards

The following user(s) said Thank You: n00bster
10 years 1 week ago
Licenses:
JomSocial Expired

hi Albertus!

i updated the login details in the first post. maybe you could take a look.

10 years 1 week ago
Licenses:

Hi,

seem the issue with custom HTML module it self. as you can see the <br /> that you put at source not appear at frontend.
seem that HTML ignored by cutom HTML module. no problem with jomsocial code, as you can see I can echo avatar URL. so that avatar function give the correct value.

I suggest you to create new module instead using custom HTML module.

here the step how to create simple module:
docs.joomla.org/J3.x:Creating_a_simple_m...oping_a_Basic_Module

Regards

The following user(s) said Thank You: n00bster
10 years 1 week ago
Licenses:
JomSocial Expired

hi, thank you for your help!

i found the problem :D
to prevent the anwanted HTML cleaning i have to set the (zero) in the {source 0} tag from sourcerer!
{source 0}my code{/source}

now i could use the normal joomla custom module with sourcerer and can easily integrate JomSocial objects :)

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