1
nightr
How to insers php code into theme.html?
  • 2004/12/10 10:35

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


How do i insert this piece of code into theme.html?


Quote:
if ($_SERVER["PHP_SELF"]=="/modules/news/index.php") {echo ('<img src="index_25_h.gif">');} else { echo ('<img src="index_25.gif">');}


When i use <{ MY CODE }> - nothing happens. Please help a newbie

2
brash
Re: How to insers php code into theme.html?
  • 2004/12/10 10:48

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Enclose in;

<{php}>code goes here<{/php}>

3
Mithrandir
Re: How to insers php code into theme.html?

Why use <{php}>?
It's possible with simple Smarty code.

<{if $SCRIPT_NAME=="/modules/news/index.php"}>
    <
img src="index_25_h.gif" />
<{else}>
    <
img src="index_25.gif" />
<{/if}>

4
nightr
Re: How to insers php code into theme.html?
  • 2004/12/10 12:29

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


Mithrandir:
THANK YOU DUDE!!!! I LOVE YOU!!!
Exactly waht i needed!!! Thanx! you saved me lot of time!!!

Login

Who's Online

143 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 143


more...

Donat-O-Meter

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

Latest GitHub Commits