× Joomla Facebook Connect support forum

Topic-icon JFBCInvite 2.1 - Problem with Condensed view

Active Subscriptions:

None
14 years 10 months ago #1394 by bcagalj
Hi !
I am using the module in my right column. The Facebook Invite Layer opens up and gets cut off on the right edge.

I saw on the demo site that it works when the condensed module is on the left side. Is it possible to open the popup layer centered on the page ?

Greetings
The topic has been locked.
Support Specialist
14 years 10 months ago #1417 by alzander
There's no way to pop-up the diaglog in the center of the page. That whole view is an IFrame to Facebook, which means your actually embedding a portion of their content on your page. You don't have much say in what happens in there, and it's not actually 'happening' on your page.. it just looks that way.

For information on how to stop it from getting chopped off, please see this post:
<!-- m --><a class="postlink" href="www.cmsmarket.com/forum/index.php?f=38&t=311&rb_v=viewtopic">www.cmsmarket.com/forum/index.ph ... =viewtopic
The topic has been locked.
Support Specialist
14 years 10 months ago #1437 by alzander
Ah, I think you've found something. For some reason immediately after logging in, the auto-resizing does not work. If you log in, and then refresh the page, it does work. Please test on your site and see if you see the same results.

We'll investigate why it's failing on the first page after login. There's a lot of javascript on the page to get everything to work hunky-dory, and there must be some conflict. We'll keep you posted when we find something.

P.S. Going to use this thread going forward. The other thread with an almost identical discussion is confusing and the title on this one is better.
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #1482 by videomilitia
Where's the solution? I like this component but it doesn't seem to be functional in any Joomla site right now because the facebook invite is getting cut off! Is there not a way to add some code, so when a user hits the invite button, the facebook invite page popups in an iframe, lightbox or something. This is completely non-functional for my site at the moment. I'm using condensed view and have automatic resizing turned on. Firefox and Safari, most recent downloads of your software.
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #1489 by videomilitia
Could you at least write it as a JomSocial application so we can arrange it within the JomSocial hompage? This isn't ideal but it could be a temporary fix.
The topic has been locked.
Support Specialist
14 years 10 months ago #1502 by alzander
videomilitia:
We're working on a fix. We'd love it if you could answer our questions below to help us know that we're on the right track. If you log in, then refresh, does the automatic resizing work for you? If so, then that means there's just an issue with the 'first' time the module is shown. We don't want to release a fix to find out we've fixed the wrong problem.

Also, as described above, there's no way to pop the submit window out of the invite module. This is an iFrame, which means Facebook has full control of the looks.

Please let us know about the above on your site, and we'll have a release out as soon as we determine a solution. This is working around Facebook's implementation, which we're not terribly happy with either.
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #1505 by videomilitia
I can tell you guys are working with your hands tied due to Facebook's implementation. To answer your question the refresh does not fix the problem. I was thinking that it would make more sense for this module to be a replacement for the JomSocial Invite app, is that a possibility? This way it could be included in each user's wall and be shown with the full view. I like the idea of having it in the sidebar too, I just think the user experience is better if it was directly part of JomSocial.

I apologize for very limited PHP knowledge, but I'm just the idea guy, trying to build something from nothing all on my own. (with the help of components from dev like you).

Thanks.

<!-- w --><a class="postlink" href="www.videomilitia.com">www.videomilitia.com
The topic has been locked.
Support Specialist
14 years 10 months ago #1525 by alzander
As for putting the invite module (or any module) into your user's profile page, you can use the following code. Hopefully this helps overcome the issue. We have some mods to the javascript which we'll be getting out very shortly which may help the issue, but it seems that some people's sites operate differently, so it's not guaranteed it'd work for you. Hopefully, the below will do exactly what your looking for:

Lets say we're going to call our new module-position "jomsocialinvite". First, create a new module in the backend and assign it to this position (just type "jomsocialinvite" into the Position field). Then, add this code to your template file wherever you'd want the Invite module to appear. A possible file to add this to would be 'profile.header.php':
$module_position = "jomsocialinvite";
$attribs = array("style" => "rounded");
$subModules = &JModuleHelper&#58;&#58;getModules($module_position);
foreach($subModules as $subModule)
{
  JModuleHelper&#58;&#58;renderModule($subModule, $attribs);
  print $subModule->content;
}

You could then place as many standard Joomla modules in your profile as you want.
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #1544 by videomilitia
Thanks for that! I choose to add it to the friends.invite.php instead and deleted out all the JomSocial code. I guess technically this makes it a core hack rather than a JomSocial plugin but it will work for what I need. Thanks again.

Two last questions on a different note:

In the Invite Content option I wish there was the ability to format it more. Simple things like add bold and also the ability to add parenthesis because my invite message needs spicing up. Is this possible?

Also can we show names in the Full Form view? Or is this a Facebook limitation?
The topic has been locked.
Support Specialist
14 years 10 months ago #1556 by alzander
Unfortunately, they limit what you can and cannot do in their forms. I'm not sure if you've tried standard html tags in the Invite Content. It probably won't work, but is worth a try.

As for the options they allow, a more full list can be found below. We think we've exposed most of their options in an easy to use manner, but if you see something you'd like, let us know!
<!-- m --><a class="postlink" href="wiki.developers.facebook.com/index.php/Fb:multi-friend-selector">wiki.developers.facebook.com/ind ... d-selector
The topic has been locked.