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

MS Access

Syncing an Access DB to MS SQL

MS Access has fallen out of favor many years ago, especially for use on the web, but it’s still being used by offices to capture data internally.  When recently asked whether that data could be exposed on a website, I thought I’d put together the following ASP.NET code to be able to do so relatively

Read More »
Gravity Forms Logo

Gravity Forms

What is Gravity Forms? Gravity Forms is an extremely powerful and flexible WordPress plugin that can be used in place of nearly any traditional, paper-based form. If you or your office want to convert any existing paper-based forms to an online form, Gravity Forms is the perfect solution. Building & Configuring a Form Adding Fields/Questions

Read More »