Support » Plugin: BuddyPress Activity Plus » [Plugin: BuddyPress Activity Plus] Auto-Rename Uploaded Pictures

Viewing 1 replies (of 1 total)
  • Intervik

    (@intervik)

    There is a way to go in the core file files_upload.php in lib folder

    $filename = sanitize_file_name($filename);

    I replaced this $filename = “my-prefix-“.mt_rand(1, 999).”-ID”.bp_get_activity_user_id();

    This is to remove the users own filename so it get more private community. (eg No Holliday with Karl and sofie Ericsson at Paris)

    But all the numbers added, sholud be in this func as well.

    / hop it help a little

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: BuddyPress Activity Plus] Auto-Rename Uploaded Pictures’ is closed to new replies.