Modules and plugins

RSS
Page: ()   1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18 ...576   ()

Block: Accessibility

Type: Block
Requires: Moodle 1.9 or later
Status: Contributed
Maintainer(s): Mark Johnson

This block provides a set of buttons allowing users to customise font sizes on the page.
Settings are stored in the user's session, allowing them to persist between pages. Settings can also be saved to the database, allowing them to keep the settings even if they log out.

New feature 26/08/2009 - Added buttons to allow you to change the site's colour scheme.

Installation:
  1. Download the block and unzip to /blocks/ as normal, and go to the admin page to run the installation.
  2. Paste the following line of code into the header.html file of any themes you use on the site, just before </head>:
    <!-- one-line patch to allow custom font sizes from block_accessibility --><link title="access_stylesheet" rel="stylesheet" href="<?php if($CFG->wwwroot != $CFG->httpswwwroot) {echo $CFG->httpswwwroot;} else {echo $CFG->wwwroot;} ?>/blocks/accessibility/userstyles.php" type="text/css" />
  3. Add the block to pages - you might want to make it sticky so that users can always find it in the same place.




Record added by Mark Johnson - Friday, July 17, 2009, 04:24 PM
Last modified - Wednesday, November 18, 2009, 11:49 PM
Picture of Gemma Heggie
by Gemma Heggie - Monday, August 17, 2009, 09:04 AM
 

Hi there,

This feature looks good - however the download link does not seem to work?


Picture of Mark Johnson
by Mark Johnson - Tuesday, August 25, 2009, 04:43 PM
 

Sorry about that - it's now fixed!
I've also updated the header patch to support HTTPS.

Picture of Robert (Bob) Singletary
by Robert (Bob) Singletary - Friday, September 11, 2009, 04:03 AM
 

Hi Mark,

Very nice block...we just implemented it on our site. One issue regarding the following feature:

"Settings can also be saved to the database, allowing them to keep the settings even if they log out."

When clicking Save button, message appears indicating settings saved, but reverts to default settings when re-entering the course. Is this a permissions issue or do we need to tweak code (thought I saw something about this in the tracker, but not sure). Any advice would be appreciated. We are running Moodle 1.9.5 (Build 20090515).

Also, I notice that when using the Font size buttons, a browser refresh is necessary to clean up the redisplay of the block. This is not a huge issue, but just mentioning it in passing.

Kind Regards,

Bob

Picture of Robert (Bob) Singletary
by Robert (Bob) Singletary - Friday, September 11, 2009, 04:07 AM
 

Mark,

One follow up. I will check to make sure our admin added the line of patch code to the theme header. That may be the issue. Will let you know.

~Bob

Picture of Dave Phillips
by Dave Phillips - Monday, September 14, 2009, 11:13 PM
 

Hi Guys,

Im experiencing the same issue here Bob even with the code added to the header.html file.
Im just taking a look at adding a refresh & i'll post if I manage it.

Dave

Picture of Paul Taylor
by Paul Taylor - Wednesday, September 16, 2009, 04:15 PM
 

Hi Mark:

I need to add some text either as an alt or a title to the block (or as a footer). Looking through all of the files in the block, I can't see how this can be done. Any pointers?

Paul

Picture of Javier García
by Javier García - Wednesday, September 16, 2009, 10:24 PM
 

Hi Mark:

When I run the installation, I get this error:
Module accessibility: /var/www/cursos/mod/accessibility/version.php was not readable

I can not find the file version.php

Javier

Picture of Javier García
by Javier García - Wednesday, September 16, 2009, 10:43 PM
 

Sorry,

Wrong installation directory. The module works perfectly.

Picture of Javier García
by Javier García - Wednesday, September 16, 2009, 10:43 PM
 

Sorry,

wrong installation directory. The module works perfectly.

Thans

Picture of Alan Dunnett
by Alan Dunnett - Tuesday, October 20, 2009, 06:40 PM
 

Nice Block smile

However, I installed it on my test server and everything seems to work fine except when changing the text size.

The size of text changes in the header but not the menus or course titles etc. 

Using Moodle1.9.4+ (Build: 20090218) with IE7

Any clues as to what I may be doing wrong?

Picture of Mark Johnson
by Mark Johnson - Wednesday, November 18, 2009, 11:57 PM
 

Hi guys, sorry I haven't had a chance to check this page for a while - Thanks for all your comments!
People having problems, I've changed the download link to point to the packaged-up code from CVS. If you can try this and let me know if the problems still exist, that would be awesome.

Paul, if you want to add some extra text into the block, you'll want to edit block_accessibility.php. Under the line that reads "global $CFG, $USER;" add the following:
$this->content->text .= '<p>Your Text Here</p>';

Hope that helps!

P.S. Alan, my college uses Firefox and IE 8 so that's what the block is built for, unfortunately. It's probably possible to get it working on IE 7 with some CSS hacks, but I'm afriad I don't have the time or inclination to do so. Anyone who does is more than welcome to submit a patch to the tracker!


Page: ()   1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18 ...576   ()