PEAK XOOPS - How To Show images' alt Attribute?! in englishin japanese

How To Show images' alt Attribute?!

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - No child | Posted on 2008/3/1 14:55 | Last modified
startace  Private   Posts: 5
Here is some code for homepage blocktitles to show images instead of texts.But How To Show images' alt Attribute.
(statement for images or explanations for images)

Thank you Very Much!

Take "theme_blockleft.htm" for example¡§


<div class="blockTitle"><{$block.title}></div>
<div class= "blockContent"><{$block.content}></div>

mend it¡§

<{if $block.title|regex_replace:"/.*\[\[.*/":"Picture True" eq "Picture True"}>
<div class="blockTitle">
<img src="<{$block.title|regex_replace:"/.*\[\[/":""}>" alt="<{$block.title|regex_replace:"/\[\[.*/":""}>">
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
Votes:9 Average:7.78

  Advanced search

Username or e-mail:


Remember Me

Lost Password?

Register now!