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.
Sure here it is your code at the bottom..
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.
Sorry about that! Even I should have seen that! I’ve learned a lot.
So, now its working great! I wonder. Is there a way to switch from displaying the full name instead of user name? If this is complicated yo don’t have to worry about it…!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.
Hi Johan,
did that work for you? I will appreciate your feedback.Hi there! Sorry about late respons had to work on other stuff in between.
Yes I have tried the code now and it works exactly as planned when it comes to username (like username) but the latest version of the code to display the real personal names (Name Name) gave me the same results as the first code: it displayed the username…
No doubt it’s probably something I have done wrong. Ill paste the code here:Thank you
JohanHi Johan,
Do you want both the version( full name and username only).Since I updated the function, It only displays usernames. You can use the old code to display full name in a new function.
If you need me to write both the code, please let me know, I will update the post.
Thank you
BrajeshGreetings,
I am trying to do this very thing. I have set up sitewide gallery pages and I too want the users’ full name under the gallery. I see the code and I just want to clarify. Instead of this that is indicated in your/boss/buddyboss-inc/theme-functions.php
I would create a child theme of the theme I am using correct? I am using Klein. Would I substitute “klein” for “boss” and use the code the same?
Thanks,
XochiHi Xochi,
Welcome to BuddyDev.In your theme, you should have functions.php, Please put the code there.
PS: For future, Please create a new topic if the topic is too old and reference the relevant link.
Thank you
Brajesh
The topic ‘ [Resolved] Add member name (@MemberName) under title on thumbs’ is closed to new replies.