Just wanted to share a newtiddler button with you all (because I think
etherpad/typepad is great):
[[TypeButton]]
<<tiddler TypeButton##content with: {{config.options.txtUserName}}>>/%
!content
@@position:relative;+++^10em^*@[+]...<<option
txtUserName>>===@@<<newJournal title:"0DD.of_MMM-YYYY_0hh:0mm 0ss"text:
{{"Started by $1"+store.getTiddlerText("TypeButton##button")}}
label:"New typeWithMe
instance"tag:"doc"tag:"TypeWithMe"tag:"collaborate"tag:
{{config.options.txtUserName}}>>
!end content
!button
<<tiddler TypeButton##url with: {{tiddler.title
+"_made_by_"+config.options.txtUserName}}>>
!end button
!url
<html><div align="center"><iframe src ="http://typewith.me/$1"
width="100%" align="center" height="800" scrolling="auto"
frameborder="0" allowtransparency style="border:none;"></iframe></
div></html>
!end url %/
Regards Måns Mårtensson
If you copy all the code into a tiddler titled: TypeButton you'll get
a button to create new tiddlers with an iframe with a new typewith.me
document.
All the code is just to show proof of concept on creating original
titles (time and date stamp) + username to be used as url-suffix for a
typewith.me document in an iframe.
Quick explanation of Typewith.me here:
http://lifehacker.com/5488753/typewithme-makes-real+time-text-collaboration-dead-simple-resurrects-etherpad
If you don't use Eric Shulmans NestedSlidersPlugin - you should omit
*@@position:relative;+++^10em^*@[+]...* and *===@@"* from the code..
Regards Måns Mårtensson
As for your last simplified post, Måns, you have a typo...
{{+store.
should be...
{{store.
2) Having played with it, I have created a slightly modified version
of your button tiddler.
With that version, when the new document get's created, the
typewith.me url will not be using any variables, instead it will be
using their values at the moment of document creation.
That way, you will always be referring to the same typewith.me
document name that was used when creating that "journal tiddler",
regardless of whether or not you later on decide to change the journal-
title or your username.
To see it working, create a tiddler called "TypeButton" with the
following contents (watch out for google line-breaks)...
<<newJournal title:"YYYY.0MM.0DD@0hh:0mm:0ss"
text: {{
var txt="";
var dt=new Date();
txt=store.getTiddlerText("TypeButton##button");
txt.format([
dt.formatString("YYYY.0MM.0DD@0hh:0mm:0ss"),
config.options.txtUserName
]);
}}
label:"new typewith.me"
tag:"typeWithMe">>
/%
!button
<<tiddler TypeButton##url with: "%0-by-%1"}}>>
!url
<html><div align="center">
<iframe src="http://typewith.me/$1"
frameborder="0" width="100%" height="600" />
</iframe></div></html>
!end %/
You also did a good job describing the funcionalties and possible
problems, when using typewith.me..
I must admit I was a bit too impatient when I posted it - however your
version, and the explanation, should give a solid understanding of
what is going on..
Thanks again..
Cheers Måns Mårtensson
Inspired by Erics "onclick-thing" in this post:
http://groups.google.dk/group/tiddlywiki/browse_thread/thread/e0705f2a9d2ce3d6?
I've added a PopOut-thing to the produced typeWithMe-tiddler. This is
very convenient if you wan't to keep the chat/text-box out of the way,
while using the TW..
You'll find the addition at the bottom of the "button-script". You
might want to change the label: "PopOut" to something else...
[[TypeButton]]
<<newJournal title:"YYYY.0MM.0DD@0hh:0mm:0ss"
text:{{
var txt="";
var dt=new Date();
txt=store.getTiddlerText("TypeButton##button");
txt.format([dt.formatString("YYYY.0MM.0DD@0hh:0mm:
0ss"),config.options.txtUserName]);
}}
label:"new typewith.me"
tag:"typeWithMe">>
/%
!button
<<tiddler TypeButton##url with: "%0-by-%1"}}>>
!url
<<tiddler TypeButton##PopOut with: "http://typewith.me/$1""PopOut">>
<html><div align="center">
<iframe src="http://typewith.me/$1"
frameborder="0" width="100%" height="600" />
</iframe></div></html>
!PopOut
<html><A
HREF="javascript:void(0)"onclick="window.open('$1','linkname','height=500,
width=800,scrollbars=no')" accesskey="u">$2</a></html>
!end %/
Regards Måns Mårtensson
-m
On 30 Mrz., 17:42, Måns <humam...@gmail.com> wrote:
> Hi again
>
> Inspired by Erics "onclick-thing" in this post:http://groups.google.dk/group/tiddlywiki/browse_thread/thread/e0705f2...