Etherpad/Typepad - collaborative button for your menu :-)

14 views
Skip to first unread message

Måns

unread,
Mar 25, 2010, 10:28:25 AM3/25/10
to TiddlyWiki
Hi TwWizards

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

AlanBCohen

unread,
Mar 25, 2010, 10:48:39 AM3/25/10
to TiddlyWiki
As someone without much Javascript knowledge, reading this is far from
my skills. Can you please describe what you are trying to accomplish
with this.
Alan

Måns

unread,
Mar 25, 2010, 11:17:20 AM3/25/10
to TiddlyWiki
Hi Alan

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

Måns

unread,
Mar 25, 2010, 11:20:48 AM3/25/10
to TiddlyWiki
code without the nested slider:

>
> If you don't use Eric Shulmans NestedSlidersPlugin - you should omit
> *@@position:relative;+++^10em^*@[+]...* and *===@@"* from the code..
[[TypeButton]]
<<tiddler TypeButton##content with: {{config.options.txtUserName}}>>/
%
!content
<<option txtUserName>><<newJournal title:"0DD.of_MMM-YYYY_0hh:0mm
Message has been deleted

Måns

unread,
Mar 25, 2010, 11:34:35 AM3/25/10
to TiddlyWiki
Less is more...
Here it is again (almost as simple as I can make it) and you can
still
create a new original typewith.me-document every tenth of a second :-)
Take into account the linebreaks made by googlegroups..
[[TypeButton]]
<<newJournal title:"YYYY0DD0MM0hh:0mm 0ss"text:
{{+store.getTiddlerText("TypeButton##button")}} label:"New typeWithMe
tiddler"tag:"typeWithMe">>
/%

!button
<<tiddler TypeButton##url with: {{tiddler.title
+"_by_"+config.options.txtUserName}}>>

!end button
!url
<html><div align="center"><iframe src="http://typewith.me/$1"
frameborder="0" width="100%" height="600"></iframe></div></html>
!end url %/
Regards Måns Mårtensson

Tobias Beer

unread,
Mar 26, 2010, 9:15:02 AM3/26/10
to TiddlyWiki
Typewith.me seems to be quite useful stuff for sharing / managing text
content online. It's a bit like pastebin going collaboration, only
just without syntax-highlighting but then with simple formating
features ...a kind of twitter for low-level documents, without a need
to surf the google wave. Unfortunately, user management seems to only
be veeeery losely integrated. Also beware that - once you know that
URL - typewith.me documents are public, meaning: viewable AND editable
by everyone!


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 %/

Måns

unread,
Mar 26, 2010, 10:33:01 AM3/26/10
to TiddlyWiki
Hi Tobias

> As for your last simplified post, Måns, you have a typo...
Thanks for correcting it.

> 2) Having played with it, I have created a slightly modified version
> of your button tiddler.
Great - I love it - Thanks for sharing :-)

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

Måns

unread,
Mar 30, 2010, 11:42:52 AM3/30/10
to TiddlyWiki
Hi again

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

PMario

unread,
Mar 30, 2010, 12:52:54 PM3/30/10
to TiddlyWiki
Hi,
My FireFox is configured to open any new window, page ... in a new
tab. So the pad only pops out to a new tab, but doesn't resize
anything. Which is nice too. If I want to hide the chat window I click
the Sidebar button in etherpad.

-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...

Reply all
Reply to author
Forward
0 new messages