11
shivaji
Re: How to change textual Block Title into Images ?
  • 2004/1/5 18:18

  • shivaji

  • Friend of XOOPS

  • Posts: 179

  • Since: 2003/9/18


Quote:

studioC wrote:
yes, i thought about it... i also tried to place it in the modultemplates, but that wasn#t as good... i#m also thinking about an array, to give me the opportunity to it use in the theme.. such as <{block_poll}>blockimage.gif
hm... i think i will do some practices today...
greets again...
michael


Hello:

Good Idea, but for every new addition of block you neeed to put one more array at bottom of all declared arrays in theme file. Please let me know the results.

Thanks,

12
studioC
Re: How to change textual Block Title into Images ?
  • 2004/1/5 19:12

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


YES...
it#s sure not that way a coder would do, but without scratching the core i#m always looking for a simple solution which works for ME..somewhere....

What about using...

<img src="<{$xoops_imageurl}>blocks/images/<{$block.title}>bimage.gif" alt="" />

instead of
<div class="blocklinksTitel"><b><{$block.title}></b></div>
-------------------------

in that kind of block YOU want the images as a header e.g.[theme_blockleft.html]
YOU only need to give the block a title and create an image named like this title...+xxx.gif which you can place in a folder you declare...

what do you say? little work by hand but great effekt, isn#t it?


michael...

13
studioC
Re: How to change textual Block Title into Images ?
  • 2004/1/5 19:19

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


you can see it in action for the next hours... at a testside at..

REMOVED THAT LINK AFTER EXPERIENCE...

at the bottom right where 3 images are shown with blubbertext....

greetings..

14
svaha
Re: How to change textual Block Title into Images ?
  • 2004/1/5 19:52

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Hi Shivajii and Michael, I have a question. I use the title text in the blocks and modules for my multilingo site. So the title of news is [ee]News[/ee][nl]Nieuws[/nl] Dependent on the language News or Nieuws is shown. This title is also used when I go 'into' a module, so I need this text. But I like the idea of images instead.
Now my question, could it be possible to keep the text and just overwrite it with an image ?

Thanks

15
studioC
Re: How to change textual Block Title into Images ?
  • 2004/1/5 20:08

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


hello svaha,...
by xoopsing or let me say using XOOPS you can nearly do everythink... nearly..


in that way i told, the title would not be deleted but used for "creating" a filename xxx.gif ..
My idea makes only sense if you could use small titles like block1 or block2... if you have longer titles with more words that would not work..

i don#t know if i understand correctly but you sure .. may use <img src="<{$xoops_imageurl}>blocks/images/<{$block.title}>bimage.gif" alt="" /> +++ <{$block.title}>

or such variations by using that <{$block.title}>&xxxx
..hm...

hm... by using multilangual for your title [?]

16
svaha
Re: How to change textual Block Title into Images ?
  • 2004/1/5 20:36

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


It is easy to change things in my theme depending on language. I did this already with the menu bar that's on top of my site :
Quote:
<{if $xoops_langcode == 'en'}>
<!-- Load English menu -->
<{else}>
<!-- Else load Dutch menu -->
<{/if}>


So I could use this also to load the correct image. But I now realize that I am probably thinking too simple (normally it's too difficult ) so I will let this idea boil a little more in my mind.
btw:your site is changed indeed !

Aloha

17
shivaji
Re: How to change textual Block Title into Images ?
  • 2004/1/6 2:07

  • shivaji

  • Friend of XOOPS

  • Posts: 179

  • Since: 2003/9/18


Quote:

svaha wrote:
It is easy to change things in my theme depending on language. I did this already with the menu bar that's on top of my site :
Quote:
<{if $xoops_langcode == 'en'}>
<!-- Load English menu -->
<{else}>
<!-- Else load Dutch menu -->
<{/if}>

Aloha


Aloha brings, a Global Focus into the title block modification. We both may take your help. So please be there.

Yes, I saw Michael website first time, and I like it, its unique.


18
BradM
Re: How to change textual Block Title into Images ?
  • 2004/1/6 2:31

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


I'm not sure if this will help, but here is a hack I posted a little while ago in the theme hack forum. It basically changes all the center block text to graphics.


Brad

19
GadgetMn
Re: How to change textual Block Title into Images ?
  • 2004/1/6 9:09

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


Shivaji,

I agree with studioC. In this exmple below I have simply changed the first <div> in the theme_blockleft.html in the Default theme.

The original code is:

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


Simlpy replace the first <div> giving you:

Quote:
<img src="/images/<{$block.title}>.gif" width="xxx" height="xx" alt="<{$block.title}>"/>
<div class="blockContent"><{$block.content}></div>


This simple solution is also MultiLingual as you just need to provide images with the same name as the block title in all languages.

the only place where this falls over is where the title contains information picked up from a variable or profile. For that I suggest you simply re-organise the block so that the title can be an image and the variable is presented somewhere in the block itself.

Not sure if this is perfect, but it will work in most instances.

Cheers,

GandgetMn

20
shivaji
Re: How to change textual Block Title into Images ?
  • 2004/1/6 12:47

  • shivaji

  • Friend of XOOPS

  • Posts: 179

  • Since: 2003/9/18


Quote:

BradM wrote:
I'm not sure if this will help, but here is a hack I posted a little while ago in the theme hack forum. It basically changes all the center block text to graphics.


Brad


Yes !!!

Tested and it's working perfectly well ! Now the website looks gr8 :)

I use this code for left and right block also and not only in center block.

Thank you Brad for your timely support.


Login

Who's Online

168 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 168


more...

Donat-O-Meter

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

Latest GitHub Commits