1
bhknight
Modified "theme.html" file produces blank home page
  • 2004/9/16 22:38

  • bhknight

  • Just popping in

  • Posts: 5

  • Since: 2004/9/16


This one is killing me! I'm hoping someone here has experienced this or would know why this happens. I took an already exiting theme(7dana) and am using it to rebuild a custom theme of my own. Layed out the code and rebuilt theme.html making sure not to miss any XOOPS tags. Everything looks fine but when I upload it and refresh the theme, XOOPS returns this to the browser:

<html><body></body></html>


Thats it, thats all she wrote.

Things I've checked for:
- encoding of the file before upload
- all pre-existing XOOPS tags & codes are present
(i.e. <{$xoops_banner}>)
- complete <head> section unmodified

Where did I go wrong? Is there some hidden no-no I needed to have kept in tact? I would figure that even if there were issues with missing items that I would at least get a partial display, but it seems that the XOOPs system is completely rejecting the existence of the new theme.html file.

ANY input or advice shall be deserving of praise for no less than 1000 years!

"Help me Obi-Won Kenobi, you're my only hope!"

2
rcjohnson
Re: Modified "theme.html" file produces blank home page
  • 2004/9/16 23:05

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


load teh orginal theme back up. If it appears as you expect, than your formatting is off....

3
bhknight
Re: Modified "theme.html" file produces blank home page
  • 2004/9/16 23:15

  • bhknight

  • Just popping in

  • Posts: 5

  • Since: 2004/9/16


Yup, I tried that. Its definitely the formatting. But whats causing, I can't say. Does XOOPS have to "recognize" all IDs within the tags for it to be compliant?
(i.e <tr id="header">)

I guess the question I should really be asking is...
What factors would cause XOOPs to reject a theme.html file? Or what tid-bits should I ALWAYS be sure to include in my theme.html file to ensure they don't get rejected?

4
Bassman
Re: Modified "theme.html" file produces blank home page
  • 2004/9/16 23:15

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Did you change the folder name? If you did, you also need to change any reference to the folder name in theme.html - there could be up to 5.

5
bhknight
Re: Modified "theme.html" file produces blank home page
  • 2004/9/16 23:24

  • bhknight

  • Just popping in

  • Posts: 5

  • Since: 2004/9/16


Yeah, I did change the name of the theme folder, but I did that a few weeks ago with no issues. I also made sure there were no references to any names I may have modified in the theme.

6
Bassman
Re: Modified "theme.html" file produces blank home page
  • 2004/9/16 23:37

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Well, all I can suggest is getting a copy of the original theme and comparing them, see if you can find out where you've gone wrong.

7
Dave_L
Re: Modified "theme.html" file produces blank home page
  • 2004/9/16 23:49

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Mistakes in Smarty templates can be hard to locate, since Smarty doesn't produce very good diagnostics.

A couple of techniques I use in templates:

1) Comment-out sections of code until it starts working, then start uncommenting-out the code.

<{*
... commented-out ...
*}>

2) Add diagnostic output.

8
bhknight
Re: Modified "theme.html" file produces blank home page
  • 2004/9/17 1:30

  • bhknight

  • Just popping in

  • Posts: 5

  • Since: 2004/9/16


I'll work on the commenting trick, but how can I add diagnostic output?

9
bhknight
Re: Modified "theme.html" file produces blank home page
  • 2004/9/17 2:06

  • bhknight

  • Just popping in

  • Posts: 5

  • Since: 2004/9/16


Dave, you're the master!!! That commenting trick did it! About 45 minutes and I finally tracked down that I was missing a closing <{/if}>

Much, much thanks!

Login

Who's Online

142 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 142


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