Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to prevent users from changing their avatars

  • @reggie3

    Participant

    WordPress 3.51 (soon to be 3.6); BuddyPress 1.8

    We have a central bank of photos for all of our users. These are to be used by a number of different applications (WordPress, Drupal, etc.) across the organization.

    We have written a script that will create Word/BuddyPress avatar images & thumbnails, hash the user’s id to create the filenames, move the images to the correct directories, etc. and all this works fine.

    We want to prevent users from uploading different avatars into Word/BuddyPress after the photos from the central bank have been created. Is there a way to do this other than hacking the code?

    If hacking the code is the only way, any suggestions as to which php scripts to modify, and/or how to do that?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • @reggie3

    Participant

    So…no clues?

    Thanks,

    Reg

    @shanebp

    Moderator

    Take a look at bp_core_remove_subnav_item()

    Or do a template over-ride of this file and put a message to the member in it.
    buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\change-avatar.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to prevent users from changing their avatars’ is closed to new replies.
Skip to toolbar