Henning222 wrote: For the profiles( I made a field that calles Facebook.
Can I have a php script to get the URL from the field? I need this for a plugin in JFBC (the message from alzander
suport wrote: Hi Henning,
Do you want to change the FB URL with FB like? you need hack the jomsocial template (profile.about.php) to achive this, and remember the like button only available for Facebook fan page, the regular user doesnt have like feature.
thank you!
Henning222 wrote: I dont want change the facebook url. i want read out the url because if it set to fanpage then JFBC will make a like Button in there profile- if the user dont set a fanpage url then happen nothing
suport wrote: Hi,
Do you know to get FB like code? if you wanna get FB URL from jomsocial itself you can use CUSer Object, here is the doc documentation.jomsocial.com/wiki/JomSocial_User_Object
thank you!
<?php
$cuser = CFactory::getUser();
$data = $cuser->getInfo('FIELD_XXXX');
echo "{SCFacebookLike href=" . $data . "}"; ?>
english wrote: Object has invalid values: The object under the URL os-vp.de/index.php/jomsocial/485-demo2/profile fromt art article is invalid. the taken value /components/com_community/assets/user-Male.png for the settings „og:image:url“ from art url not avilable to parse
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
