× Joomla Facebook Connect support forum

Topic-icon Show content only for Facebook-logged-in users

Active Subscriptions:

None
14 years 9 months ago #13116 by getimo
Hi,

at first I noticed that there's no module to show only the facepile without the like button isn't it?

Ok, here's my real questions: I added a facepile to my page with the fbml tag.
If the user isn't logged into facebook there's a whitespace. How can I define that the facepile is only shown to users who are logged into facebook?
I know that this is not really a jfbc question but I don't know where to ask else. Thank you in advance for any help!

Thomas
The topic has been locked.
Support Specialist
14 years 9 months ago #13119 by alzander
The JFBCFriends module is what you're looking for. It implements the Facepile widget. Also, there's a parameter for text to display when a user isn't logged into Facebook. Should be exactly what you need :)

If not, or you need anything else, just let us know!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 9 months ago #13131 by getimo
Hello Alex,

thank you for the fast response and the good support. My goal is to include the module into my jReviews detail pages: kesselfieber.de/stuttgart/clubs/102-rocker-33

This listing has 29 likes. I'd like to show next to the headline the pictures from facebook friends with your module. BUT: I need always the current url. In this case it would be: kesselfieber.de/stuttgart/clubs/102-rocker-33

So my suggestions is to make the module pull the current url if no url is provided in the module settings. Plus: The module shouldn't be show at all if you're not logged in into facebook.

Thanks in advance for any suggestions.

getimo
The topic has been locked.
Support Specialist
14 years 9 months ago #13174 by alzander
The JFBCFan module and Tag will show friends that have connected to your site through Facebook if a URL is not specified. I can see where using the current page would be a good default too, and we can look into adding that as an option in the future as well.

However, for now, if you're using the JFBCFan module, the changes to do what you're looking for should be pretty easy. Both are in the /modules/mod_jfbcfriends/tmpl/default.php file. At the top, you'll see an if block that checks if $fbUserId == null. This is where we see if a Facebook user is logged in. Simply put // before the echo statement after that. It will essentially make the module output nothing if no user is logged in. However, if you have a title for the module, that will still display. There's nothing we can do about that, as that's how Joomla works.

Then, down on line 22, you'll see where we set the URL parameter. Simply update that line to:
$url = JURI::current();
That will use the current URL.

Finally, regarding our support, no problem for the quick responses, it's what we do. Thank you for your subscription! Also, please consider leaving a rating and review on the Joomla Extension Directory for JFBConnect, or our support:
extensions.joomla.org/extensions/social-...ook-integration/7215

Hope that helps, but if you need anything else, just let us know.
Alex
The topic has been locked.
Support Specialist
14 years 9 months ago #13175 by alzander
Oh yeah, if you're using the {JFBCFriends} tag, just let us know, and we can provide some code changes for that too :D
The topic has been locked.