BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25174
    Brajesh Singh on in reply to: [Resolved] Gallery not showing all galleries #1133

    Please visit Dashboard->MediaPress->Tools and post me the output. I will have a better idea after looking at the plugin you are using.

  • Keymaster
    (BuddyDev Team)
    Posts: 25174
    Brajesh Singh on in reply to: [Resolved] Gallery not showing all galleries #1132

    If you are downloading the plugin, it should give you mediapress-master.zip
    https://github.com/buddydev/mediapress/archive/master.zip
    That link will give you the most updated copy.

    Just upload it and should work. if the upgrade does not fixes, please visit MediaPress->Tools in the dashboard and post me the output.

    thank you
    Bajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25174
    Brajesh Singh on in reply to: [Resolved] Gallery not showing all galleries #1128

    Hi,
    Please deactivate the plugin. Then delete it. After that please download latest and upgrade. If you get fatal error on activation, just reactivate again.

    Then check if that makes it work.

    If the site is not too much explicit then I will be fine, If it is too much explicit, I will try to assist you here on forums instead.

  • Keymaster
    (BuddyDev Team)
    Posts: 25174
    Brajesh Singh on in reply to: [Resolved] Gallery not showing all galleries #1126

    Can you please link me here or PM me the site.
    The directory lists only public galleries. So, I wanted to make sure there were atleast 34 galleries.

    PS: When was the last time you downloaded and updated MediaPress. we have almost daily updates(except a few days for last 2 months). The version is not true indicator as we commit the changes on github without bumping version for now.

  • Keymaster
    (BuddyDev Team)
    Posts: 25174

    Hi Johan,
    no problem.
    That is doable too and I already posted on how to make that in my 2nd post on this topic. I will just post it here too.

    Just changing the code of the function to this will make it work like you expected

    
    function mpp_custom_add_user_link() {
    	
    	$user_id = mpp_get_media_creator_id();
    	
    	$link = sprintf( "<a href='%s'>%s</a>", bp_core_get_user_domain( $user_id ), bp_core_get_username( $user_id ) );
    	
    	echo $link;
    	
    }
    
    

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25174
    Brajesh Singh on in reply to: [Resolved] Gallery not showing all galleries #1123

    Hi,
    Are you on the latest version of MediaPress? When was the last time you downloaded it. Can you please visit Dashboard->MediaPress->All Galelries and verify that there are 34 galleries.

    Also, is there any plugin you are using that might be doing filter on pre_get_post action?

  • Keymaster
    (BuddyDev Team)
    Posts: 25174
    Brajesh Singh on in reply to: [Resolved] Gallery not showing all galleries #1120

    Hi Terjemak,
    I am sorry for the trouble.
    Can you please post the screenshot?

  • Keymaster
    (BuddyDev Team)
    Posts: 25174

    I see the issue, you had copied the code from email you recieved from this forum. That code had entities encoded. You should never use code from any email by this forum. Instead, should copy from the posts here.

    I have updated the code

    Here is your link
    http://pastebin.com/YdV1hTEz

    I just removed the entities and It should work. Please give it a try.

  • Keymaster
    (BuddyDev Team)
    Posts: 25174

    Can you please post your functions.php on pastebin? I will update it.

    It is not the above code, It is the place where you are posting code is causing this and that is generating php syntax error.

  • Keymaster
    (BuddyDev Team)
    Posts: 25174

    Hi Johan,
    Please put this in your theme’s functions.php

    
    
    add_action( 'mpp_after_media_widget_item', 'mpp_custom_add_user_link' );
    function mpp_custom_add_user_link() {
    	//you may put some conditions here like
    
           //mpp_is_single_gallery();
            //mpp_is_single_media();
           //to avoid showing it on single gallery/media pages
    
    	$user_link = bp_core_get_userlink( mpp_get_media_creator_id() );
    	echo $user_link;
    }
    
    

    and check if ti works or not?

    to add support in shortcodes too, we can add one more line:-

    
    add_action( 'mpp_after_media_shortcode_item', 'mpp_custom_add_user_link' );
    
    

    That will make it work in both.

    Please check and let me know.