Topic-icon Tweet button missing & exclude modules

Active Subscriptions:

None
10 years 9 months ago #34020 by sannen1984
Hi there,

The tweet button won't appear in the likebox. I can see code in the page source but the button wont shop up.

Another question: How can I exclude the plugin from modules. I have diffrent newsflash modules activated on my site, but after all atricles in the module the likebox and comments show up. I would like to hide them.

Greetings
Sanne Nijenhuis
www.hiphopgemeenschap.nl
The topic has been locked.
Support Specialist
10 years 9 months ago #34030 by alzander
On your article pages, I'm seeing the Twitter button. Can you explain where you're not seeing it?

As for the social buttons showing up in the module output, can you try making the following change to your code to see if it properly prevents them from appearing there. To do so, edit the /plugins/content/jfbccontent/jfbccontent.php file. Around line 18, you'll see:
$app = JFactory::getApplication();
        if ($app->isAdmin())
        {
            return;
        }
Modify that and add the block shown below to the end:
$app = JFactory::getApplication();
        if ($app->isAdmin())
        {
            return;
        }

        // check to only see if we're inside com_content, and not inside modules
        if (!$params->exists('article_layout'))
            return;
Let us know how that goes. We're working on a bug-fix release for next week. We'll be testing this change, but would love to have real-world feedback before include it in a release that's so soon.

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

None
10 years 9 months ago #34041 by sannen1984
Hi there,

I was at my work and working with an old IE browser, so I think the missing twitter button has something to do with that. At home it works well!

Theadded code was a solution for the module problem. My first impressions are great. It's working like a charm.

Thanks for the fast support. It's a great component!

Greetings
The topic has been locked.
Support Specialist
10 years 9 months ago #34045 by alzander
Glad to hear that code snippet worked for you. We'll be doing some more testing and may include this change in the bug-fix release due out next week. If we aren't confident in it, we won't include it and you'll have to re-add that code if you upgrade for now.

Should you run into anything else, or need more help, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

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

None
10 years 9 months ago #34057 by sannen1984
Hi there,

Will do vote. The support is great.

The fix did the trick, but got me into another problem.
When I change the code the TAGS component form Joomla 3 won't work anymore. I'll get a blank page.

Any suggestions?
The topic has been locked.
Support Specialist
10 years 9 months ago #34067 by alzander

When I change the code the TAGS component form Joomla 3 won't work anymore. I'll get a blank page.

What tags component? Are you saying the built-in tags feature in Joomla 3.1? Also, what page is blank? Is it an admin page, a front-end page, or somewhere else? If you can provide the URL that would help (even if it's just a relative path without your domain) so we can test and see what may be happening.

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

None
10 years 9 months ago #34072 by sannen1984
I'm sorry I wasnt clear.
Yes I meant the new tag feature from joomla 3. It happens when I press on a tag wherever on the website ( category list/blog frontpage/article)

When I change the code back you posted before the problem is gone.

www.hiphopgemeenschap.nl/
The topic has been locked.
Support Specialist
10 years 9 months ago #34077 by alzander
Wow, great catch! We haven't done enough testing with tags yet. It's a great new feature, but not something that we can easily add the social buttons to yet. If you can update the jfbccontent.php file so it looks like below, it should fix you right up:
$app = JFactory::getApplication();
        if ($app->isAdmin())
        {
            return;
        }

        // Check to only see if we're inside com_content, not tags (or anywhere else)
        if (strpos($context, 'com_content') !== 0)
            return;
        // Make sure we're showing the article from the component, not from a module
        if (!$params || (get_class($params) == 'JRegistry' && !$params->exists('article_layout')))
            return;

        //Get Social RenderKey
Thanks for telling us about this. We are testing this change with the 5.0.1 release expected out next week. Currently, it's anticipated to make it into that release, but we'd really like to hear your confirmation that the above fixed it for you and things work as expected elsewhere.

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

None
10 years 9 months ago #34084 by sannen1984
Another great fix. Tnx!
The topic has been locked.
Support Specialist
10 years 9 months ago #34090 by alzander
Awesome. Glad to hear that got it going for you and thanks for all the feedback. Again, this is planned for the release next week, so you shouldn't have to worry about this when you upgrade.

If you need anything else, just let us know. And again, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.