georgecourt
Forum Replies Created
-
Forum: Plugins
In reply to: [AI Engine] Accessibility: Keyboard navigation to open and close the chatbotThank you, I hope this is a top priority.
I have it mostly working, but your team should be able to write something more efficient.// JavaScript Document
function toggleChatbot() {
var chatbotWindow = document.getElementById(“mwai-chatbot-roary-chat”);
if (!chatbotWindow) return;var isOpen = chatbotWindow.classList.contains("mwai-open"); if (!isOpen) { chatbotWindow.classList.add("mwai-open"); chatbotWindow.setAttribute("aria-hidden", "false"); // Wait for the chatbot to open, then move focus to the input setTimeout(function () { var chatbotInput = chatbotWindow.querySelector(".mwai-input textarea"); if (chatbotInput) { chatbotInput.setAttribute("tabindex", "0"); chatbotInput.focus(); } }, 300); } else { chatbotWindow.classList.remove("mwai-open"); chatbotWindow.setAttribute("aria-hidden", "true"); }
}
function attachEventListeners() {
var chatbotTrigger = document.querySelector(“.mwai-trigger”);
if (!chatbotTrigger) return;chatbotTrigger.setAttribute("tabindex", "0"); chatbotTrigger.setAttribute("role", "button"); chatbotTrigger.setAttribute("aria-label", "Open AI Chatbot"); chatbotTrigger.addEventListener("keydown", function (event) { if (event.key === "Enter" || event.key === " ") { event.preventDefault(); // Prevent scrolling on space key toggleChatbot(); } }); chatbotTrigger.addEventListener("click", function () { toggleChatbot(); });
}
// Start checking for the chatbot trigger after the page has loaded
document.addEventListener(“DOMContentLoaded”, function () {
var checkInterval = setInterval(function () {
var chatbotTrigger = document.querySelector(“.mwai-trigger”);
if (chatbotTrigger) {
attachEventListeners();
clearInterval(checkInterval); // Stop checking once the trigger is found
}
}, 1000); // Check every second
});Forum: Fixing WordPress
In reply to: Install WP locally from a provided zip fileThanks for getting back tarhe,
I was not able to get the site working locally, so I created a new install on our hosting (WP Engine) and they were able to assist with getting it up and running. The issue was that the database was too big. They needed to increase the “max_allowed_packet”.
Thanks again for the help.
RichForum: Fixing WordPress
In reply to: Install WP locally from a provided zip fileGood morning tarhe.
I have received the databases (127 sql files)
Any advice you can provide would be GREATLY APPRECIATED!!!
Thank you,
RichForum: Fixing WordPress
In reply to: Install WP locally from a provided zip filePerfect, I am already at that stage! WP is installed, just waiting on the DB. I’m not sure when I will get the DB, but I will post back once I received it. Thanks again!
Forum: Fixing WordPress
In reply to: Install WP locally from a provided zip fileThat is what I figured.
I have unzipped the file, and there are no .sql files.If I can get them to send me the database file, can you point me in the direction of how to manually get this site up and running in my local environment?
I am on a Mac, using Mamp.
Thank you!!!
@msteidl
Try addingadd_filter( ‘gutenberg_use_widgets_block_editor’, ‘__return_false’, 100 );
to your functions.php
Yes, this is a long standing bug. I’ve read through this, with a reply as recent as 7 days ago. (the bug was reported 8 years ago!)
https://core.trac.www.ads-software.com/ticket/16841
I did get your roles to work, without doing anything in those articles.
Here are the steps:Create a new custom role.
Create a new user, but give them “Editor” rights.
Go to the page that you want them to be able to edit, and choose them in the Author dropdown box. Save the page.
Go back to their user page, and now select the custom role.If you go back to their page, you will see that they are still set as the page editor.
I’ve tested this with two test-users, and everything works as I need it to.
The only 2 roles I needed to give was “read” and “edit_published_facultys”. (replace facultys with your CPT)
I also had to go into Advanced Options/user capability and choose Custom Capability, and below that put in “faculty” – and also check the box under that for Additional User Capabilities.
- This reply was modified 5 years, 11 months ago by georgecourt.
- This reply was modified 5 years, 11 months ago by georgecourt.
Hi again, just wanted to add – after doing some further investigating – that this is a bug with WordPress:
https://blog.netgloo.com/2014/05/20/assigning-user-with-custom-role-as-author-to-posts-in-wordpress/
Understood Jim, thanks for the reply. I will look into the recommended plugin.
Forum: Plugins
In reply to: [WP Google Search] Not working with Chrome or FirefoxDoes this have anything to do with it?
https://customsearch.googleblog.com/2017/02/refocusing-and-looking-forward-on.htmlForum: Plugins
In reply to: [Yoast SEO] Include pdfs, but not graphics?Sorry, the only setting is for “media”, which seems to put pdfs and graphics in the same grouping.
Thanks Cory, I will give it a go once we are closer to launch.