Layout Guides for the Law School Main Website

Here are some quick layout guides for the main law school website. To create a simple button (see visit campus page), add the button class. <div class="button"> <a href=""></a> </div> To create three buttons in three columns with three different colors (see homepage), add grid3 and color-buttons classes: <div class="grid3 color-buttons"> <a href=""></a> <a href=""></a> … Continue reading “Layout Guides for the Law School Main Website”

Instructions for Restoring Course Schedules in MODX

Duplicate the entire course schedule directory. For example: 2016 Course Schedule and rename it to 2015 Course Schedule. Open up the directory you just copied, select Duplicate of 2016 Fall. Rename Title and Long Title to 2015 Fall. Rename Source Alias to 2015_fall. Open up the static HTML page. Search ../../.. and replace with nothing … Continue reading “Instructions for Restoring Course Schedules in MODX”

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”

How to Upgrade MODX Revolution

Clear the site cache and the two logs (Error Logs and Manager Actions under the Reports menu) Flush Permissions and Log Out Backup files and database through cPanel Use CPanel to delete all the files in the cache folder (core/cache). Download the latest version of MODX Revolution, unzip, and merge (not replace) with the current … Continue reading “How to Upgrade MODX Revolution”

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>