Hello fellas
I made my TW, implemented all the features I wanted and I decided to
upload it on tiddlyspot.
I am using the MPTWtheme tiddly for enabling of certain features but I
use the Mptwstandardtheme (TW standard looks) and not the
Mptwroundtheme as layout/theme.
The problem now is that if I log on to my Tiddlyspot site, it
automatically uses the Mptwroundtheme, and I don't want that.
Even if I remove the roundtheme it uses it. How do I change the
default theme so that anyone who enters the site from their computer
uses the Standardtheme?
If I change to the standard one and save to web, my computer will
always use it but If I log on with someone elses computer they get the
roundtheme...
http://mptw.tiddlyspot.com/#MptwConfigPlugin%20MptwRoundTheme%20MptwStandardTheme%20MptwTheme%20MptwTrimTheme%20MptwUserConfigPlugin%20[[Note%20about%20customising%20templates]]
I can not link to my site due to the fact that it is private so you'll
have to help me from the outside.
You could use write a simple plugin using browser sniffing* - TiddlyWiki
provides a config.browser object for this:
if(config.browser.isIE) {
config.options.txtTheme = "legacyBrowsersTheme";
} else {
config.options.txtTheme = "modernBrowsersTheme";
}
However, that's not necessarily 100% reliable.
-- F.
* http://en.wikipedia.org/wiki/Browser_sniffing#Client-side_sniffing
That looks about right.
See here for what's available:
http://trac.tiddlywiki.org/browser/Trunk/core/js/Config.js?rev=9256#L150
-- F.