1
konadu
Removing block headers
  • 2006/5/12 19:57

  • konadu

  • Not too shy to talk

  • Posts: 116

  • Since: 2005/11/27


Is it possible to remove the headers in your bolocks. (where you have to type the description of the block.

Or is it possible to change the colour of a particular blocks header?

Need help on this , Thanks allot




[size=x-small][Edit by Bender]Shouting removed - subject reformatted[/size]

2
JMorris
Re: REMOVING BLOCK HEADERS
  • 2006/5/12 20:25

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


You can make block titles conditional but using the following code in your theme.html

<{if $block.title != ""}> 
<
div class="blockTitle"><{$block.title}>div>
<{/if}>


If you do not specify a block title in blocks admin, the block title HML will not be generated.

Hope that helps.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
konadu
Re: REMOVING BLOCK HEADERS
  • 2006/5/13 11:06

  • konadu

  • Not too shy to talk

  • Posts: 116

  • Since: 2005/11/27


Quote:
<{if $block.title != ""}>
<{$block.title}>
<{/if}>



So i should insert this code into my theme that is where i find it right?


I will test and seee.

Thanks allot. Expect my response soon.

4
davidl2
Re: Removing block headers
  • 2006/5/13 11:39

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Very good tip James

5
konadu
Re: REMOVING BLOCK HEADERS
  • 2006/5/17 9:48

  • konadu

  • Not too shy to talk

  • Posts: 116

  • Since: 2005/11/27


Please can you help me in specifying the exact lcoation of where i should put this code.

6
konadu
Re: REMOVING BLOCK HEADERS
  • 2006/5/20 20:51

  • konadu

  • Not too shy to talk

  • Posts: 116

  • Since: 2005/11/27


help on placement of code

please where exactly in my theme should i put this code.

Quote:
<{if $block.title != ""}>
<{$block.title}>
<{/if}>



Help needed, thanks

7
msdana
Re: REMOVING BLOCK HEADERS
  • 2006/5/20 22:30

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


There are two ways possible implement this in your theme.

If your theme.html calls for external block HTML files, you need to change it there.

Example if your theme.html displays this:
Quote:
<{foreach item=block from=$xoops_lblocks}>
<{include file="default/blocks/theme_blockleft.html"}>
<{/foreach}>


Then you need to find theme_blockleft.html and change it to this
Quote:
<{if $block.title != ""}>
<{$block.title}>
<{/if}>


2. If your theme.html contains the block(s) information in itself, find this
Quote:
 <{$block.title}>


And replace with this:
Quote:
<{if $block.title != ""}>
<{$block.title}>
<{/if}>


You will need to change it for each set of blocks: left, centercenter, centerleft, centerright, and right.

I know this may seem confusing, but you really need to tell us what theme you are using or how it calls for the blocks.

But I hope it helps
[size=x-small]If God is watching us, the least we can do is be entertaining.[/size]
Graphic Worx : Xoops Themes

8
konadu
Re: REMOVING BLOCK HEADERS
  • 2006/6/21 8:46

  • konadu

  • Not too shy to talk

  • Posts: 116

  • Since: 2005/11/27


sorry i was not able to reply earlier.

The help you gave worked like magic.

I could not believe my eyes.

Thanks allot.

Login

Who's Online

290 user(s) are online (249 user(s) are browsing Support Forums)


Members: 0


Guests: 290


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