[resolved] No styles in Windows installation

Having trouble installing serendipity?
Post Reply
voelspriet
Regular
Posts: 11
Joined: Sat May 28, 2005 11:47 pm
Contact:

[resolved] No styles in Windows installation

Post 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...
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post 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.
voelspriet
Regular
Posts: 11
Joined: Sat May 28, 2005 11:47 pm
Contact:

Post by voelspriet »

Excellent answer. It worked. (The index5.php was a copy of the index.php)
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post 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 :?
gw
ppalazzo
Regular
Posts: 10
Joined: Sun Sep 26, 2004 5:38 am

Post 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/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ppalazzo
Regular
Posts: 10
Joined: Sun Sep 26, 2004 5:38 am

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ppalazzo
Regular
Posts: 10
Joined: Sun Sep 26, 2004 5:38 am

Post by ppalazzo »

Got it. Thanks a lot!
Post Reply