Tags:
create new tag
view all tags

Question

I've set some user-level preferences in my Twiki user page (Twiki.Main.ChrisToomey), but they're not being used when I view pages on our Twiki web. Here are the specific prefs. I've set in my page:

* SET WEBBGCOLOR = #999999
* SET HTTP_EQUIV_ON_VIEW = <style type="text/css">body {font-family: "Times New Roman", serif;}</style>
What might be preventing these from being used?

thanks, Chris

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: None (?)
Server OS: FreeBSD 4.8
Web server: Apache 1.3.27
Perl version: 5.00503
Client OS: Win XP SP1
Web Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 MultiZilla/1.6.3.0e

-- TWikiGuest - 12 Aug 2004

Answer

You have to indent them with three (or six, nine, ...) spaces each, e.g.:
   * Set ...
   * Set ...

You should also make sure that the preferences you want to set/change are not declared unchangeable in WebPreferences or TWikiPreferences (e.g. Set FINALPREFERENCES ...).

-- ChristianKohl - 13 Aug 2004


Hi Christian, thanks for responding.

My user pref lines were properly indented, so that's not the cause. I've attached the site, web, and user prefs files, can you or somebody else have a look and see if you can find the problem?

thanks, Chris

-- TWikiGuest - 13 Aug 2004


You are using SET - you should be using Set. The parser is case-sensitive.

-- CrawfordCurrie - 14 Aug 2004


I was in fact using "Set" for the WEBBGCOLOR pref., which wasn't and still isn't working either. I've changed to "Set" for HTTP_EQUIV_ON_VIEW but that didn't help.

thanks, Chris

-- TWikiGuest - 16 Aug 2004


This is strange. I just tried
   * Set WEBBGCOLOR = #FF0000
in my user topic (in my own TWiki) and it worked fine (it even works within this topic ...).

I'm running the Bejing release as well and our Web- and Site-Preferences are nearly the same, too. Is you wiki on the Internet? If so, could you perhaps post the address?

Another idea: did you clear the browser cache, do a shift-reload etc.?

Also: Try expanding the WEBBGCOLOR variable (by enclosing it in %-signs like this: %WEBBGCOLOR%). It should then print the value of the variable. So you can at least find out whether the variable didn't get the new value or whether it did and the color isn't changed anyway.

-- ChristianKohl - 17 Aug 2004


Christian, no, we've got a private TWiki where I work.

I did as you suggested re: expanding the variables and they do in fact have the new values I've specified in my user prefs, so looks like it's a problem w/ the templates or CGI scripts not using them to override the default settings in the generated pages.

Chris

-- TWikiGuest - 17 Aug 2004

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt site.txt r1 manage 14.1 K 2004-08-13 - 15:57 TWikiGuest  
Texttxt user.txt r1 manage 0.5 K 2004-08-13 - 15:59 TWikiGuest  
Texttxt web.txt r1 manage 3.5 K 2004-08-13 - 15:57 TWikiGuest  
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2004-08-17 - TWikiGuest
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.