Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:14 pm EST
Geeklog Forums
default theme specified in config.php not being used, and want to change logo too
Status: offline
kg
Forum User
Newbie
Registered: 08/31/03
Posts: 4
I have specified \"clean\" as my default theme in my config.php file. Nevertheless, what\'s coming up is \"XSilver,\" which was the out-of-the-box default. Why is this happening? I don\'t like it; I want it to use the theme that I have specified. Where else should I look for these settings, if not in config.php (line 138)?
In addition, I should add that I do not wish to use the \"geeklog\" logo at the top of my site; I wish to use my own logo. I would think this is pretty normal that people would want to do this. Where do I go to change this? I couldn\'t locate the place where this logo is specified. Thank you.
10
8
Quote
Status: offline
Blaine
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Most likely the previous XSilver theme is being picked up in your cookie. Your last theme preference is stored and used even if you log out. Delete your cookie or try a totally different browser type which will probally store it\'s cookies elseware. I normally use IE but have opera, Mozilla and others installed for testing.
I rather not be deleting my IE cookies as I have a lots of sites I\'d like to retain them for.
Regarding the image in the header. Refer to the documentation on templates but you will find a header.thtml file under each theme that is a good template to start with - it is what defines the site header layout.
Geeklog components by PortalParts -- www.portalparts.com
Geeklog components by PortalParts -- www.portalparts.com
12
10
Quote
Status: offline
DTrumbower
Forum User
Moderator
Registered: 01/08/03
Posts: 507
Also the theme is stored in the user preference. The one in config.php is for anon users. You might need to change it in your preference.
8
11
Quote
Status: offline
ronack
Forum User
Full Member
Registered: 05/27/03
Posts: 612
It could be a refresh problem. Some IE users experience a problem in that the page will not refresh. I'm not sure what the problem is but I did find a fix.
Place this at top of the page of /layout/<theme>/header.thtml
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s" . " GMT"
// always modified
header("Cache-Control: no-store, no-cache, must-revalidate" // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache" // HTTP/1.0
?>
Place this at top of the page of /layout/<theme>/header.thtml
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s" . " GMT"
// always modified
header("Cache-Control: no-store, no-cache, must-revalidate" // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache" // HTTP/1.0
?>
30
12
Quote
Keith
Anonymous
Thank you for the replies. Today, of course, the \"problem\" is not showing up. I.e., it is showing with my preferred (\"clean\") theme, instead of the \"wrong\" theme, as it was yesterday. But I\'m betting it\'s the cookies; I didn\'t think of that. Oh wait, d\'oh! I\'m on a different computer! Hang on a sec... (dum de dum...) Yes! That\'s it! I deleted the cookie for \"theme\" on that other computer and reloaded the page; it came in with the preferences set by config.php.
For what it\'s worth, I don\'t think \"theme\" should be \"cookied,\" if it overrides what\'s selected in the preferences like this. This probably applies to \"language\" as well.
Thanks for the answers.
9
9
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Keith:For what it\'s worth, I don\'t think \"theme\" should be \"cookied,\" if it overrides what\'s selected in the preferences like this. This probably applies to \"language\" as well.
The setting in config.php is the default theme for new and anonymous users. If you allow your users to change the theme, then obviously their setting should be used instead of the default theme, don\'t you think? And the cookie is set so that the site keeps the user\'s preferred theme even when they are logged out.
IMO, this all makes perfect sense if you think about it.
bye, Dirk
10
7
Quote
t.bag
Anonymous
Quote by Dirk:The setting in config.php is the default theme for new and anonymous users.
Yes, but why can\'t I see the new default theme even after I have logged off (= anonymous user!)?
7
9
Quote
t.bag
Anonymous
Sorry, I've overlooked this information ... shame on me. This cookie thing is a good idea actually. You don't have to log in just to be able to view the weblog in the layout you prefer. I was just confused at first because normally you'd expect the settings to get lost after logging off.
7
10
Quote
All times are EST. The time is now 01:14 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content