1
deka87
Show the banner on the homepage only
  • 2008/11/13 16:57

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Hi,

I need to add a banner on a homepage only, but I do not want to put it in a block, just want to add the code in the theme.html. I know that I need to do something with <{if}>...<{/if}> but not sure what exactly.
Mind anchors

2
deka87
Re: Show the banner on the homepage only
  • 2008/11/14 11:35

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


yeah is it possible?

Mind anchors

3
sailjapan
Re: Show the banner on the homepage only

do you mean a rotating banner, as in one of several banners displayed in turn?

And what do you mean "on a homepage only"? Do you mean the top page?
Never let a man who does not believe something can be done, talk to a man that is doing it.

4
deka87
Re: Show the banner on the homepage only
  • 2008/11/14 13:12

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


i mean a general html banner and an index.php page
Mind anchors

5
Bleekk
Re: Show the banner on the homepage only
  • 2008/11/14 13:28

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


you can add something like that in the theme.html

<{if $xoops_dirname == "your_startmodul_name"}><{/if}>

6
deka87
Re: Show the banner on the homepage only
  • 2008/11/14 15:15

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


what if i don't have any startmodule? i tried to use system but it caused a blank page
Mind anchors

7
sailjapan
Re: Show the banner on the homepage only

You could build a real simple module that only displays your banner and acts as your home module.

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

8
ghia
Re: Show the banner on the homepage only
  • 2008/11/14 17:43

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
i tried to use system but it caused a blank page
As this?
<{if $xoops_dirname == "system"}>
 <
img src="yourbanner.gif" />
<{/if}>

9
deka87
Re: Show the banner on the homepage only
  • 2008/11/14 21:47

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


yea exactly. is there any other way but creating a new module? im not really good in php
Mind anchors

10
sailjapan
Re: Show the banner on the homepage only

Would you mind if I asked why you don't want to use a block?
Never let a man who does not believe something can be done, talk to a man that is doing it.

Login

Who's Online

445 user(s) are online (310 user(s) are browsing Support Forums)


Members: 0


Guests: 445


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