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
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
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)
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
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`
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
Building A Chrome Extension: Refresh N’ Click
I thought it might be fun to appear to be more active than I actually am on some well-known social media platform, and came up with a little experiment for the job at hand, which also enabled me to build my first Chrome extension. Once installed and activated (by clicking the extension’s icon), it will
Posts of the Day
Student Affairs Sites
What follows is a listing of all sites managed by Student Affairs (WordPress, C#, etc.). View This Data in Google Sheets
Tracking E-mail Opens
Recently I was asked by a client how she could track which recipients were opening her e-mail messages (without using a read receipt). It turned out to be a pretty easy process, after finding this article: http://dyn.com/blog/tracking-email-opens-via-google-analytics/. As a note of caution, Apple at least offers Mail Privacy Protection which blocks this ability. Anyways, as
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