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

How To Show images' alt Attribute?!

List posts in the topic

none How To Show images' alt Attribute?!

msg# 1
Previous post - Next post | Parent - No child | Posted on 2008/3/1 14:55 | Last modified
startace  二等兵   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

Posts tree

  Advanced search

Username or e-mail:


Remember Me

Lost Password?

Register now!