-
AuthorPosts
-
aijosh Friend
aijosh
- Join date:
- February 2014
- Posts:
- 130
- Downloads:
- 182
- Uploads:
- 24
- Thanks:
- 7
- Thanked:
- 2 times in 1 posts
August 26, 2014 at 3:11 pm #200812Hello.
How do I prevent the social links from displaying on the mod_articles_news on my website.
I have a lot of modules on the pages of my website and just displays on all of the modules.>:(I want the share buttons to display on only the article and not on modules.
PS: I also get all these funny errors when I inspect using the IE11 developer tools debug console
Invalid App Id: Must be a number or numeric string representing the application id. ( even though there is a working Id already inserted)
FB.getLoginStatus() called before calling FB.init().
FB.init has already been called – this could indicate a problemSEC7118: XMLHttpRequest for https://fbstatic-a.akamaihd.net/rsrc.php/v2/yU/r/F6Ke8YkdWm7.js required Cross Origin Resource Sharing (CORS).
File: like.phpEragon H FriendEragon H
- Join date:
- July 2014
- Posts:
- 468
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 5
- Thanked:
- 156 times in 149 posts
August 27, 2014 at 4:34 am #547389Hi aijosh,
Can you share me your site url and admin account, I can have a look on your site. Also, screenshots would be nice for me to understand your concern.
Best regards
aijosh Friendaijosh
- Join date:
- February 2014
- Posts:
- 130
- Downloads:
- 182
- Uploads:
- 24
- Thanks:
- 7
- Thanked:
- 2 times in 1 posts
August 29, 2014 at 1:21 pm #547673Share button showing everywhere (modules displaying article contents)
Warning Information
Other Messages
- Eragon H Friend
Eragon H
- Join date:
- July 2014
- Posts:
- 468
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 5
- Thanked:
- 156 times in 149 posts
August 31, 2014 at 8:56 am #547751Hi Aijosh,
You can just disable the System – JA Social plugin:
Extensions >> Plugin Manager >> System – JA Social >> DisableIf the issue still persists, kindly share me your site URL and admin account by PM
Best regads
aijosh Friendaijosh
- Join date:
- February 2014
- Posts:
- 130
- Downloads:
- 182
- Uploads:
- 24
- Thanks:
- 7
- Thanked:
- 2 times in 1 posts
September 3, 2014 at 2:57 pm #548160<em>@Eragon H 443569 wrote:</em><blockquote>Hi Aijosh,
You can just disable the System – JA Social plugin:
Extensions >> Plugin Manager >> System – JA Social >> DisableIf the issue still persists, kindly share me your site URL and admin account by PM
Best regads</blockquote>
Thanks for your response.
I can’t just disable the plugin. I am making use of it. I need it to share individual articles.
What I just want is that the share button should appear only in the article and not on the modules.
I’m guessing this behavior is from some programming issues with the plugin. One of your developers should simple modify the plugin code to resolve the issue.
Maybe add the option to show on modules: Yes/No
Or
Just tell me what to hack in the plugin to stop it from attaching to modulesEragon H FriendEragon H
- Join date:
- July 2014
- Posts:
- 468
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 5
- Thanked:
- 156 times in 149 posts
September 4, 2014 at 4:48 am #548231Hi aijosh,
By default, the JA Social plugin just show share button in selected article category (see the document http://www.joomlart.com/documentation/joomla-plugins/ja-social-plugin)
Trying to update to the latest version is also a option 🙂
It would be easier that you can share your site URL and admin account, so I can have a closer look.
Best regards
aijosh Friendaijosh
- Join date:
- February 2014
- Posts:
- 130
- Downloads:
- 182
- Uploads:
- 24
- Thanks:
- 7
- Thanked:
- 2 times in 1 posts
September 4, 2014 at 2:24 pm #548301.1 I know what the plugin does
.2 What latest version? It was last updated last year…>:(Can you please read my question again. It doesn’t have anything to do with admin access to my website.
Share Button on Modules: NO
Share Button on Articles: YESThanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
September 9, 2014 at 10:13 am #548837Hello,
<blockquote>I want the share buttons to display on only the article and not on modules.</blockquote>
Since Joomla use same context for modules and articles so we could not detect where plugin is working in, so in this case, it require some customization in code as solution below:
– Open the file:
modules/mod_articles_news/helper.phpFind the code snippets as below:
[PHP]$results = $app->triggerEvent(‘onContentAfterDisplay’, array(‘com_content.article’, &$item, &$params, 1));[/PHP]
[PHP]$results = $app->triggerEvent(‘onContentBeforeDisplay’, array(‘com_content.article’, &$item, &$params, 1));[/PHP]on code snippet above, the ‘com_content.article’ text is the context, it is used to specify where plugin is triggered on. Please replace com_content with module name.
E.g: ‘mod_articles_news.article’If you use another module, you might find similar code in module’s code files, please apply the same update for them.
Once done, open the file:
plugins/system/jasocial/jasocial.phpFind the code snippet:
[PHP]function onArticles($context, &$article, &$params, $page = 0)
{[/PHP]And add this below code after it:
[PHP]if(strpos($context, ‘com_content’) === false) {
return;
}[/PHP]AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 3 voices, and was last updated by Thanh Nguyen Viet 10 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum