Is there a TiddlySnip-like solution for sharing bookmarks over http?

217 views
Skip to first unread message

whatever

unread,
Jan 25, 2012, 5:23:08 AM1/25/12
to TiddlyWiki
At work, we're in the process of implementing TiddlyWeb on an internal
server to use as a hub for storing work instructions and
collaboration. However, as a team, we usually collaborate on projects
and therefore often search for stuff on the internet.
Personally, I'm using TiddlyMarks (1) for managing my personal
bookmarks. It's a TiddlyWiki file and it uses TiddlySnip (2) Firefox
plugin to add links.
While TiddlyMarks would be relatively easy to set up to share the
bookmarks, I was hoping I could deploy it on the server. The problem,
however, is that the server is accessed via http, which means that
TiddlySnip doesn't work.
Is there a plugin that enables this for TiddlyWeb? Or alternatively,
is there a TiddlySpace (or any other simple) solution that would
enable intracompany sharing of bookmarks between users (not a syncing
solution between browsers or computers, but live sharing) and doesn't
require subscription to a public service?

(1) http://tiddlymarks.tiddlyspot.com/
(2) http://groups.google.com/group/tiddlysnip

w

PMario

unread,
Jan 25, 2012, 7:11:59 AM1/25/12
to TiddlyWiki
I think, it should be possible to adjust bookmarks plugin to work with
TiddlyWeb. It is a "bookmarklet", so it could be used as a general
"browser addon"

http://bookmarksplugin.tiddlyspace.com/

-m

whatever

unread,
Feb 21, 2012, 5:30:47 AM2/21/12
to TiddlyWiki
I checked it out and it's a great solution, if you have a tiddlyspace
account. But at work, we have a TiddlyWeb installation, and I'm trying
to consolidate all of our work-related bookmarks. If this could be
made into a (cross-)browser add-on, it would be awesome, especially if
it enabled adding to local tiddlywikis, ccTiddly installations and
TiddlyWeb installations. And of course TiddlySpace and TiddlySpot.
Unfortunately, my coding skills aren't anywhere near sufficient for
such an undertaking.

w

HansBKK

unread,
Feb 21, 2012, 9:10:07 AM2/21/12
to tiddl...@googlegroups.com
Totally off-topic, sorry, but what I dream of is a tool that would take my 20K+ delicious links, leave them in my local sqlite DB where they are happily sync'ing via the Firefox (and/or IE) plugins, let me view and manage them from within TW and keep on sync'ing them back to delicious.

Ideally including support for hierarchical tag bundles (which hardly anything supports).

Ah if I were rich I'd learn to program. . .

Tobias Beer

unread,
Feb 22, 2012, 1:47:57 AM2/22/12
to TiddlyWiki
Hi whatever,

Be careful with what you wish for. While some kind of generic insert
UI based on bookmarklets for any TiddlyFlavour also including
TiddlyHoster, TiddlyCouch or Giewieki for far more purposes than
bookmarking would be beyond amazing, I think in your case it is more
reasonable to ask for TiddlyWeb support for the time being.

Tb

Ben Gillies

unread,
Feb 27, 2012, 11:33:14 AM2/27/12
to tiddl...@googlegroups.com
On Tue, Feb 21, 2012 at 10:30 AM, whatever <kbrez...@gmail.com> wrote:
> I checked it out and it's a great solution, if you have a tiddlyspace
> account. But at work, we have a TiddlyWeb installation, and I'm trying
> to consolidate all of our work-related bookmarks. If this could be
> made into a (cross-)browser add-on, it would be awesome, especially if
> it enabled adding to local tiddlywikis, ccTiddly installations and
> TiddlyWeb installations. And of course TiddlySpace and TiddlySpot.
> Unfortunately, my coding skills aren't anywhere near sufficient for
> such an undertaking.

As the plugin is TiddlySpace, it should work on TiddlyWeb with only
minor modifications to it.

The tiddlers you'd want are:

http://bookmarksplugin.tiddlyspace.com/bookmarker
http://bookmarksplugin.tiddlyspace.com/bookmarker.js
http://bookmarksplugin.tiddlyspace.com/bookmarker-loader.js
http://bookmarksplugin.tiddlyspace.com/BookmarkletPlugin

You'll probably need to change a couple of bits to get it working in
vanilla TiddlyWeb:

* In BookmarksPlugin (which generates the bookmarklet, you'll need to
change the uris specified.
* In bookmarker.js you'll need to change the line:

tiddler.bag = new tiddlyweb.Bag(data.space + priv, '/');

to reflect the actual bag that you want to save to.

You'll also need to make sure you PUT the tiddlers into tiddlyweb with
the correct content-type. This means the bookmarker tiddler needs to
have a contant type of text/html, and the *.js tiddlers need a content
type of text/javascript.

Other than that, it should just work.


HTH

Ben

whatever

unread,
Mar 9, 2012, 5:35:52 AM3/9/12
to TiddlyWiki
Hi, Ben!

I tried the following:
I changed the path in BoorkmarkletPlugin to "http://mydomain.com/bags/
common/tiddlers/" and instead of "+spaceName+" I put "mybookmarks".

The line looked like this:
bookmarklet = "javascript:(function(a,b)
%7Ba=b.createElement('script');a.setAttribute('src','http://
mydomain.com/bags/common/tiddlers/bookmarker-
loader.js');b.body.appendChild(a);a.addEventListener('load',function()
%7BloadBookmarker('http://mydomain.com/bags/common/tiddlers/
bookmarker','mybookmarks');%7D,false);%7D(null,document))";

I also escaped the "var spaceName =
config.extensions.tiddlyspace.currentSpace.name;" line, because it was
throwing an error.

I also tried "path = path.replace(/^bags/, 'recipes').replace(/
common/, 'default');"

In bookmarker.js I changed the "tiddler.bag" line to tiddler.bag = new
tiddlyweb.Bag('common/');

Nothing worked.

Also, how do you assign content-type?

w

On Feb 27, 5:33 pm, Ben Gillies <bengill...@gmail.com> wrote:
> On Tue, Feb 21, 2012 at 10:30 AM, whatever <kbrezov...@gmail.com> wrote:
> > I checked it out and it's a great solution, if you have a tiddlyspace
> > account. But at work, we have a TiddlyWeb installation, and I'm trying
> > to consolidate all of our work-related bookmarks. If this could be
> > made into a (cross-)browser add-on, it would be awesome, especially if
> > it enabled adding to local tiddlywikis, ccTiddly installations and
> > TiddlyWeb installations. And of course TiddlySpace and TiddlySpot.
> > Unfortunately, my coding skills aren't anywhere near sufficient for
> > such an undertaking.
>
> As the plugin is TiddlySpace, it should work on TiddlyWeb with only
> minor modifications to it.
>
> The tiddlers you'd want are:
>
> http://bookmarksplugin.tiddlyspace.com/bookmarkerhttp://bookmarksplugin.tiddlyspace.com/bookmarker.jshttp://bookmarksplugin.tiddlyspace.com/bookmarker-loader.jshttp://bookmarksplugin.tiddlyspace.com/BookmarkletPlugin

Ben Gillies

unread,
Mar 12, 2012, 10:04:41 AM3/12/12
to tiddl...@googlegroups.com
On Fri, Mar 9, 2012 at 10:35 AM, whatever <kbrez...@gmail.com> wrote:
> Hi, Ben!
>
> I tried the following:
> I changed the path in BoorkmarkletPlugin to "http://mydomain.com/bags/
> common/tiddlers/" and instead of "+spaceName+" I put "mybookmarks".
>
> The line looked like this:
> bookmarklet = "javascript:(function(a,b)
> %7Ba=b.createElement('script');a.setAttribute('src','http://
> mydomain.com/bags/common/tiddlers/bookmarker-
> loader.js');b.body.appendChild(a);a.addEventListener('load',function()
> %7BloadBookmarker('http://mydomain.com/bags/common/tiddlers/
> bookmarker','mybookmarks');%7D,false);%7D(null,document))";
>
> I also escaped the "var spaceName =
> config.extensions.tiddlyspace.currentSpace.name;" line, because it was
> throwing an error.

That looks right to me.

> I also tried "path = path.replace(/^bags/, 'recipes').replace(/
> common/, 'default');"

You don't need this. Manually specifying the path should be enough.

> In bookmarker.js I changed the "tiddler.bag" line to tiddler.bag = new
> tiddlyweb.Bag('common/');

Close. This should be:

tiddler.bag = new tiddlyweb.Bag('common', '/');

> Also, how do you assign content-type?

The easiest way is to set the server.content-type field on the tiddler
before saving it.

> --
> You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
> To post to this group, send email to tiddl...@googlegroups.com.
> To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
>

Reply all
Reply to author
Forward
0 new messages