CMS Made Simple cgcalendar clean up database

February 28th
stephanie
cms
0 Comments

When  you have repeating calendar events in  your CMSMS and you update them you will need to clean out your MySQL database to clear out those old event entries. Here is  how to 0ptimize MySQL database tables in phpMyAdmin:

•  Log in to your MySQL database
•  Click the database table to be optimized on the left side of the screen
•  Click the Operations tab
•  Under Table maintenance, click Optimize table

NOTE: The Optimize option may not appear for every table. If it does not, that generally means the table is already at maximum optimization.

CMS Made Simple and mobile detection/mobile friendly site iPhone

February 23rd
stephanie
cms
0 Comments

Here is code to add to the head of your doc to detect iPhone. Replace {stylesheet} with this to pull in a mobile stylesheet. More to come!

 

{if false !== $smarty.server.HTTP_USER_AGENT|lower|strpos:’iphone’}
{stylesheet name=’iPhone’ media=’screen’}
{else}
{stylesheet}
{/if}