1
ibzan
PiCal - Image's "alt" tag does not display correctly
  • 2003/11/20 17:47

  • ibzan

  • Just popping in

  • Posts: 48

  • Since: 2003/8/31


I haven't seen this asked yet, but if I missed it, please excuse.

I have noticed that, for example, on the mini-calendar or on the month-view calendar, the arrow icons are supposed to be displaying text such as, "Next Month" or "Previous Month", etc.

They don't!? I have been playing around with the module and noticed that if the smarty-tag {MB_PREV_YEAR} is entered in as plain text (that is, not within the img tag) it works as it is supposed to, within the image's tag however it doesn't.
Any idea's why?

2
GIJOE
Re: PiCal - Image's "alt" tag does not display correctly
  • 2003/11/20 23:09

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


I can't see what you mean well.
Do you tried the skin feature?

Anyway, {MB_PREV_YEAR} in *.tmpl.html should be replaced the language constant '_PICAL_MB_PREV_YEAR' by patTemplate.
(* means daily, weekly, monthly, yearly)

piCal don't use Smarty but use patTemplate.

Or, do you want to use {MB_PREV_YEAR} in MiniCalendar?
If so, it is necessary to add some assignments into piCal.php, because the original MiniCalendar don't assign MB_PREV_YEAR.

3
jlm69
Re: PiCal - Image's "alt" tag does not display correctly
  • 2003/11/21 0:39

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


I think you are looking at the alt tag and thinking it should print text. All that it does is if there isn't an image, (the arrows) then it prints the word next or previous or whatever. But as long as there is an image, that is all you will see. That would be normal. Hope this is what you were asking.

4
ibzan
Re: PiCal - Image's "alt" tag does not display correctly
  • 2003/11/21 6:58

  • ibzan

  • Just popping in

  • Posts: 48

  • Since: 2003/8/31


jlm69 - actually the alt tag IS used to display something other than just the raw link or name of the link. For example if you had an image of the statue of liberty and the file name was sta_lib.jpg but you don't want something like that displaying when a person's mouse hovers over the image you would add alt="Statue of Liberty" to the img tag, causing the browser to display that instead of the other.

blessings,

Chris

5
lubdub
Re: PiCal - Image's "alt" tag does not display correctly
  • 2003/11/21 8:13

  • lubdub

  • Just popping in

  • Posts: 64

  • Since: 2002/2/28


If you look at the html specification, the alt tag is used to display something if the browser isn't able to display the image (lynx, for instance), or if the browser was set to not download images.
If you want to have a text displayed when hovering over the image, you need to use the title tag.
(Browser support may differ, but that's the html spec, and Firebird fully supports it)

Therefore, you may need/want to adapt the PiCal templates

6
ibzan
Re: PiCal - Image's "alt" tag does not display correctly
  • 2003/11/21 10:31

  • ibzan

  • Just popping in

  • Posts: 48

  • Since: 2003/8/31


Here's a quick way to check - view the source on this page and look up "edit" or "reply" for the edit and reply icons on the page.

The code looks like this:

Quote:
<img src="https://xoops.org/images/icons/edit.gif" alt="Edit" />


Note the "alt". Now I am not suggesting that that tag is primarily used in the event that the graphic does not display, however--- (pause for breath ) if you hover your mouse over them it displays the content of the alt tag and not the name of the graphic.

My whole point in this thread was not really to discuss why or even how that whole process works but to point out that in PiCal hovering over the graphic does not display the text which it is supposed to.

blessings,

Chris

7
ibzan
Re: PiCal - Image's "alt" tag does not display correctly
  • 2003/11/21 10:38

  • ibzan

  • Just popping in

  • Posts: 48

  • Since: 2003/8/31


Quote:
Anyway, {MB_PREV_YEAR} in *.tmpl.html should be replaced the language constant '_PICAL_MB_PREV_YEAR' by patTemplate.


This I fully understand - which is why I am confused. The {MB_PREV_YEAR} is not being replaced wit the language constant.

This is what I have, which doesn't seem to be doing what it is supposed to:

Quote:
<a href='{PHP_SELF}?caldate={PREV_MONTH}'>
<img src='{SKINPATH}/miniarrowleft.gif' border='0' alt='{MB_PREV_MONTH}' /></a>


Now if I take the vale of {MB_PREV_MONTH} and place it outside like this (leaving the alt= empty):

Quote:
<a href='{PHP_SELF}?caldate={PREV_MONTH}'>
<img src='{SKINPATH}/miniarrowleft.gif' border='0' alt='' />{MB_PREV_MONTH}</a>


Voila, it works - except I don't want to display the text of the language constant, but insert it so when a person hovers the mouse over it then shows it.

ideas?!?

Chris

Login

Who's Online

236 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 236


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits