On Oct 10, 2:51 pm, packetlevel <[email protected]> wrote:
> After a couple of weeks the 10 or so TWs I use change themselves back to no
> usename, savebackups checked, and not autosave and MyUsername.
These settings are saved as local browser-based cookies. If you clear
the browser cookies ("reset private data"), then the settings are
discarded and revert to the default values defined by the TWCore.
> I saw a post about making a SystemSettings tiddler with
> chkAutoSave: true
> txtUserName: My Username
>
> and did that - but that didn't work. And - after a couple of weeks, one TW
> started opening with an error message "Error: SyntaxError: missing ;
> before statement" so I deleted the systemsettings tiddler.
That should have worked. However, the fact that you see a "syntax
error" message suggests that you have mistakenly added the
"systemConfig" TAG to the SystemSettings tiddler. The "systemConfig"
tag is used to denote plugin-defining tiddlers that contain javascript
code. SystemSettings is *not* a plugin tiddler, and should not have
that tag.
> Longing for the days when I would put my username, once and for all, into
> the the TW code itself ...
> Any suggestions welcome - this is getting to be a pain.
Create a tiddler containing the following line of javascript:
config.options.txtUserName="TheNameYouWant";
Then, tag that tiddler with "systemConfig" (so it will be processed
during startup).
Save-and-reload. During startup, the above line of code is invoked
(but AFTER any browser-based cookie values are read in). As a result,
the hard-coded username text specified in the assignment statement is
applied, and the username is set accordingly.
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://www.TiddlyTools.com/#Donations
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.