<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Simple request: support for 'title' tag in a href links on menu etc]]></title>
		<link>https://punbb.informer.com/forums/topic/11126/simple-request-support-for-title-tag-in-a-href-links-on-menu-etc/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/11126/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Simple request: support for 'title' tag in a href links on menu etc.]]></description>
		<lastBuildDate>Tue, 30 May 2006 13:15:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Simple request: support for 'title' tag in a href links on menu etc]]></title>
			<link>https://punbb.informer.com/forums/post/69612/#p69612</link>
			<description><![CDATA[<p>I added the code and added an example parser in a .zip: <br /><a href="http://www.accessibility.nl/games/forum/viewtopic.php?pid=170#p170">http://www.accessibility.nl/games/forum … d=170#p170</a></p>]]></description>
			<author><![CDATA[null@example.com (Sendermen)]]></author>
			<pubDate>Tue, 30 May 2006 13:15:10 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/69612/#p69612</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple request: support for 'title' tag in a href links on menu etc]]></title>
			<link>https://punbb.informer.com/forums/post/66248/#p66248</link>
			<description><![CDATA[<p>Regex always pushes my braincells to stay active for about 20 hours on end. Can&#039;t get no sleep after five minutes of regex-mode! <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Well...actually, I added this small piece of code at line 50 of the parser...right after the lowercase-conversion. Of course there are much nicer ways to do this, but unfortunately I did not have time to find out, what&#039;s the neatest thing to do.</p><p>// sander edit -- notify when no alt is provided...<br />$pattern = &#039;/\[img\]\s*(.*?)\s*\[\/img\]/&#039;;<br />$replace = &quot;[img]$1[/img]\nYou did not provide an ALT-attribute...please edit this message and make the image accessible! Please read the document <a href="http://www.accessibility.nl/games/forum/viewtopic.php?id=16">http://www.accessibility.nl/games/forum … .php?id=16</a> for the code!\n&quot;;<br />$text = preg_replace($pattern, $replace, $text);</p><p>This places a message below the BBcode for images. </p><p>For this forum, accessibility is a must. I can imagine a more user-friendly way of telling a user right after submitting a post that the tag was left empty. However, adding a default &quot;no description provided&quot; again leaves the same old problem that it&#039;s possible to add tags, but also to forget them...people take the time to add an image, but often just don&#039;t take the time for the description...</p><p>Great to see you put in a request! And keep up the great work with this uber-user-friendliest forum!</p><p>btw, demonstration is here: <a href="http://www.accessibility.nl/games/forum/viewtopic.php?pid=44#p44">http://www.accessibility.nl/games/forum … pid=44#p44</a></p>]]></description>
			<author><![CDATA[null@example.com (Sendermen)]]></author>
			<pubDate>Tue, 11 Apr 2006 15:27:13 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/66248/#p66248</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple request: support for 'title' tag in a href links on menu etc]]></title>
			<link>https://punbb.informer.com/forums/post/66175/#p66175</link>
			<description><![CDATA[<p>I put in a request to head office for bbcode to be altered for 1.3 to allow exactly this for the same reasons as you&#039;ve done it (I can&#039;t do regex, not enough brain cells). In the meantime I will splice your code into 1.3 for testing. Shouldn&#039;t there be a default e.g. &quot;No descrption provided&quot; or something similar?</p>]]></description>
			<author><![CDATA[null@example.com (Paul)]]></author>
			<pubDate>Mon, 10 Apr 2006 17:57:41 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/66175/#p66175</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple request: support for 'title' tag in a href links on menu etc]]></title>
			<link>https://punbb.informer.com/forums/post/66174/#p66174</link>
			<description><![CDATA[<p>Hi,<br />AudioGames and I fixed the alt-thing. We added a sort of BBcode based addition with alt-text conversion in parser.php<br />Now users can add alternatives for images, just like elbekko suggested:</p><p><span class="postimg"><img src="http://www.google.nl/intl/nl_nl/images/logo.gif" alt="google logo" /></span></p><p>For a demonstration or the simple php patterns (place it before the return $text of the message in the parser, don&#039;t forget to return it after an update!), have a look here:<br /><a href="http://www.accessibility.nl/games/forum/viewtopic.php?id=16">http://www.accessibility.nl/games/forum … .php?id=16</a></p>]]></description>
			<author><![CDATA[null@example.com (Sendermen)]]></author>
			<pubDate>Mon, 10 Apr 2006 17:46:44 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/66174/#p66174</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple request: support for 'title' tag in a href links on menu etc]]></title>
			<link>https://punbb.informer.com/forums/post/66028/#p66028</link>
			<description><![CDATA[<p>A standard ALT attribute ot one that you define like [img=altxtxt ]imglink[/img] ?</p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Fri, 07 Apr 2006 12:18:31 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/66028/#p66028</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple request: support for 'title' tag in a href links on menu etc]]></title>
			<link>https://punbb.informer.com/forums/post/66027/#p66027</link>
			<description><![CDATA[<p>Hi,</p><p>Just read this topic and <a href="http://punbb.org/forums/viewtopic.php?id=5684.">http://punbb.org/forums/viewtopic.php?id=5684.</a> I&#039;d really like to have the ability to add ALT-attributes to [IMG] too because of obvious accessibility issues. Is there a simple line of code that I can add/change somewhere which lets me do this (since I&#039;m too eager to wait for the next version...)?</p><p>Greets,</p><p>Richard</p>]]></description>
			<author><![CDATA[null@example.com (AudioGames.net)]]></author>
			<pubDate>Fri, 07 Apr 2006 12:10:22 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/66027/#p66027</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple request: support for 'title' tag in a href links on menu etc]]></title>
			<link>https://punbb.informer.com/forums/post/66025/#p66025</link>
			<description><![CDATA[<p>The problem is when you are designing with people using screen readers in mind you have to be conscious of not creating pointless noise. They are quite likely to find unnecessary titles a pain in the ear and just a general nuisance in that they slow down navigating the site. That is one reason why a large number of screen reader users, so I&#039;m told, surf with the title attribute reading capability deactivated. I tend to think that if you need a title tag to explain link text then you really need to come up with better link text.</p><p>Having said that, there are some instances where titles are useful. For example take the front page of PunBB.org where the names of topics in the new topics list are truncated. Another example would be the help links for bbcode, a title saying they link opens a new window is sensible. A further example would be user names in posts, a title saying that the link goes to the users profile might be sensible since it isn&#039;t obvious what the link target is. It really comes down to using titles where they add something useful but not using them everywhere just for the sake of it.</p><p>As for the Alt atribute (its an attribute not a tag). Thats will be fixed in the next version.</p><p>As for adding additional spans to links to contain explanatory text. There is no cross browser way of doing it just using css. You can however cheat in some instances by editing the language files so they would read for example &#039;link text &lt;span&gt;some explanation&lt;/span&gt;&#039;,.</p>]]></description>
			<author><![CDATA[null@example.com (Paul)]]></author>
			<pubDate>Fri, 07 Apr 2006 11:10:27 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/66025/#p66025</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple request: support for 'title' tag in a href links on menu etc]]></title>
			<link>https://punbb.informer.com/forums/post/66009/#p66009</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>You&#039;d be hard pushed to find someone who doesn&#039;t know what &#039;User List&#039; means. </p><p>I don&#039;t think there is a single link that needs a title explaining it, and titles everywhere needlessly bumps up the page size.</p></blockquote></div><p>True about &#039;user list&#039; being understandable, but in general I think the &quot;title&quot; tag adds a level of utility to links that is desirable, with barely any impact on page payload. Every A HREF on site wouldn&#039;t need it, just those that are important (like navigation links), or which would benefit from some additional information cue being given to the user.</p><p>People appreciate small usability enhancements like that. I&#039;ve been using the &quot;title&quot; tag for years and it&#039;s sad to see it drop off that part of the site that may use Pun. </p><p>Oh, and while I came across many ways to implement &quot;title&quot; purely in CSS, to produce the equivalent &#039;tooltip&#039; functionality, I couldn&#039;t get it to happen <strong>by modifying the style sheet alone</strong> to tell it to display specific text against a specific Pun CSS ID or Class element, alas. </p><p>Most of the CSS-based approaches I found required the target HTML to have &lt;span&gt; or other elements surrounding the page link, and the content of the tooltip needed to reside in the HTML between those elements. Which of course I can only implement by directly modifying Pun&#039;s PHP, which I want to avoid.</p><p>Oh well, it&#039;s only a minor wishlist item.&nbsp; I can live without it.</p>]]></description>
			<author><![CDATA[null@example.com (sirena)]]></author>
			<pubDate>Fri, 07 Apr 2006 06:40:08 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/66009/#p66009</guid>
		</item>
		<item>
			<title><![CDATA[Re: Simple request: support for 'title' tag in a href links on menu etc]]></title>
			<link>https://punbb.informer.com/forums/post/65997/#p65997</link>
			<description><![CDATA[<div class="quotebox"><cite>sirena wrote:</cite><blockquote><p>you would have a much more informative link which displayed &#039;Search or browse a list of forum users&#039; when the mouse hovered over it, or when a text only screen-reader encountered that link. It is the same concept as using &#039;alt&#039; tags for images, and is very standard HTML.</p></blockquote></div><p>You&#039;d be hard pushed to find someone who doesn&#039;t know what &#039;User List&#039; means. </p><p>I don&#039;t think there is a single link that needs a title explaining it, and titles everywhere needlessly bumps up the page size.</p>]]></description>
			<author><![CDATA[null@example.com (Elzar)]]></author>
			<pubDate>Thu, 06 Apr 2006 22:35:41 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/65997/#p65997</guid>
		</item>
		<item>
			<title><![CDATA[Simple request: support for 'title' tag in a href links on menu etc]]></title>
			<link>https://punbb.informer.com/forums/post/65955/#p65955</link>
			<description><![CDATA[<p>This is a simple request to enhance the accessibility and usability of PunBB, at least in one small way.</p><p>At the moment no links in the standard PunBB forum menu, or any links anywhere else in punBB for that matter, support the &#039;title&#039; variable in their href code. </p><p>The &#039;title&#039; variable in HTML is very handy for enabling information about the link to be displayed when, for example, you hover the mouse over a specific link.</p><p>So for example in the main menu of punBB at the moment you get a link with HTML like this:</p><div class="codebox"><pre><code>&lt;a href=&quot;userlist.php&quot;&gt;User list&lt;/a&gt;</code></pre></div><p>whereas if you had a link that used the &#039;title&#039; variable like this:</p><div class="codebox"><pre><code>&lt;a title=&quot;Search or browse a list of forum users&quot; href=&quot;userlist.php&quot;&gt;User list&lt;/a&gt;</code></pre></div><p>you would have a much more informative link which displayed &#039;Search or browse a list of forum users&#039; when the mouse hovered over it, or when a text only screen-reader encountered that link. It is the same concept as using &#039;alt&#039; tags for images, and is very standard HTML. </p><p>I can only add the &#039;title&#039; element to those links I manually add via HTML inserted into the menu via the Administration &gt; Options page. </p><p>But it would be better if we had some way of modifying the code behind the main menu links to include this &#039;title&#039; information.&nbsp; Short of hacking the PHP pages directly, there seems no way of getting that &#039;title&#039; tag into the main menu items.</p><p>Or am I just betraying my ignorance of CSS here? </p><p>Can I get the same result by playing with the CSS defined for each menu item ID, like the id=&quot;navindex&quot;, id=&quot;navuserlist&quot; etc CSS IDs used in the menu, and somehow do something with punBB style sheets to achieve the same thing? :</p><p>On a related note, punBB also doesn&#039;t seem to set any alt text for any images anywhere, for eg here, for the avatar displayed in a post:</p><div class="codebox"><pre><code>&lt;img src=&quot;img/avatars/2.gif&quot; width=&quot;64&quot; height=&quot;80&quot; alt=&quot;&quot; /&gt;</code></pre></div><p>You should at least populate that alt tag with something like &#039;avatar image&#039;, I think. Improves accessibility and usability a bit.</p>]]></description>
			<author><![CDATA[null@example.com (sirena)]]></author>
			<pubDate>Thu, 06 Apr 2006 04:50:22 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/65955/#p65955</guid>
		</item>
	</channel>
</rss>
