DragonPrime - LoGD Resource Community

Coding Support => Coding Support Desk => Topic started by: TGTarheel on May 04, 2018, 12:04:47 PM



Title: Screenreader Accessibility??
Post by: TGTarheel on May 04, 2018, 12:04:47 PM
OK, folks...I really could use a bit of help here...everything I have tried to do does not solve the problem...and I am at a loss here..mainly because I do NOT understand what a screenreader "sees" and what it does not "see" - and what other limitations a screenreader may place on the user...only recently did I learn that screenreader users do not use a mouse...and thus, do not point and click.

Here is where the problem is...it has to do with Dave S' Ocean Ques module...a very awesome piece of work.  I have a screenreader-user  playing on my site who is complaining because she can't get the one piece of the Royal Decree....the one which appears in a block of text, and is MEANT to be difficult.  The problem is...if you assign a hotkey to that specific word it the block of text...you make it immediately, hugely visible to sighted players, thus destroying the intent that it is supposed to be hard to find.

What I would like to do...is find a way to set, by Admin only...accounts that use a screenreader...that modules could then know...and thus function differently for those players only.  It needs to be Admin-settable only...so that sighted players cannot cheat their way through...and yet screenreader users could access this aspect.

To that end, I would like to find a way to create another Superuser Flag...one that could be set only by one with Grotto Access.  But it would need to be able to be assigned to someone BY SOMEONE WHO DOES NOT HAVE THAT FLAG...because otherwise parts of the game would be destroyed for that Admin...see my problem?

I could...if I can get there...then set up a conditional, anywhere I wanted to...that of that flag was present...a different action would occur for them than everyone else.  Thus making things more accessible for the sight-challenged...while not subtracting from the game for the sighted majority.

I have my own, very personal reasons, for wanting to include everyone.  What I don't want to do is destroy it for others in order to accomplish this.

Could anyone help me get there?

I have created a new Superuser Flag by adding the following into user.php staring at line 207
Code:
"<br/><br/><b>Accessibility</b>,".
SU_SCREENREADER.    ",Player uses a screenreader".

My problem being...I can't now assign it.  because I and nobody have it.  Since I just created it.
Having the Mega User flag does not help...it still does not allow me to assign that flag to a player.

If I could get to where I COULD assign the flag I just created, that cold help me solve my problem...because then I could just set a conditional in the module...to throw up a different block of text...or even throw a navigation link...at someone if they have that flag.

Am wondering if it is possible to assign a flag to oneself...then to someone else...then take it away from yourself...and thus that player would keep it??  I don't want to screw something up here...and I am not even sure I could assign this one to myself.


Title: Re: Screenreader Accessibility??
Post by: Anharat on May 05, 2018, 01:51:40 AM
Why would you want to create a superuser flag for that? Use a module pref, far more flexible and you don't have to mess around with the core files and it can be assigned to any user you want.

An please don*t use caps lock in your texts, no one wants to be shouted at.


Title: Re: Screenreader Accessibility??
Post by: TGTarheel on May 07, 2018, 12:04:12 PM
Why would you want to create a superuser flag for that? Use a module pref, far more flexible and you don't have to mess around with the core files and it can be assigned to any user you want.

An please don*t use caps lock in your texts, no one wants to be shouted at.

Where did I use Caps Lock??  I copied the code as is...and capped a few words for emphasis.

At any rate, it's possible to do this, I suppose...I am learning a bit more, from someone else who is a screenreader user...how these screenreaders actually work, thus more able to figure out how best to make things more accessible.

© 2018 DragonPrime - LoGD Resource Community
Email Talisman: talisman -at- gmail.com
&oeXs)2U7=V BmܲV.U e=;p\}eG )Jj} C5EH7ˤH=j } mo|*Ŋw{drV_@IV>/- TFQJ׀̀Ve}l1,V O iNYx͘$e$;
Forums: Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines