StyleSheetSwitcher module error (was setting up screen accesibility options

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
lynbarn

StyleSheetSwitcher module error (was setting up screen accesibility options

Post by lynbarn »

Hi,

I've never developed in a CMS before, but thought I'd try CMSMS. I've just loaded it - apart from a hiccup with PHP being in safe mode (giving a warning in admin mode about not being able to upload images etc) that took a while to sort out with my ISP, the installation was very smooth and straightforward - took under an hour. If only all software was this easy to install!

What I would like to do is to add a facility to my site allowing visitors to change font colour, size and typeface, (and possibly even choose from a range of defined page layouts?) and also change background colours, to suit those with certain visibility impairments.  Ideally, their chosen settings would be saved to a cookie and used when they revisit the site.  i have developed similar facilities through using switchable alternative stylesheets, but never got it to work entirely satisfactorily. Are there any examples of such facilities integrated into CMSMS, or do have any ideas how this might be achieved.

Thanks   

Lynbarn
Last edited by lynbarn on Fri Jul 27, 2007 8:59 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: setting up screen accesibility options / cookies

Post by RonnyK »

There is a stylesheetswitcher available, that makes is possible for the frontend-user to choose the stylesheet he/she wants.

http://dev.cmsmadesimple.org/projects/styleswitcher/

In some browsers f.e. IE7 in the bottom bar, users can choose to increase/decrease the zoomfactor theirselves. Some sites also don't use stylesheets to do so, but lead users to "View -> Font size -> ...." to set the size theirselve. The same is possible in FF but I don't have access at the moment.

Ronny
lynbarn

Re: setting up screen accesibility options / cookies

Post by lynbarn »

Thanks for that link, that could be just what I'm looking for!

I loaded StyleSwitcher according to the instructions, but could not see anything to install on the extensions screen.  Looking at some of the other modules, i noticed that they all had a module.php file the same name as the folder, so changed the name of the folder to match (the original as supplied was StylesheetSwitcher0.1 )  This then gave the following error when I next tried to enter the Extensions screen:

Parse error: syntax error, unexpected '}' in /usr/local/psa/home/vhosts/mydomain.com/httpdocs/cms/modules/StylesheetSwitcher/StylesheetSwitcher.module.php on line 61

Has anybody else used this module and found this problem, and in which case, do you have a fix for it?  I can read the php file, but I'm not sure what exactly counts as line 61, or which closing bracket (or extra opening bracket) is causing the problem.

Many thanks,
Locked

Return to “Layout and Design (CSS & HTML)”