Home

Code @ CSU is an evolving resource for a variety of tech-related matters. If you would like to contribute to this project, please fill out the contributor request form. Alternatively, if there is a subject you would like to have covered here, please fill out the contact us form and submit your topic request.

Recent Posts

Elementor Logo

Integrating FileBird Document Library with WordPress Search

If you’d like to be able to search both your Media Library files and pages/posts, the following Javascript can get the job done.  Just ensure that you place the code on your search results page, along with the shortcode to embed FileBird. document.addEventListener("DOMContentLoaded", function () { // Function to trigger input change event on a

Read More »
Elementor Logo

Dealing with Caching/Other Page Weirdness

Occasionally we get reports of various issues with pages, often along the lines of pages won’t update or intermittent errors.  A lot of these issues relate to the fact that we are using a very aggressive caching mechanism on our sites called Nginx Helper to improve page load times.  In any case, I thought I’d put

Read More »
Migrate website

Custom ASHX File Handler for CKEditor

I recently discovered a vulnerability in some old .NET 4.8 web forms code that was used to provide basic file management within CKEditor (https://github.com/simogeo/Filemanager).  Since I don’t have the ability to rebuild the entire system at this time, I decided to implement a newer file manager instead (https://github.com/psolom/RichFilemanager/).  However, the ashx connector provided therein (https://github.com/psolom/RichFilemanager/blob/master/connectors/ashx/filemanager.ashx)

Read More »
Elementor Logo

Expand/Collapse All Buttons Using Elementor Accordion

Here’s how to have the ability to expand all/collapse all panes within an Elementor accordion element: Add an HTML widget and 2 buttons to your site.  Give the Expand All button the CSS class, “expand-all”, and the Collapse All button the class, “collapse-all” Add an HTML element to your page and paste in the code

Read More »
WordPress Logo

Finding Recent Changes In WordPress

Thought I’d denote some queries we commonly use to determine what has recently changed on one of our multisite instances in WordPress Pages/Posts SELECT ID, post_title FROM wp_X_posts WHERE post_status = ‘publish’ AND DATE(post_modified_gmt) BETWEEN ‘2023-08-15’ AND ‘2023-10-31’ AND post_type IN (‘post’, ‘page’) ORDER BY post_modified_gmt DESC; Events Manager Pro Events SELECT * FROM `wp_X_em_events`

Read More »
Gravity Forms Logo

Migrating Gravity Forms Entries To a Newer/Different Site

Sometimes when we redesign a site (when we know the content doesn’t need to change much) we’ll duplicate the old site and then work on the duplicate until we’re ready to release.  There are potential problems with this approach, including that when you duplicate a site, it’s just a snapshot in time, and any changes

Read More »

Posts of the Day

File lock

Protecting WordPress File Uploads

A Go-Daddy backed security company analyzed over 25k infected websites and 4,426,795 cleaned files to determine that the WordPress content management system accounted for 90% of all hacked websites in 2018 (increasing from 83% in 2017). The top three tactics for attacks included backdoors (68%), malware (56%), and SEO spam (51%).

Read More »
Elementor Logo

Dealing with Caching/Other Page Weirdness

Occasionally we get reports of various issues with pages, often along the lines of pages won’t update or intermittent errors.  A lot of these issues relate to the fact that we are using a very aggressive caching mechanism on our sites called Nginx Helper to improve page load times.  In any case, I thought I’d put

Read More »
Calendar Permissions

Granting Calendar Access – Outlook Calendar Display For WordPress Plugin

Outlook Calendar Display for WordPress is a nifty little plugin that makes it possible to display the full details of any Outlook calendar on a WordPress site.  Unfortunately, it requires fairly aggressive permissions in order to generate the necessary tokens to work properly: https://wpintegrate.com/kb-article/outlook-calendar-display-for-wordpress-app-permissions/.  However, it’s possible to work around this issue by taking a

Read More »