1
mgcube
Does XOOPS ...
  • 2003/11/16 11:40

  • mgcube

  • Just popping in

  • Posts: 36

  • Since: 2003/8/31


Does XOOPS have something against having extra stuff put into the theme.html file? I am trying to add a stining line of code to my site (PHP script) but it won't let me. So i got what the php script would have done and am trying to use the Javascript and HTML from that, IT WON"T LET ME!!!! Why won't it let me. I keep getting an error. Please help. And please don't say put it in a block, it has to be at the top of the page.

2
mgcube
Re: Does XOOPS ...
  • 2003/11/16 12:38

  • mgcube

  • Just popping in

  • Posts: 36

  • Since: 2003/8/31


Can anyone help me? Anyone PLEASE!!!!!!!!!!!!!!!!!!!!!!!

3
Mithrandir
Re: Does XOOPS ...

Fewer !!'s please - And please do give us more than an hour to help you out.

Which error are you getting?

If you are adding PHP code to a HTML page, it doesn't surprise me that it doesn't work.

Could you explain in a little more detail exactly what you want to do and how it is supposed to look?

4
Jan304
Re: Does XOOPS ...
  • 2003/11/16 13:01

  • Jan304

  • Official Support Member

  • Posts: 520

  • Since: 2002/3/31


Just as Mithy, please, keep the !! as less as possible...

Ok, the best way to add php to theme.html is to not do it. You can better add in for example header.php and output it to a variable! But if you absolutely want to add php in theme.html, place it between <{php}> and <{/php}>.

5
mgcube
Re: Does XOOPS ...
  • 2003/11/16 20:59

  • mgcube

  • Just popping in

  • Posts: 36

  • Since: 2003/8/31


Ok well i don't need to do PHP i can do it in HTML and it has ro go at the VERY top of the page i am getting the error:
Quote:

This page cannot be displayed due to an internal error.

If you are the administrator of this site, please visit the XOOPS Troubleshooting Page for assistance.



Everythime i go to the upadte theme.html thing and check it to "YES" and i go to my main page i get this error.
This is what i am trying t add:
<?php include ('http://www.nettendo.com/nav/navbar.php'); ?>

6
Mithrandir
Re: Does XOOPS ...

you running PHP commands in a HTML document?

Sorry, but however convincing you say that you don't need to do PHP, it just ain't true.

7
mgcube
Re: Does XOOPS ...
  • 2003/11/17 11:38

  • mgcube

  • Just popping in

  • Posts: 36

  • Since: 2003/8/31


My host is asking me to do this. I went to someone else's site that is hosted by this persona nd i got the HTML that is produced. He just did this to make it easyer. Even when i do the HTML it still gives me and error. Can you alteast try to help me?

8
Mithrandir
Re: Does XOOPS ...

hey hey, I AM trying to help.

But I just don't see any way that PHP code can be parsed in an HTML document. AFAIK you'll need to give it a .php extension in order to get the PHP parser to "kick in".

That's all I can do

9
Catzwolf
Re: Does XOOPS ...
  • 2003/11/18 0:36

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Try it another way,

Create a php file with the contents you need and then create an include in your html file to the new php file. Hopefully the php will be parsed then. (just a shot in the dark)

10
ajaxbr
Re: Does XOOPS ...
  • 2003/11/18 2:26

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Well the code you posted seems broken.
Quote:

<?php include ('<a href=\"http://www.nettendo.com/nav/navbar.php'\"
target=\"_blank\">http://www.nettendo.com/nav/navbar.php'</a>); ?>
Is that a forums' fault or does the real code err on single quotation marks?

Login

Who's Online

187 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 187


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