Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • aijosh Friend
    #200812

    Hello.

    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 problem

    SEC7118: XMLHttpRequest for https://fbstatic-a.akamaihd.net/rsrc.php/v2/yU/r/F6Ke8YkdWm7.js required Cross Origin Resource Sharing (CORS).
    File: like.php

    Eragon H Friend
    #547389

    Hi 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 Friend
    #547673

    Share button showing everywhere (modules displaying article contents)

    Warning Information

    Other Messages


    1. share-button-everywhere
    2. warnings
    3. messages
    Eragon H Friend
    #547751

    Hi Aijosh,

    You can just disable the System – JA Social plugin:
    Extensions >> Plugin Manager >> System – JA Social >> Disable

    If the issue still persists, kindly share me your site URL and admin account by PM

    Best regads

    aijosh Friend
    #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 >> Disable

    If 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 modules

    Eragon H Friend
    #548231

    Hi 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 Friend
    #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: YES

    Thanh Nguyen Viet Friend
    #548837

    Hello,

    <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.php

    Find 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.php

    Find 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]

Viewing 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, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum