PDA

View Full Version : Accessibility hacks--are these possible?


Godfather
10-25-2004, 05:08 PM
ArticleLive 2005 PHP looks awesome, and I am excited to implement it on my sites. One issue I have, however, is that I need to have Level-2 Accessibility for these websites.

To that end, would these hacks be possible?

1) change "full article" link text to instead read as the title of the article does (or remove "full article" link and instead simply link the article's title to the full article).

2) remove "print this article" from the article summary, but allow it in the full-article.

The bottom line is that each link must be unique if it is pointing to a unique URL. For example, "full article" cannot work because that is the same text pointing to different articles (and this confuses those visitors using screen readers, as they cannot know which "full article" goes with which article).

Does this make sense?

Most importantly, do you think a hack could be made to make the above requests possible? And if so, any suggestions, maybe?

Thanks!

Godfather
11-04-2004, 05:35 PM
Is it safe to assume that these hacks are evidently not possible? :(

Keith
11-04-2004, 05:56 PM
I'm pretty sure both requests you made are possible. I don't know how myself, because I haven't looked at the code as of yet.

Godfather
11-04-2004, 09:30 PM
Thanks Keith, for responding...I haven't made any attempts to hack, either, as I haven't purchased a license yet. It's sort of a chicken-and-egg scenario; I can't hack until I buy the software, yet if I buy the software and cannot create the needed hacks, it's useless to me.

Mitch (Interspire Staff)
11-05-2004, 12:22 AM
Hey Godfather,
Yes these hacks are possible, quite easily actually as everything is template and panel driven. As you know, we don't normally provide customizations, but if you want to pop me an email when you need them done, including exactly what you need done then I can make it happen for you :)

Keith
11-05-2004, 07:42 PM
Now that's what you call Customer Service - or Pre-Customer Service in this case :D

Godfather
11-06-2004, 09:42 AM
What can I say Mitch...you da man! I'll be purchasing this probably next week sometime, and will definitely get in touch with you on that hack. Very generous of you, I must say!

Oh, and Keith...I may be new to ArticleLive, but definitely not new to Interspire. As much as Mitch and Eddie try, they just can't get me to quit coming back to them for more. LOL :)

Keith
11-06-2004, 01:42 PM
Mytch has been very kind to me too.

amitos
11-08-2004, 01:44 PM
Hey people, i've got the solution to Godfather's request. All you've gotta do is tweak the code a little...remove some lines from both RecentArticlesPanel.php and FeaturedArticlesPanel.php. Here's how you do it:

Find and Delete the following code:


if($articleRow["Type"] == 1)
{
$output .= sprintf("

<a target='%s' href='%s'><img src='%s/icon_FullStory.gif' border=0 align=absmiddle>&nbsp;%s</a>&nbsp;&nbsp;

", $target, AL_HELPER::ArticleLink($articleRow["ArticleID"], $articleRow["Title"]), AL_TPL_IMAGE_PATH, $GLOBALS["AL_LANG"]["hpFullStory"]);
}
else if($articleRow["Type"] == 3)
{
$output .= sprintf("

<a href='%s' target='_blank'><img src='%s/icon_VisitSite.gif' border=0 align=absmiddle>&nbsp;%s</a>&nbsp;&nbsp;

", AL_HELPER::ArticleLink($articleRow["ArticleID"], $articleRow["Title"]), AL_TPL_IMAGE_PATH, $GLOBALS["AL_LANG"]["hpVisitSite"]);
}

if($GLOBALS["AL_CFG"]["EnablePrintArticle"] == 1)
{
$output .= sprintf("

<a target=_blank href='%s/print/%d'>
<img src='%s/icon_Print.gif' border=0 align=absmiddle>&nbsp;%s</a>

", AL_HELPER::ArticleLink($articleRow["ArticleID"], $articleRow["Title"]), $articleRow["ArticleID"], AL_TPL_IMAGE_PATH, $GLOBALS["AL_LANG"]["hpPrinterVersion"]);

}


It can be found in between:

", $GLOBALS["AL_LANG"]["hpBy"], AL_HELPER::AuthorLink($articleRow["AuthorID"], $author), $author, $GLOBALS["AL_LANG"]["hpPublished"], AL_HELPER::GetRelativeDate($articleRow["SD"]), AL_HELPER::GetCategoryListCVS($articleRow["ArticleID"]), AL_HELPER::GetRatingBar($articleRow["ArticleID"]), AL_HELPER::GetAuthorPic($articleRow["AuthorID"]), $articleRow["Summary"]);

AND

$output .= "</div>";

In short, delete lines 107-132 in FeatureArticlesPanel.php and 109-135 in RecentArticlesPanel...

Trust it helps but if you're still a lil confused, do let me know and i'll send you the files. I used it on my site for a while but i kinda fancy the icons. Really depends on ure design though.

Cheers!
Amitos

Godfather
11-11-2004, 09:57 PM
Wow that's great Amitos, I sure do appreciate your input! I'm excited to get my hands on ArticleLive and get started with these hacks. Hopefully tomorrow or this weekend (the week is just slipping by on me way too fast!).

Thanks guys!!

amitos
11-14-2004, 06:31 PM
Hey Godfather!

It's a pleasure..thanks for the compliment. Let me know if you'd like more hacks....can't promise but im up for the challenge. Still got lots to learn but its sure been fun. Hope you'll enjoy AL as much as i have.

Blessings,
Amit
a.k.a. Amitos

PSTnews
08-16-2005, 06:38 PM
YES, I NEED HELP WITH THIS

in my site i will have this

Barua kutoka kwa Wagombea
Habari na Safari za Kampeni
Hotuba
Ilani ya CCM
Imani ya CCM
Jakaya Kikwete
Jarida Pepe
Kampeni
Katiba ya CCM
Malengo ya CCM
Maoni ya Wapiga Kura
Matukio na Mialiko
Mohamed Shein
Timu ya Kazi
Utangulizi
Watawala
Wathamini

but they are in alpharbetical order

so i want them to be Like this

Utangulizi
Jayaka Kikwete
Mohamed Shein
hotuba
Ratiba
Kamati ya CCM
therest go ahead..


so can anybody help me with this

Godfather
08-18-2005, 06:57 PM
PST--it seems to me the easiest route would be to hard-code your menu into the template. Just edit the appropriate template files using your favorite WYSIWYG editor.