Topic-icon Sum up what I need :/

Active Subscriptions:

None
7 years 9 months ago - 7 years 9 months ago #58795 by Henning222
Replied by Henning222 on topic Sum up what I need :/
Oh I am realy sad about number 1. I think the most who want share, will do it after they posting something and exactly then it buggs. Maybe you can try it one time more... Maybe not only with facebook Button and more like this:
File Attachment:

The bug is very annoying:
File Attachment:

But thank you that you help me so much :)
Last edit: 7 years 9 months ago by Henning222.
The topic has been locked.
Support Specialist
7 years 9 months ago #58798 by mel
Replied by mel on topic Sum up what I need :/
I made some changes to how I'm inserting the Share button on your page for the post. Instead of requiring Facebook's library to parse it, I'm directly putting in the iframe code. It seems as if caching or something else is enabled on your site now, so please test the new change and let me know if you are still having problems. You should be able to post now and have the share button show up automatically. I tested this on my local test site so let me know if it's successful for you now.

For reference, here's the new code snippet I am using in the actions.php file now:
<!-- JFBCShare -->
        <?php
        if ($config->get('usejfbc')) {
            if (class_exists('JFBCFactory')) {
                $link = CRoute::getExternalURL('index.php?option=com_community&view=profile&userid='.$act->actor.'&actid='.$act->id);
                $fbClient = JFBCFactory::provider('facebook');
                $fbAppId = JFBCFactory::provider('facebook')->appId;
                echo '<iframe src="https://www.facebook.com/plugins/share_button.php?href='.$link.'&layout=button_count&size=small&mobile_iframe=true&appId='.$fbAppId.'&width=81&height=20" width="81" height="20" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>';
            }
        }

-Melissa
The topic has been locked.
Active Subscriptions:

None
7 years 9 months ago #58800 by Henning222
Replied by Henning222 on topic Sum up what I need :/
I cant post something on my activity stream since your change. If i post something it dont will display ( not in profile / not in stream)
The topic has been locked.
Support Specialist
7 years 9 months ago - 7 years 9 months ago #58801 by mel
Replied by mel on topic Sum up what I need :/
I've just taken out all of the code changes that I've made to the posts and the profile view. The problem still exists. This would indicate that the problem is not from the new code that I have added. Have you made any changes in your backend since yesterday or installed any new extensions/plugins.

Also as another test, I disabled all JFBConnect plugins and was still unable to post. This is further evidence that JFBConnect is not involved, as the new code is gone and none of our extensions/plugins are executing.

The new code is still out. When you narrow down any changes that you've made and are able to post again, I can put it back in.
Last edit: 7 years 9 months ago by mel.
The topic has been locked.
Support Specialist
7 years 9 months ago #58817 by mel
Replied by mel on topic Sum up what I need :/
I checked back to look at your site again and am able to post again now. So I copied the new code for stream/actions.php and profile/focus.php to your template override in the templates directory. You should be able to see the Share button now immediately on posting and afterwards.

-Melissa
The topic has been locked.