Viewing 1 replies (of 1 total)
  • Hey I had the exact same problem and saw the previous thread. Yes it gets rid of the entire thing. I’m not too familiar with php and there could be 100 better ways to solve this. Here is what I did

    open the plugins/bbpress-multi-image-uploader/Includes/Common/function.php

    Now search for

    if( !empty( $attachments ) ) { ?>
    
    <div class="shr-reply-attach"><?php
    foreach( $attachments as $attachment ) {
    $attach = wp_get_attachment_image_src( $attachment->ID , 'thumbnail' );
    $attach_full  = wp_get_attachment_image_src( $attachment->ID, 'full' ); ?>
    <a href="<?php echo $attach_full[0]; ?>" class="thickbox bbp-uploader-thumb">
    <img src="<?php echo $attach[0] ?>" alt="<?php echo $attachment->post_name; ?>" />

    Right under it you’ll see <span><?php echo basename( pathinfo( $attach_full[0], PATHINFO_FILENAME ) ) ?></span>
    Delete this entire line. Or you can also comment it if you want to save it for later use
    (note if you use an editor it will be line number 224)

    Also note that entire section is where you can style the attachments with CSS

    • This reply was modified 7 years, 11 months ago by unconquered.
    • This reply was modified 7 years, 11 months ago by unconquered.
    • This reply was modified 7 years, 11 months ago by unconquered.
Viewing 1 replies (of 1 total)
  • The topic ‘Remove File Names’ is closed to new replies.