1
safir
change header of block to costomaiz image in block perferance !
  • 2008/11/25 6:13

  • safir

  • Just popping in

  • Posts: 24

  • Since: 2007/4/4 4


hi

i think that a necessary ability is not available in XOOPS block perferance .

when someone need to change header of block to an costomaiz image like this joomla example :

" site " and this is a block " header"

2
ghia
Re: change header of block to costomaiz image in block perferance !
  • 2008/11/25 11:47

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It is possible by changing the block template and refering to an image depending on the id of the block.

3
safir
Re: change header of block to costomaiz image in block perferance !
  • 2008/11/25 13:43

  • safir

  • Just popping in

  • Posts: 24

  • Since: 2007/4/4 4


thanks ! but :
1 - if it added to preference it been more professional and user friendly !

2 - which code must be change or add for refering an image to a block id ?

4
sailjapan
Re: change header of block to costomaiz image in block perferance !

Never let a man who does not believe something can be done, talk to a man that is doing it.

5
ghia
Re: change header of block to customise image in block preference !
  • 2008/11/25 23:58

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It depends a little bit on the theme you are using. So look in your theme directory.
Mosttimes you find something like theme_blockleft.html, etc.
<{if $block.title}>
    <
div class="blockTitle"><{$block.title}></div>
<{/if}>
<
div class="blockContent"><{$block.content}></div>

Try to put your image in the first div:
<div class="blockTitle">
<{
$block.title}>
<
img class="blockImage" alt="<{$block.title}>" src="images/block<{$block.content}>.jpg" />
</
div>

which displays /themes/yourtheme/images/block1.jpg etc.

6
Anonymous
Re: change header of block to costomaiz image in block perferance !
  • 2008/11/26 15:11

  • Anonymous

  • Posts: 0

  • Since:


Replace:
<div class="blockTitle"><{$block.title}></div>
with:
<div class="blockTitle"><img scr="yoursite/uploads/<{$block.title}>.jpg /></div>

then upload jpg file to /uploads folder and put the name of this file in block title box.


Login

Who's Online

153 user(s) are online (90 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

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

Latest GitHub Commits