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...
[resolved] No styles in Windows installation
-
- Regular
- Posts: 11
- Joined: Sat May 28, 2005 11:47 pm
- Contact:
-
- Regular
- Posts: 546
- Joined: Mon Dec 20, 2004 11:57 pm
- Contact:
From your page:
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.
Code: Select all
<link rel="stylesheet" type="text/css" href="http://www.voelspriet.nlindex.php?/serendipity.css" />
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.
-
- Regular
- Posts: 11
- Joined: Sat May 28, 2005 11:47 pm
- Contact:
-
- Regular
- Posts: 146
- Joined: Tue Jul 12, 2005 9:12 pm
- Location: Ottawa, Canada
- Contact:
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/
http://www.palazzo.arq.br/
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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/
Hi; I am getting the following error whenever I put {TEMPLATE_PATH} in my index.tpl:
***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.
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.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
***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.
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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/