Page 1 of 1
[resolved] No styles in Windows installation
Posted: Mon Jun 27, 2005 4:55 pm
by voelspriet
I love Serendipity soo much that I installed it on all my sites. That worked fine on Debian/Linux/Suse and Free BSD. But in Windows I don't have any styles.
See
http://www.voelspriet.nl/index5.php
What went wrong? If i configure a new style, still ASCII only...
Posted: Mon Jun 27, 2005 7:01 pm
by mgroeninger
From your page:
Code: Select all
<link rel="stylesheet" type="text/css" href="http://www.voelspriet.nlindex.php?/serendipity.css" />
Note the lack of a slash between the server name and the page...
Check your path settings in your configuration...
"URL to blog" should be "
http://www.voelspriet.nl/" (no quotes, and note the trailing slash)...
Also, your index file is named index5.php, while serendipity uses a hardcoded reference to index.php. Even if the path is correct it will fail unless index.php exists.
I think that is the problem.
Posted: Tue Jun 28, 2005 9:02 pm
by voelspriet
Excellent answer. It worked. (The index5.php was a copy of the index.php)
Posted: Thu Jul 21, 2005 3:52 am
by gwilsonmail
A similar problem occurs - your pages are plain text and have no style or formatting applied - if the .htaccess file is owned by someone else or does not have write access enabled for group.
i have the t-shirt on this one if anyone wants to see it

Posted: Tue Aug 16, 2005 7:34 pm
by ppalazzo
Is there a workaround for this, i.e., I do not have privileges on .htaccess and the web host refuses to grant them. How can I apply custom styles? Also, I get an error when I use the {TEMPLATE_PATH} tag on my index.tpl.
http://www.palazzo.arq.br/
Posted: Tue Aug 16, 2005 7:57 pm
by garvinhicking
Delete your .htaccess file. If you are not using the link rewriting, you can safely remove that file.
Which error do you get when using TEMPLATE_PATH?
Also check that many images on your host are returning 403 forbiddin!
Regards,
Garvin
Posted: Tue Aug 16, 2005 9:41 pm
by ppalazzo
Hi; I am getting the following error whenever I put {TEMPLATE_PATH} in my index.tpl:
Fatal error: Smarty error: [in /home/palazzo/www/templates/imagomundi/index.tpl line 33]: syntax error: unrecognized tag 'TEMPLATE_PATH' (Smarty_Compiler.class.php, line 580) in /home/palazzo/www/bundled-libs/Smarty/libs/Smarty.class.php on line 1088
I sent a service call to my hosting service asking once more to get at least delete access on .htaccess, but otherwise embedding s9y in a webpage might be the only solution.
***UPDATE***
I opened the page in a different browser (MSIE 5 instead of Safari) and the styles show up, although there are some quirks yet unresolved. I am not sure if this means the site works under IE, or that Safari will simply not be able to regenerate a s9y page if no new entries have been posted.
Posted: Wed Aug 17, 2005 1:32 am
by garvinhicking
You cannot use {TEMPLATE_PATH} in your index.tpl file; this variable is only parsed in the style.css file!
For index.tpl you must use the function {serendipity_getFile file="templatefile.png"} instead. Replace "templatefile.png" with the filename you want to get inside your template directory. You can also use img/templatefile.png if the file is in a subdirectory.
The reason for this is that the style.css file is NOT parsed by Smarty because of performance reasons, and you usually don't need Smarty in CSS code. The only replacement is made by Serendipity, where it replaces {TEMPLATE_PATH}.
Regards,
Garvin
Posted: Wed Aug 17, 2005 1:48 am
by ppalazzo
Got it. Thanks a lot!