johocen168
Forum Replies Created
-
Thanks, had followed up.
which forum should I choose?
Tried “WCMp Catalog Enquiry”, but Order No is requred.
I deactivated all the plugins except WooCommerce and Catalog Enquiry, then changed the theme to Twenty Twenty-Three, but the result is same.
Do you think it might be different structure in All Products block of WooCommer?
Got it, thanks
Got it, and problem solved.
Thanks
You are right, it’s the multisite structure issue, thanks for your help!
Hi @heateor
As mentioned, dahodan is the admin user of another subsite?https://dahodan.johocen.com/ , so he is in the user list of multisite.
But is that mean one user login/registered in one of the subsite, will not appear in the user list of another subsite when login?
Thanks
Hi @heateor
I tried login from my computer, instead of mobile for dahodan, but also can not find dahodan in the user list.
View post on imgur.com
Do you think the multisite will be the problem? since dahodan is the admin user of another subsite https://dahodan.johocen.com/ which is under the same multisite network as https://johogee.johocen.com/
Thanks
Hi @heateor
Thanks for your help, I can find heateor in the user list now.
But it’s kind of strange…as you can see in the screenshot below https://photos.app.goo.gl/qdqzqzYc3QsA3qsC9 , dahodan is logged in, but you can not find it in the user list as this screenshot…https://i.imgur.com/Ew92zqn.png
Any idea what might be the cause?
Thanks for your reply.
Here are the video link… https://photos.app.goo.gl/YZG4igh4Myg6LyG97
It’s kind of strange that the url shared is with user loswa, but the point for referring a new member goes to another user hocen, please see the screenshot…https://i.imgur.com/6XCcinl.png
The plugin used for Social Login is Super Socializer
Meanwhile, please also see the above screenshot, if the first time user login instead of register, such as user amyh and Vi Ti, they will not get 10 point for becoming a member, nor appear in the user list.
Login and register are on the same page, but social login icons first appeared is for login, not register. So if the first time user choose social login icons of login, they will not be considered as registered. (This issue maybe should ask Super Socializer)
Regards,
While tried with https://johogee.johocen.com?openExternalBrowser=1&mref=user
it will open external browser but mref=user is missing afterward.
Meanwhile, the new logged in user will not appear in the user list.
Any suggestion…
Thanks
Forum: Plugins
In reply to: [AI Engine] How to retrive the completion/answer from chatbot?Hi @tigroumeow,
We are working on this…
The overall objective is to parse the percentage score of a login user, from the reply of the AI Engine plugin in WordPress, using the mwai_chatbot_reply filter. If the score is 60% or higher, the code should award x points to the user, using the Hook API of the myCred plugin. Additionally, a hook code is required in the myCred plugin to receive the call from the above function and award the points to the user. The sub-task is to add error handling to the code so that it can handle situations where the percentage score cannot be extracted or the myCred Hook API call fails.
Question: we have 2 chatbots in each post, how can we identify which mwai_chatbot_reply to be fetched, and how to link it with login user id?
Here is the initial code, but got error…Return type of Meow_MWAI_Reply::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/web/site/public_html/wp-content/plugins/ai-engine/classes/reply.php on line 15
function extract_percentage_score( $reply, $user_id ) { // Use regular expressions to find the percentage score in the reply if ( preg_match( '/Score: (\d+)%/', $reply, $matches ) ) { $percentage_score = intval( $matches[1] ); // Handle case where percentage score cannot be extracted if ( $percentage_score == 0 ) { error_log( 'Failed to extract percentage score from AI Engine reply' ); return $reply; } // Store the user ID and percentage score in variables $user_id = get_current_user_id(); $score = $percentage_score; // Call the myCred Hook API to award points to the user if score is 60% or higher if ( $score >= 60 ) { $points = 50; // Change this to the number of points you want to award $result = mycred_add( 'score', $user_id, $points, 'Scored 60% or higher' ); // Handle case where myCred Hook API call fails if ( ! $result ) { error_log( 'Failed to award points using myCred Hook API' ); } else { // Log the Hook API call and number of points awarded error_log( 'Awarded ' . $points . ' points to user ID ' . $user_id . ' using myCred Hook API' ); } } } return $reply; } add_filter( 'mwai_chatbot_reply', 'extract_percentage_score', 10, 2 );
We are willing to pay for the hours of consulting if you are willing to guide us for this function.
Thanks
Forum: Plugins
In reply to: [AI Engine] Cookie check failedForum: Plugins
In reply to: [AI Engine] Set AI Engine Language to Chinese for Fine-tuned modelsHi @tigroumeow ,
Surprised that Nyao will make up the filter ai_engine_finetune_args,
So this answer from Nyao is also questionable, correct?
Fine-tuned models can be used with any language, but they require training on data specific to that language. Embeddings, on the other hand, can be used with any language without requiring language-specific training. So, if you have a dataset in a specific language and want to create a chatbot for that language, you can fine-tune a model on that dataset to get more accurate results. However, if you want to create a chatbot that can handle multiple languages, embeddings may be a better choice as they can be used with any language without requiring language-specific training.
I tried the code provided in faq, using the Code Snippets plugin, but nothing happened.
add_filter( 'mwai_languages', function( $languages ) { unset($languages['en']); // Remove English $languages['zh'] = "Chinese"; // Add Chinese return $languages; }, 10, 1);
How can I Set AI Engine Language to Chinese for Fine-tuned models?
Thanks