1
aph3x
Weather 1.3 php modif request
  • 2007/10/19 19:32

  • aph3x

  • Theme Designer

  • Posts: 834

  • Since: 2004/12/26


Hello

After cleaning small things to get the Weather module w3c complaint i came across a thing thats outta my knowledge...a smarty that produces an image path:

<{$block.image}>


produces

<img src="http://my_image_path.extension" />


All i need is to add an < alt="" > to it so w3c will like it

Any ideas ?

Thanks
Everything I'm not made me everything I am
The Themes

2
Will_H
Re: Weather 1.3 php modif request
  • 2007/10/19 20:03

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


looks like a typo,

maybe

<{$block.imageurl}> ?

3
aph3x
Re: Weather 1.3 php modif request
  • 2007/10/19 20:08

  • aph3x

  • Theme Designer

  • Posts: 834

  • Since: 2004/12/26


heh wish it was that simple

Thanks for trying Will
Everything I'm not made me everything I am
The Themes

4
Will_H
Re: Weather 1.3 php modif request
  • 2007/10/19 20:13

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


didn't really try, dev is down so I cant download the module.

5
aph3x
Re: Weather 1.3 php modif request
  • 2007/10/19 20:33

  • aph3x

  • Theme Designer

  • Posts: 834

  • Since: 2004/12/26


Fix by Suico:

Open blocks/weather_block.php

Replace line 40 with:

$marcello eregi_replace('',"",$lines[$imageLine]);
        
$marcello eregi_replace('img src','img alt="" src'$marcello);
        
        
$block['image'] = $marcello;
Everything I'm not made me everything I am
The Themes

Login

Who's Online

313 user(s) are online (223 user(s) are browsing Support Forums)


Members: 0


Guests: 313


more...

Donat-O-Meter

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

Latest GitHub Commits