How do I remove a special cursor pop-up (General)

by Paul Brouwer, Friday, July 31, 2009, 23:04 (5385 days ago)
edited by Alfie, Saturday, August 01, 2009, 00:47

I hat the display of any pop-ups en toolbars when reading the forum, so I removed most of the Alt="blabla" an title="blabla".

There is just one pop-up I'm not able to remove and cann't fing if anywhere.

When the mousepointer goes over an picture, the pop-up "[image]" is shown above
the mousepionter, but I cann't find it where it's located or generated.

Does anybody have an idea? I woul be gratefull. :-D

Grgards,
Paul

Avatar

tooltip (alt, title, accessibility)

by Alfie ⌂, Vienna, Austria, Saturday, August 01, 2009, 00:17 (5385 days ago) @ Paul Brouwer
edited by Alfie, Saturday, August 01, 2009, 16:37

Hi Paul!

I hat the display of any pop-ups en toolbars when reading the forum, so I removed most of the Alt="blabla" an title="blabla".

I guess you are talking about a "tooltip" which becomes visible if hovering with the mouse-pointer above an object? That's not a pop-up!
In (X)HTML 1.0 Strict the alt-attribute is required for the image-tag (if you remove it, the page will not be valid any more). If you don't like it, replace the content with an empty string (alt=""). But it's not a good idea anyhow. Users with text-based browsers - or if graphics are switched off - are left out in the rain.

The title-attribute for any tag is optional. Old IE's (prior to v7) erroneously show the content of the alt-attribute if no title-attribute is given. If you want to get rid of it, either remove it completely or (better!) set it to title="".

Let's look at an example:
The Ajax-preview is marked with a small "speech bubble" [image] and the tooltip "Show preview" (that's the title). Without graphics you see the text "[…]" instead (that's the content of the alt-attribute of this image), and the same tooltip. If you remove the title, you see the content of the alt-attribute in the tooltip in IE<6, any nothing in modern browsers (might be confusing, because users have to guess, what "[…]" means). If you remove both the alt and the title, the Ajax-preview is not accessible any more!

Information from the W3C-specification:
alt-attribute: Text contained within the alt attribute is used to specify alternative information that should be shown if an image is inaccessible.
title-attribute: Text contained within the title attribute is used to display additional information.

That's exactly what the forum's scripts do (click here to check); you made some modifications in your forum, which resulted in invalid HTML (check here).

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

tooltip (alt, title, accessibility)

by Paul Brouwer, Saturday, August 01, 2009, 14:41 (5384 days ago) @ Alfie

Hi Helmut,

Thanks for your answer. You are right. I did mean those "toolstips".
They may be needed for the browser, but I don't see any use/reason to show them on-screen.

It looks pretty silly when the mousepointer is on a picture and the "tooltip" says "[image]"
I know that and most users know that it is an image. :-P

Regards,
Paul

tooltip (alt, title, accessibility)

by Auge, Saturday, August 01, 2009, 14:46 (5384 days ago) @ Paul Brouwer

Hello

Thanks for your answer. You are right. I did mean those "toolstips".
They may be needed for the browser, but I don't see any use/reason to show them on-screen.

Then use an empty alt-attribute, like Alfie said. This attribute is needed as he described.

Tschö, Auge

Avatar

Workaround for IE<7

by Alfie ⌂, Vienna, Austria, Saturday, August 01, 2009, 15:43 (5384 days ago) @ Paul Brouwer
edited by Alfie, Saturday, August 01, 2009, 19:29

Hi Paul!

It looks pretty silly when the mousepointer is on a picture and the "tooltip" says "[image]"

OK, as already said that's a bug in M$-IE (pre 7). :angry:

  • [image] IE 6.0.2900.5512
  • [image] Seamonkey 1.1.17

If you want to replace the alt-attribute with an empty one, edit functions.inc.php – in the current version 2.1.1 lines 455 and 460. If you have an older version locate the 2nd occurancy of the string

// [img]image[/img]

and edit lines just below. Change from

    if(!isset ($attributes['default'])) return '<img src="'.htmlspecialchars($content).'"
alt="[image]" />';
    return '<img src="'.htmlspecialchars($content).'" style="float:'.htmlspecialchars(
$attributes['default']).';padding:'.$padding.';" alt="[image]" />';

to

    if(!isset ($attributes['default'])) return '<img src="'.htmlspecialchars($content).'"
alt="" />';
    return '<img src="'.htmlspecialchars($content).'" style="float:'.htmlspecialchars(
$attributes['default']).';padding:'.$padding.';" alt="" />';


The better solution (which works in all browsers, and gives in text-browser still the information that an image is there) would be to keep the alt-attribute and add an empty title-attribute (for IE<7 only):

    if(!isset ($attributes['default'])) return '<img src="'.htmlspecialchars($content).'"
alt="[image]" title="" />';
    return '<img src="'.htmlspecialchars($content).'" style="float:'.htmlspecialchars(
$attributes['default']).';padding:'.$padding.';" alt="[image]" title="" />';

Untested! I'm not using v2 myself (but I'm using a similar solution in my installation; check this post in IE6).

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

Workaround for IE<7

by Paul Brouwer, Saturday, August 01, 2009, 16:19 (5384 days ago) @ Alfie

Hi Helmut (Alfie)

I changed the function.inc.php as you told me. It works fine with Firefox.
On my other machine I use IE6 and that tooltip still appears there (as said).

So far no problems and will keep on testing it.

Thanks and regards,
Paul

Avatar

Workaround for IE<7

by Alfie ⌂, Vienna, Austria, Saturday, August 01, 2009, 16:29 (5384 days ago) @ Paul Brouwer
edited by Alfie, Saturday, August 01, 2009, 19:30

Hi Paul,

something must have happended with your edit or the upload to the server. The HTML-source of this post still comes up as:

<p>Te koop video2000 recorder, werking? ophalen 10,00 euro<br />
<img src="images/uploaded/200907302049504a71eb4e64273.jpg" alt="[image]" /></p>

If you test the page, be sure to clear the browser's cache and refresh the page (IE is notorious for it's memory).

P.S.: And change in your main template

<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

to

<meta http-equiv="imagetoolbar" content="no" />

All tags in XHTML 1.0 Strict must be lower-case, and end with "/>".

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

Workaround for IE<7

by Paul Brouwer, Saturday, August 01, 2009, 17:05 (5384 days ago) @ Alfie

Hi Helmut,

Hmm... I've checked the edited file and it looks fine to me.
If I only knew where that Alt-code is coming from..... :-(

Regards,
Paul

Avatar

Workaround for IE<7

by Alfie ⌂, Vienna, Austria, Saturday, August 01, 2009, 17:09 (5384 days ago) @ Paul Brouwer
edited by Alfie, Saturday, August 01, 2009, 19:28

Hi Paul!

If I only knew where that Alt-code is coming from..... :-(

Only from functions.inc.php. Contact me by e-mail and I can look at your script.

Second solution worked.

<p>Te koop video2000 recorder, werking? ophalen 10,00 euro<br />
<img src="images/uploaded/200907302049504a71eb4e64273.jpg" alt="[image]" title="" /></p>


P.S. @Alex: I opened a bug-report - IMHO should go with the next revision.

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

Workaround for IE<7

by Paul Brouwer, Saturday, August 01, 2009, 19:24 (5384 days ago) @ Alfie

Hi Helmut,

Thanks to your help this problem is solved. :ok:

Thank you very much.

Regards,
Paul

Avatar

Workaround for IE<7

by Alex ⌂, Monday, August 03, 2009, 03:32 (5383 days ago) @ Alfie

P.S. @Alex: I opened a bug-report - IMHO should go with the next revision.

I don't think empty title attributes are very reasonable. Furthermore I do not make major efforts for IE 6 anymore.

Alex

Avatar

Workaround for IE<7

by Alfie ⌂, Vienna, Austria, Monday, August 03, 2009, 12:00 (5382 days ago) @ Alex

Hi Alex!

I don't think empty title attributes are very reasonable.

But they help resolving a bug in IE<7. If no title-attribute is given, IE<7 displays the alt-attribute, which is really stupid.

Furthermore I do not make major efforts for IE 6 anymore.

Come on, two lines of code - I wouldn't call that a major effort. I'm running a forum for a global audience and according to my server logs still 60% of user-agents are IE6 (or lower).

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

Workaround for IE<7

by Auge, Monday, August 03, 2009, 12:14 (5382 days ago) @ Alfie

Hello

I don't think empty title attributes are very reasonable.


But they help resolving a bug in IE<7. If no title-attribute is given, IE<7 displays the alt-attribute, which is really stupid.

It may be stupid (and I think so too), but it is not a bug! There is no directive inside the HTML-standard, how to handle alt-attributes content except to show it if an image could not be displayed. It is not illegal to show it's content additional(!) in a bubble.

I'm running a forum for a global audience and according to my server logs still 60% of user-agents are IE6 (or lower).

Whow 60% with IE6 or lower? To use IE6 because it is predetermined, is o.k. It is like it is. But to use an older version than 6 is ...

Tschö, Auge

Avatar

Workaround for IE<7

by Alfie ⌂, Vienna, Austria, Monday, August 03, 2009, 12:20 (5382 days ago) @ Auge
edited by Alfie, Monday, August 03, 2009, 14:12

Hi Auge!

It may be stupid (and I think so too), but it is not a bug! There is no directive inside the HTML-standard, how to handle alt-attributes content except to show it if an image could not be displayed. It is not illegal to show it's content additional(!) in a bubble.

OK, you are right.

Whow 60% with IE6 or lower? To use IE6 because it is predetermined, is o.k. It is like it is. But to use an older version than 6 is ...

≈⅔ of accesses to my forum are coming from India… v5.5 seems to be 'popular' in internet-cafés.

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

Workaround for IE<7

by Elena, Tuesday, September 29, 2009, 22:14 (5325 days ago) @ Paul Brouwer

interesting..

How do I remove a special cursor pop-up

by Eric ⌂ @, Monday, August 31, 2009, 19:23 (5354 days ago) @ Paul Brouwer

I read the first bit of the thread and a bit of the rest, it's all a bit tl;dr for me.

If you go to:
includes/functions.tpl.inc and find "<img" you'll find the html which is created for newly uploaded images, inline is the alt="[image]" you're after. Insert a blank space if you wish.

This will only work with newly uploaded images.

How do I remove a special cursor pop-up

by Auge, Tuesday, September 01, 2009, 17:16 (5353 days ago) @ Eric

Hello

I read the first bit of the thread and a bit of the rest, it's all a bit tl;dr for me.

If you go to:
includes/functions.tpl.inc and find "<img" you'll find the html which is created for newly uploaded images, inline is the alt="[image]" you're after. Insert a blank space if you wish.

This will only work with newly uploaded images.

As suggested by Alfie :-)

Tschö, Auge

RSS Feed of thread