Hi Mark

> When I try using it from the office, where it is the same DSL provider 20
> miles from home, it loads my TW in read-only mode despite logging in just
> the same way and all the saving functions are not even shown.

Maybe your choice of browser isn't the same?

When I open TWs created on my version of BidiX's php-based TiddlyHome
package - they are  readonly on Firefox but they are editable on
Google Chrome...
I guess it's BidiX's UploadPlugin which set the mode when the TW is
loaded..

You can override this setting by writing this to a tiddler called
zzConfig (tagged with systemConfig) - (Borrowed from TiddlySpot's
TspotSetupPlugin):

// make it so you can by default see edit controls via http
config.options.chkHttpReadOnly = false;
window.readOnly = false; // make sure of it (for tw 2.2)
window.showBackstage = true; // show backstage too


Another option is to write an "edit toggler".

I put this in my Mainmenu tiddler (borrowed from Eric Shulman's
PasteUp - Quickstartdocument:):
----
{{floatright{<<tiddler MainMenu##toggleReadonly with:edit>>}}}
/%
!toggleReadonly
<html><nowiki><a class='button nowrap' title="enable/disable editing
of this document" onclick="
        if (window.readOnly) {
                this.innerHTML=this.savedHTML;
                this.savedHTML=null;
        } else {
                var chk='<input type=\x22checkbox\x22 checked style=\x22margin:
0;padding:0;\x22>';
                this.savedHTML=this.innerHTML;
                this.innerHTML=chk+this.innerHTML;
        }
        window.readOnly=!window.readOnly;
        
config.macros.option.propagateOption('chkHttpReadOnly','checked',window.readOnly,'input');
        
config.macros.option.propagateOption('chkSinglePageMode','checked',window.readOnly,'input');
        window.showBackstage=!window.readOnly; if(showBackstage && !
backstage.area) backstage.init();
        backstage.button.style.display=showBackstage?'block':'none';
backstage.hide();
        story.switchTheme(config.options.txtTheme); store.notifyAll();
story.refreshAllTiddlers(true);
        return false;
"><!--TRANSLATE-->$1</a></html><<tiddler {{
        var e=place.lastChild.getElementsByTagName('a')[0];
        if (!window.readOnly && e.innerHTML.indexOf('checkbox')==-1) {
                var chk='<input type=\x22checkbox\x22 checked style=\x22margin:
0;padding:0;\x22>';
                e.savedHTML=e.innerHTML;
                e.innerHTML=chk+e.innerHTML;
        }
'';}}>>
!end %/

Enjoy
Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to