Replies
- Brajesh Singh on October 23, 2015 at 10:00 am in reply to: [Resolved] Add member name (@MemberName) under title on thumbs #1124
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.
- Brajesh Singh on October 23, 2015 at 9:55 am 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?
- Brajesh Singh on October 23, 2015 at 9:25 am in reply to: [Resolved] Gallery not showing all galleries #1120
Hi Terjemak,
I am sorry for the trouble.
Can you please post the screenshot? - Brajesh Singh on October 23, 2015 at 9:24 am in reply to: [Resolved] Add member name (@MemberName) under title on thumbs #1119
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/YdV1hTEzI just removed the entities and It should work. Please give it a try.
- Brajesh Singh on October 23, 2015 at 9:13 am in reply to: [Resolved] Add member name (@MemberName) under title on thumbs #1116
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.
- Brajesh Singh on October 23, 2015 at 8:47 am in reply to: [Resolved] Add member name (@MemberName) under title on thumbs #1113
Hi Johan,
Please put this in your theme’s functions.phpadd_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.
Just received a response from Hardeep, so I guess you won’t have to update manually. An update will be available from wp.org by tomorrow.
Hi John,
Just a small update.
That plugin was using Recaptcha old libray and I had to update it. It is working for now. I will need till tomorrow to finish the plugin( Needs some cleanup as I did a lot of breaking here & there ). Have notified the author on wp.org about it and if he provides a way, will send him the updated file too.Please bear with me till tomorrow.
Thank you
Brajesh- Brajesh Singh on October 22, 2015 at 8:18 pm in reply to: [Resolved] Add member name (@MemberName) under title on thumbs #1108
Hi Johan,
I am sorry about that. I thought you were going into the MediaPress APi and tried to convey that.Can you please post me how will you make listing and put a screenshot showing where you want the username to be. I will post exact code.
Thank you
Brajesh Hi James,
I am sorry for the trouble.Can you please tell me which browser you are using. It seems to be a caching issue. i have disabled caching for logged in users and not sure why it is not allowing you. Also, on your topic, Please try to press F5(refresh) and see if that works.
Thank you
Brajesh