baedyllion
Forum Replies Created
-
Forum: Plugins
In reply to: [AI Engine] Changing “Guest” nameThank you for the help. I appreciate it.
Cheers.
Thank you for your help. This worked perfectly. Cheers.
Forum: Plugins
In reply to: [AI Engine] Sorry, your query has been rejected.Thank you, this worked. Still need to test it and observe more though before I make it visible in my production site. Thank you for the help. Cheers.
Thanks for the super quick reply.
Cheers.
alright, It worked after clearing the browser cache. thanks again.
Cheers.
Baris.android. Will try to clear cache.
It doesnt show an error. The messenger works on desktop, but It’s not visible at all on mobile device.
There is something wrong though. Even though the messenger works on desktop devices. It stopped working on mobile devices. I dont know It’s related to the code I added. But even when I remove the code, the error continues on the mobile devices. However, It continues to work on desktop. What could be the problem?
Hello again,
After I spend some time on it, I believe I created the solution. and I wanted to place the code in here in case other users in need of the same thing can use it. Quick warning though, I’m not a developer. You need to consult a developer to verify the code. I’m not even sure what I did in the code ??add_filter('better_messages_rest_user_item', 'custom_user_meta', 20, 3 ); function custom_user_meta( $item, $user_id, $include_personal ){ // This is the prefix of the user link. $prefix = 'user'; // This is the user meta field that is going to be used for the custom name. $key_1 = 'first_name'; // This is the user meta field that is going to be used for the custom avatar. $key_2 = 'um_avatar'; // This is the user meta field that is going to be used for the custom link.This meta value will be combined with the prefix. $key_3 = 'nickname'; $single = true; $user_firstname = get_user_meta( $user_id, $key_1, $single ); $user_avatar = get_user_meta( $user_id, $key_2, $single ); $user_url = get_user_meta( $user_id, $key_3, $single ); // Custom Name $item['name'] = $user_firstname; // Custom Avatar URL $item['avatar'] = $user_avatar; // Custom profile URL. When users click on the user, they will be redirected to example.com/user{nickname} $item['url'] = $prefix.$user_url; return $item; }
Hello thank you for quick reply! this is exactly what I’m looking for.
However I’m not a developer so I don’t think I’d manage to pull it off but I’d give it a try ??
Thank you again.
Cheers.
Baris.It worked perfectly. thank you very much for your help.
Cheers.thank you, that was fast. I’ll try and give feedback.
Cheers.
Baris.Forum: Plugins
In reply to: [Comments - wpDiscuz] set a max limit of comments that a post can getHi, I tried to refresh the page and delete cache unfortunately It didnt work out. weird part is . when I view the page as admin It seems closed but when I try it to view as user I can still comment.
to refresh the page after commenting I use the code below. I asked help from you before.
add_filter("wpdiscuz_comment_post", function ($r) { $r["callbackFunctions"][] = "refreshPageWhenCommentPosted"; return $r; });add_filter("wpdiscuz_comment_post", function ($r) { $r["callbackFunctions"][] = "refreshPageWhenCommentPosted"; return $r; });
Forum: Plugins
In reply to: [Comments - wpDiscuz] Change post comment button linkHello,
Thank you for the quick reply. I did as you instructed. It’s working great now.
I appreciate the help.
Cheers.
Hello,
thank you very much for the solution. It worked perfectly.I appreciate the help a lot. Great work.
Have a nice day.
Cheers.