abellon
Forum Replies Created
-
Sorry, I didn’t see the last messages.
Yes, You can mark it as resolved. It worked adding the script manually in the pages.
Thank you so much!I realized that now the chat is only working in the front-page. The other pages I have are located in the “page-templates” directory, so I guess the SAC’s js file URL is not the same for all the pages.
Thank you so much.
That field is empty. There is no URLs listed.
Sorry, I don’t understand, how can I check that setting?
Thank you, I added the script tag manually in the header.php and it is working now.
<script type="text/javascript" src="./wp-content/plugins/simple-ajax-chat/resources/sac.php?ver=20210210"></script>Will this solution work with future updates? Perhaps there is something wrong with the functions.php?
Thank you for answering.
Do I need to add SAC Javascript manually?
The steps I followed are:
1. I installed the SAC plugin
2. Added the php script in the front page:
<?php if (function_exists(‘simple_ajax_chat’)) simple_ajax_chat(); ?>Then the chat appeared in the front page but the username is not auto-generated and every time I send a message I got the error.
I checked the js console and I am not getting any errors, neither before or after sending the message.