1
xueming
Is it possible to put a customer block to the header?
  • 2006/10/11 16:03

  • xueming

  • Not too shy to talk

  • Posts: 127

  • Since: 2005/2/7 6


Hello all,

Is it possible to put a customer block to the header?

Thanks for all your input/thoughts.

Regards,
Steven

2
tripmon
Re: Is it possible to put a customer block to the header?
  • 2006/10/11 18:13

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


Not sure what you mean... can you elaborate? If your asking if you can display a block in the top (commonly refered to as header) portion of the page, you can, by editing your theme.html file and determining a type of block to display there. You may also need some conditional logic (if statements to check and see if the block should be displayed).

I'm not sure what you mean by 'customer block' either.. it will be easier to get help if you can be more specific.

GL

3
xueming
Re: Is it possible to put a customer block to the header?
  • 2006/10/12 2:26

  • xueming

  • Not too shy to talk

  • Posts: 127

  • Since: 2005/2/7 6


Thanks Tripmon.

Yes, that's what I mean. Here is some details of what I want to do:

In here, Hervet has showed us how to display random pictures in a block. I did that successfully and now I want to put it (block of random pictures) in the header portion of the page. But I don't know how to do it.

Since I can do it in a customer block by adding all the php code in there, so I figured that if I can somehow put the block in the header, then I should be able to add random pictures to the header (Creating a flash effect in the header)

Hope my logic is right here :)

Thanks.

4
Bassman
Re: Is it possible to put a customer block to the header?
  • 2006/10/12 3:44

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


No need to do that.

Just use this script

Put a folder in your theme's folder, with that script and the images you want to have appear.

Then put in a link in theme.html to the script:
<img src="<{$xoops_imageurl}>/images/rotate.php">

Will show a random pic with each refresh.

5
snow77
Re: Is it possible to put a customer block to the header?
  • 2006/10/12 7:06

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


Bassman's ideas are good. Also with the module Boox from Hervet you can insert "blocks"/sections in a theme with an admin backend interface which from you'll be able to handle content displayed.
www.polymorphee.com
www.xoopsdesign.com

6
xueming
Re: Is it possible to put a customer block to the header?
  • 2006/10/12 12:45

  • xueming

  • Not too shy to talk

  • Posts: 127

  • Since: 2005/2/7 6


Bassman,
Thank you! That give me a lot of ideas. But it changes image after refresh, not exactly what we wanted. But I really like the idea! Thanks.

Snow77,
Thank you! I think that might be my solution. Let me try the module.

7
xueming
Re: Is it possible to put a customer block to the header?
  • 2006/10/12 15:25

  • xueming

  • Not too shy to talk

  • Posts: 127

  • Since: 2005/2/7 6


module BOOX works like a charm !

Thank you all for your help!!!

Login

Who's Online

278 user(s) are online (177 user(s) are browsing Support Forums)


Members: 0


Guests: 278


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