Re: [tw] Tiddlyspot, automatic theme

31 views
Skip to first unread message
Message has been deleted

Simon Baird

unread,
Jun 28, 2009, 8:17:35 PM6/28/09
to Tiddl...@googlegroups.com
It might be that you have a cookie that is overriding the theme you've set (I presume?) in MptwUserConfigPlugin. So try clearing your cookies.

On Thu, Jun 25, 2009 at 11:25 PM, Michael Johanson <michael.j...@gmail.com> wrote:

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.




--
simon...@gmail.com

wolfgang

unread,
Jun 29, 2009, 4:28:41 AM6/29/09
to TiddlyWiki
If one uses a theme which works perfectly nice in Firefox - but which
would be completely messed up in IE and Opera - is there a way to
change the theme to a browser specific one at startup, be detecting
the browser of a visitor to such a online TiddlyWiki?

regards..

FND

unread,
Jun 29, 2009, 4:36:17 AM6/29/09
to Tiddl...@googlegroups.com

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

wolfgang

unread,
Jun 29, 2009, 4:48:37 AM6/29/09
to TiddlyWiki
> 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";
> }
>

Thanks for the fast reply. Also Opera displays gradients very ugly.
Therefore, could one write?:

if(config.browser.isIE) {
config.options.txtTheme = "IEBrowsersTheme";
}
if(config.browser.isOpera) {
config.options.txtTheme = "OperaBrowsersTheme";
} else {
config.options.txtTheme = "modernBrowsersTheme";
}

FND

unread,
Jun 29, 2009, 4:59:31 AM6/29/09
to Tiddl...@googlegroups.com
> Thanks for the fast reply. Also Opera displays gradients very ugly.
> Therefore, could one write?: [...]

That looks about right.
See here for what's available:
http://trac.tiddlywiki.org/browser/Trunk/core/js/Config.js?rev=9256#L150


-- F.

wolfgang

unread,
Jun 29, 2009, 6:23:17 AM6/29/09
to TiddlyWiki
Will try as soon I have the time, thanks again.
Reply all
Reply to author
Forward
0 new messages