Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
9 - 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: How do I hide the title of a custom block?
by tzvook on 2009/12/23 21:24:31

Quote:

demian wrote:
the cool code by tzvook above is wrong..
tq..this is awesome


It's not wrong , It's an old post, there's a later post in the forums with an explanation about changes in the "truncate" thing with UTF ( the smarty "truncate" is not working with UTF-8 ) ...
all my sits are still using this code

Long time ....
Re: How do I hide the title of a custom block?
by kris_fr on 2009/12/19 1:45:14

le="color: #000000"><?php <{if $block.title}> <div class="xo-blocktitle"><{$block.title}></div> <{/if}> <div class="xo-blockcontent"><{$block.content}></div>
Re: How do I hide the title of a custom block?
by demian on 2009/12/19 1:18:28

the cool code by tzvook above is wrong..


here is the correct one

i tried it myself..hope it helps ..
le="color: #000000"><?php <{if $block.title|truncate:9:"" == "no-header"}> <div class="blockTitle"></div> <{elseif $block.title != ""}> <div class="blockTitle"><{$block.title}></div><{/if}> <div style="padding-bottom: 5px;" class="blockContent"><{$block.content}></div>


tq..this is awesome
Re: How do I hide the title of a custom block?
by nachenko on 2007/6/21 10:20:11

tzvook's solution is the sophisticated version of what I suggested, and it's the best solution you'll find. I strongly recommend that.
Re: How do I hide the title of a custom block?
by tzvook on 2007/6/21 9:24:42

There is simplyer solution:

you can add this line to your theme files

le="color: #000000"><?php <{if $block.title|truncate:9:"" == "no-header"}>


and each block name that will start with "no-header" won't have a title

my blocks at the theme files looks like this ( you can do it to all your blocks locations - right, center, left and so ... )

le="color: #000000"><?php <{if $block.title|truncate:9:"" == "no-header"}> <div class="blockTitle"><{$block.title}></div> <{elseif $block.title != ""}> <div class="blockTitle"><{$block.title}></div><{/if}> <div style="padding-bottom: 5px;" class="blockContent"><{$block.content}></div>

Who's Online

194 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 194


more...

Donat-O-Meter

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

Latest GitHub Commits