• Resolved Shubham Rajdhar

    (@ishubhamraj)


    Hi,

    First of all, thanks for the plugin! Saved a lot of time!
    I have two queries:

    1. How can I change the tab name? Defaults are Photo Gallery and Video Gallery. I know we can change it by directly editing the plugin, but it will be overwritten when there is a new update.. Can I do it like this method :

    You can customize the default look of the gallery by copying the gallery.php and video.php file in your theme’s ultimate-member/templates/profile folder.

    This way, copying the ‘ultimate-member-gallery.php’ into ‘theme/ultimate-member-gallery/’ and then editing?

    2. Is there a way with which user can select and upload multiple files at once?

    Regards,
    Shubham.

    https://www.ads-software.com/plugins/ultimate-member-gallery/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author maksbd19

    (@maksbd19)

    Thank your for your support.

    I’ll update the core to allow you to change the tab names.

    Multiple file upload is not available in this version. I’ll release it soon in the next major update.

    I’ll post some documentation here: https://mak.bdmonkey.com/dev/plugins/ultimate-member-gallery/

    Plugin Author maksbd19

    (@maksbd19)

    Please update the plugin and then use the filters to change the tab name.

    Excellent plugin!
    Thanks a lot for creating it.

    Having multiple upload would simply make it perfect.

    Thread Starter Shubham Rajdhar

    (@ishubhamraj)

    Thanks a lot for such a quick reply and quick update! You are great!

    Plugin Author maksbd19

    (@maksbd19)

    Thanks everyone for supporting this. I’ll try my best to release the next update very soon.

    Thread Starter Shubham Rajdhar

    (@ishubhamraj)

    Hey,

    Sorry for posting here again.
    I am not much familier with using filters, so I did some digging, found that I can apply filters using apply_filters.
    I added this code into theme’s functions.php

    return apply_filters( 'ultimate_member_gallery_photo_tab_name', 'Upload Photos' );
    return apply_filters( 'ultimate_member_gallery_video_tab_name', 'Upload Videos' );

    It didn’t work. I hope you can help me out a little bit here, because what I added was obviously wrong since it didn’t work.

    Regards,
    Shubham.

    Thread Starter Shubham Rajdhar

    (@ishubhamraj)

    Hey,

    Nevermind, just figured it out! ??
    Added this to functions.php of theme and removed lines posted in last reply.

    add_filter( 'ultimate_member_gallery_photo_tab_name', 'upload_photos' );
    function upload_photos($up){
    	 $up = 'Upload Photos';
    	 return $up;
    }
    
    add_filter( 'ultimate_member_gallery_video_tab_name', 'upload_videos' );
    function upload_videos($uv){
    	 $uv = 'Upload Videos';
    	 return $uv;
    }

    Thanks!

    Plugin Author maksbd19

    (@maksbd19)

    Good that you figured that out. Filters are meant to accept fist param as the tag name and the next one another function name where you would modify the filterable content. ??

    Thread Starter Shubham Rajdhar

    (@ishubhamraj)

    Yes, I am glad I got into this, got to learn few new things! ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Title tab rename and multiple file uploads’ is closed to new replies.