1
suisss
php code into theme
  • 2006/7/24 13:42

  • suisss

  • Just popping in

  • Posts: 45

  • Since: 2004/6/20


Hi everyone,

It's maybe a stupid question.
It's there a way to put some php code into the theme.html

Thx

2
stefan88
Re: php code into theme
  • 2006/7/24 14:48

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

Yes, you need to close it in tags:


<{php}>

YOUR PHP CODE HERE

<{/php}>

..

3
suisss
Re: php code into theme
  • 2006/7/24 14:51

  • suisss

  • Just popping in

  • Posts: 45

  • Since: 2004/6/20


Thanx for the quick answer.

But when I put this code, it appears a blank page.....

4
stefan88
Re: php code into theme
  • 2006/7/24 17:16

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Try with something simple like echo ... to see where is the problem. It may be the php code that gives error.


Also try to comment it like this:



It may sound crazy, but I had to do this for one server to work...
..

5
suisss
Re: php code into theme
  • 2006/7/24 17:24

  • suisss

  • Just popping in

  • Posts: 45

  • Since: 2004/6/20


thx stefan88

I try with simple echo and comment ehehe
but without success.

6
stefan88
Re: php code into theme
  • 2006/7/24 17:34

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Well, I'm out of ideas

Maybe someone will jump here to help ...

Here is what I have in my theme:




Just an idea - can you use smary plugin to do the job, like the MySQL query/time load info hack?
..

7
stefan88
Re: php code into theme
  • 2006/7/24 19:35

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


What version of XOOPS do you have?

There is this treat about "<{php}>" tag in 2.0.14:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=51382&forum=32&post_id=228126#forumpost228126
..

8
suisss
Re: php code into theme
  • 2006/7/24 21:44

  • suisss

  • Just popping in

  • Posts: 45

  • Since: 2004/6/20


I using 2.2.4 XOOPS version.
It's perhaps a server config........

Login

Who's Online

380 user(s) are online (307 user(s) are browsing Support Forums)


Members: 0


Guests: 380


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