Carsten Riis Jensen
Forum Replies Created
-
Forum: Plugins
In reply to: [AI ChatBot for WordPress - WPBot] page shortcodeThank you. At the bottom of the chatbot there are buttons (Information/Support). Can new buttons be added? I would like to have a Main Menu button there, that opens a Conversational Form called ‘hovedmenu’, and also another button that also opens a Conversational Form called ‘samtale’.
Carsten.
Forum: Plugins
In reply to: [AI Engine] Function callingThis looks way too difficult for me. I bought the Pro version yesterday, as you may have noticed (I sent a help request through your website). Do you know of people who can help me build a function from scratch? – so I can concentrate on using AI Engine for my purpose (as part of a board game where the players interact with persons that AI Engine looks up in an Excel-datafile I have uploaded). Where can I get help to build a function from scratch?
Forum: Plugins
In reply to: [AI Engine] Function callingAddition:
1: I can see in my errorlog that get_game_data is correctly registered in AI Engine. But there is no connection.
2: A json test (/wp-json/mwai/v1/call-function) gives an error ({“code”:”rest_no_route”,”message”:”Ingen rute blev fundet der matchede URL og anmodningen.”,”data”:{“status”:404}})
3: And this is what I have added to my WordPress theme’s functions.php:“
add_filter(‘mwai_allow_public_api’, function ($allow, $feature, $extra) {
if ($feature === ‘call-function’ && isset($extra[‘function’]) && $extra[‘function’] === ‘get_game_data’) {
return true;
}
return $allow;
}, 10, 3);add_filter(‘mwai_functions_list’, function ($functions) {
$functions[] = Meow_MWAI_Query_Function::fromJson([
‘id’ => ‘get_game_data’,
‘type’ => ‘manual’,
‘name’ => ‘get_game_data’,
‘desc’ => ‘Henter data fra CSV eller Excel baseret p? en specifik kolonne og v?rdi.’,
‘args’ => [
[‘name’ => ‘lookup_value’, ‘type’ => ‘string’, ‘required’ => true, ‘desc’ => ‘V?rdien at sl? op.’],
[‘name’ => ‘column_name’, ‘type’ => ‘string’, ‘required’ => true, ‘desc’ => ‘Kolonnenavn at s?ge i.’],
[‘name’ => ‘requested_columns’, ‘type’ => ‘array’, ‘required’ => false, ‘desc’ => ‘Liste over ?nskede kolonner.’]
]
]);
return $functions;
}, 10, 1);add_filter(‘mwai_ai_function’, function ($value, $funcName, $funcArgs) {
if ($funcName === ‘get_game_data’) {
// Kald din get_game_data-funktion med de givne argumenter
return get_game_data($funcArgs);
}
return $value;
}, 10, 3);add_filter(‘mwai_ai_feedback’, function ($value, $needFeedback) {
$function = $needFeedback[‘function’];
if ($function->id === ‘get_game_data’) {
$args = $needFeedback[‘arguments’];
return get_game_data($args);
}
return $value;
}, 10, 2);add_filter(‘mwai_ai_reply’, function ($reply, $query) {
foreach ($reply->needFeedbacks as $index => $needFeedback) {
$function = $needFeedback[‘function’];
if ($function->id === ‘get_game_data’) {
$value = get_game_data($needFeedback[‘arguments’]);
if (!empty($value)) {
$reply->result = “Her er dine data: ” . json_encode($value);
unset($reply->needFeedbacks[$index]);
return $reply;
}
}
}
return $reply;
}, 10, 2);error_log(“AI Engine Functions: ” . json_encode(apply_filters(‘mwai_functions_list’, [])));
add_filter(‘mwai_ai_function’, function ($value, $funcName, $funcArgs) {
error_log(“?? AI Engine kaldte funktion: ” . $funcName . ” med parametre: ” . json_encode($funcArgs));if ($funcName === 'get_game_data') { error_log("? AI Engine fors?ger nu at eksekvere get_game_data..."); $result = get_game_data($funcArgs); error_log("?? get_game_data RETURNEREDE: " . json_encode($result)); return $result; } return $value;
}, 10, 3);
“
Forum: Plugins
In reply to: [Recencio Book Reviews] Cover sizeAwesome, thank you! That did it.
Forum: Plugins
In reply to: [Recencio Book Reviews] Cover sizeThank you very much. The code removes the cover, but leaves empty space where the cover should be (example: https://vejentilsalem.dk/bibelhistorie/2-adameva/)
Is it possible to also remove the empty space?Forum: Plugins
In reply to: [Nextend Social Login and Register] The registration pageThank you!
- This reply was modified 4 years, 2 months ago by Carsten Riis Jensen.
Forum: Plugins
In reply to: [Nextend Social Login and Register] The registration pageThanks, if you open this page and click Facebook or Google you will see the resulting page with the fields:
https://forkyndelse.dk/undervisning/tilmeldbruger/Forum: Plugins
In reply to: [Nextend Social Login and Register] On the registration pageThank you!
Forum: Plugins
In reply to: [Nextend Social Login and Register] On the registration pageThank you,
I am also testing the OneAll Social Login plugin, which you will se on both pages, but as you can see on the Login page it shows both plugins just fine. But it isn’t showing on the Register page.
I also just unchecked, under LearnDash settings, the Login&Registration option (where LearnDash uses its template)Login page:
https://forkyndelse.dk/undervisning/wp-login.php
Register page:
https://forkyndelse.dk/undervisning/registrerI have updated but still no button under the Course Settings tab.
I can’t seem to find the new version. Has it been released?
Forum: Plugins
In reply to: [GamiPress - Multimedia Content] Upload pluginThanks,but is there a WordPress shortcode I can use then, to (1) allow my users to upload files which (2) triggers a gamipress point?
I dont know of any plugin,so is there an upload WordPress native shortcode that will trigger gamipress?Forum: Fixing WordPress
In reply to: Learning or reading pathsThank you! Exactly what I was looking for.
Forum: Plugins
In reply to: [PDF Ink for WooCommerce - Stamp PDFs with Customer Data] tcpdf errorThank you very much!
Forum: Plugins
In reply to: [PDF Ink for WooCommerce - Stamp PDFs with Customer Data] tcpdf errorThank you! Let me know if I should update the plugin after you have looked at it.