Course Schedule Conversion for MODX

This tutorial walks through the steps to convert course schedule from Excel file into MODX. Open up the original Excel file (provided by Deborah), merge multiple faculty into one row, then delete all the empty rows. Open up the Course Schedule Sample Excel file Copy and paste each column such as Course Title, Credit, and … Continue reading “Course Schedule Conversion for MODX”

How to Renew SSL Certificate for

Log into cPanel (GoDaddy) and go to SSL/TLS Generate CSR and fill out all the information. Request SSL certificate from ITS. Submit a request to get a certificate. Once you get it from ITS, go back to cPanel – SSL and then go to certificates Then upload the .crt file that ITS gave you Go … Continue reading “How to Renew SSL Certificate for”

Force Update of PDFs

When replacing an existing PDF, browsers don’t serve the latest version. They usually serve the cached version. To change that, we use Apache directives as below: # Instruct browsers to always check for the latest version of your files using Apache directives <IfModule mod_headers.c> <FilesMatch "(?i)^.*\.(css|htm|html|gif|jpg|jpeg|js|png|pdf)$"> Header set Cache-Control "max-age=0,must-revalidate" </FilesMatch> </IfModule> The instruction above … Continue reading “Force Update of PDFs”

Remove Periods from Degrees

For example, replace J.D. or L.L.M to JD or LLM. Here’s the JavaScript method: <script> function removePeriods() { var str = document.getElementById("c_degrees").innerHTML; var res = str.replace(/\./g, ""); document.getElementById("c_degrees").innerHTML = res; } window.onload = removePeriods; </script> To do it in MODX, create a chunk called FixDegrees: A.B.:AB,A.M.:AM,B.A.:BA,B.B.A.:BBA,B.C.:BC,B.Com.:BCom,B.E.E.:BEE,B.I.E.:BIE,B.F.A.,BFA:B.L.:BL,B.M.:BM,B.M.E.:BME,B.S.:BS,B.S.E.:BSE,B.S.E.E.:BSEE,D.Jur.:DJur,D.O.:DO,J.D.:JD,J.S.D.:JSD,J.S.P.:JSP,Ed.D.:EdD,Ed.S.:EdS,LL.B.:LLB,LL.D.:LLD,LL.L.:LLL,LL.M.:LLM,M.A.:MA,M.A.S.:MAS,M.B.A.:MBA,M.Ed:MEd,M.Fc.:MFc,M.L.I.S.:MLIS,M.L.S.:MLS,M.D.:MD,M.Ed.:MEd,M.S.:MS,M.Sc.:MSc,M.S.E.E.:MSEE,M.S.L.S.:MSLS,M.T.:MT,P.G.C.E.:PGCE,Ph.D.:PhD,Cert. of Legal Educ.:Cert of Legal Educ,M.P.P.:MPP,S.J.D.:SLD Than create a … Continue reading “Remove Periods from Degrees”

Upgrade wget on CentOS 5

Instruction on how to install wget from the source: cd ~ wget yum -y remove wget tar -xzvf wget-1.16.tar.gz cd wget-1.16 ./configure –with-ssl=openssl –with-libssl-prefix=/usr/lib64/openssl –prefix=/usr make && make install Original article.

Add Breaking News on The Mason Law’s Homepage

To post one announcement on the Mason Law homepage, use this example: ANNOUNCEMENTS: <a href="">Information on Spring 2015 Laptop Exams</a> To post multiple news, use this example: <div class="announcements">Announcements:</div> <ul> <li><a href="[~15~]">Spring 2013 Class Schedule and Registration Information</a></li> <li><a href="[~8476~]">Information on Fall 2012 Laptop Exam Software</a></li> </ul>

Disabling SSLv3 Vulnerability

Projecting CentOS servers against the POODLE SSLv3 Vulnerability. # vi /etc/httpd/conf.d/ssl.conf Find the SSLProtocol directive and remove support for SSLv3: # vi SSLProtocol all -SSLv3 -SSLv2 Restart Apache Source: “How To Protect your Server Against the POODLE SSLv3 Vulnerability”

Homepage Featured Events Display Using DOM

The featured events on the Mason Law homepage is pulled from the master calendar’s RSS. To get the dates and times separated from the titles, accessing the DOM is needed. The following codes, which requires jQuery, make the magic happened: $(‘.rssItemLink’).each( function(){ $this = $(this); $this. html(‘<em>’ + $this. html(). replace(/((\d{1,2}\/){2}\d{2,4}\s*[0-9]{1,2}:[0-9]{1,2}\s*[apAP][mM]\s*to\s*[0-9]{1,2}:[0-9]{1,2}\s*[apAP][mM])/, ‘</em><b>$1</b>’ ) ); } );

Sticky Nav on Scroll

Here’s a little JavaScript function to make your site’s header or navigation stick to the top of the window when users scroll the page: HTML: <div id=”navigation”> <!– your navigation code –> </div> CSS: #navigation{ position:absolute; top:120px; left:0; } #navigation.fixed{ position:fixed; top:16px; } JavaScript: // Handles the page being scrolled by ensuring the navigation is … Continue reading “Sticky Nav on Scroll”