WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: NextGEN Gallery] social media buttons

[Resolved] [Plugin: NextGEN Gallery] social media buttons

Viewing 9 replies - 1 through 9 (of 9 total)
  • AMBA
    Member

    @amba_13

    hi i’m agree with you and u can just comment the js file like i explain here :
    http://wordpress.org/support/topic/plugin-nextgen-gallery-facebook-is-watching-you-inside-the-nextgen-plugin

    kajal_sh
    Member

    @kajal_sh

    hi I need social media button in each individual image of the gallery. Could you please assist me how to do that.

    AMBA
    Member

    @amba_13

    sorry i explain how disable the social media button not how to use it 😉

    Hi Amba, thank you for your tip. I think to comment out the relevant lines is one way.

    I’ve done it by commenting out the following line in nggallery.php(109):

    // Adds scripts used for social media buttons
    // add_action('admin_init', array(&$this, 'enqueue_social_media_resources'));

    A much better way would be a switch in the backend implemented by Photocrati.

    @kajal_sh: This thread is to get rid of this f**k buttons (I mean facebook), but maybe you find here what you are looking for: http://www.bohemianalps.com/blog/2011/facebook-like-buttons-ngg/

    Rob3rt, I wanted to use the remove_action() function but don’t see the add_action(‘admin_init’ code in the latest version of NGG 1.9.11. Am I looking in the right place (/wp-content/plugins/nextgen-gallery/nggallery.php)? Or is that add_action no longer an option?

    Hi Zoinks,
    the new place in the latest version (1.9.12) is nextgen-gallery/admin/admin.php(273)
    you can disable it with commenting out the if block or replace the line with

    if (false){//preg_match("/ngg|nextgen-gallery/", $_GET['page'])) {

    To get rid of the twitter link you can remove the two include lines in social_media_buttons.php
    Before:

    <div id="ngg_social_media">
    	<?php include('twitter_follow_link.php'); ?>
    	<?php include('facebook_like_button.php'); ?>
    </div>

    After:

    <div id="ngg_social_media">
    </div>

    Thank, Rob3rt. Any way to do this that will survive NGG updates?

    If the updates does not concern the files you change then yes. Otherwise you need to redo the modification.

    If they change the files to much you need to wait for the next mod.

    Thanks, Rob3rt. That’s why I was asking. Alternate to changing the plug-in’s files, is there a hook that can be placed in my functions.php file that would remove that info?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] [Plugin: NextGEN Gallery] social media buttons’ is closed to new replies.