WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[resolved] social media buttons (10 posts)

  1. Rob3rt
    Member
    Posted 2 years ago #

    Is it possible to disable the social media buttons in the backend?
    I don't want to send anything to facebook twitter or anywhere else. Even the existence of this button sends data.

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. AMBA
    Member
    Posted 2 years ago #

    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

  3. kajal_sh
    Member
    Posted 2 years ago #

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

  4. AMBA
    Member
    Posted 2 years ago #

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

  5. Rob3rt
    Member
    Posted 2 years ago #

    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/

  6. Zoinks! Graphics
    Member
    Posted 1 year ago #

    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?

  7. Rob3rt
    Member
    Posted 1 year ago #

    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>
  8. Zoinks! Graphics
    Member
    Posted 1 year ago #

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

  9. Rob3rt
    Member
    Posted 1 year ago #

    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.

  10. Zoinks! Graphics
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic