Upload Plugin

324 views
Skip to first unread message

Dave Gifford - http://www.giffmex.org/

unread,
Mar 8, 2008, 12:14:12 PM3/8/08
to TiddlyWiki
I just wanted everyone to know that I made an effort today to write up
a simple instruction tiddler for the UploadPlugin for "TW for the rest
of us", since it is badly needed. But I did not succeed. I didn't even
manage to upload an experimental TW successfully using the plugin,
even though I had done it before. It has changed since I last used it,
and the instructions are (to me) even less clear than they used to be.

Someone who knows more about php and the UploadOptions interface and
who is adept at writing in clear simple English should make an attempt
at a step by step tiddler. (i.e., "Configure this script" is not
simple language for people like me - how do I do that?).

I would recommend a tiddler with an example on how to fill out
UploadOptions. If I want my TW to upload to
http://www.giffmex.org/uploadexperiment/uploadexperiment.html, what do
I need to write in the boxes? And do I do anything to my website other
than create the directory before hitting the upload button in the TW?

I have done a lot to try to popularize TW but this is a big gap in
that effort, and it is beyond my abilities. If anyone wants to try to
help me out, my tutorial will benefit from it, and everyone who uses
it will, too.

Blessings,

Dave

BidiX

unread,
Mar 9, 2008, 7:27:51 AM3/9/08
to Tiddl...@googlegroups.com
Hi Dave,


On Sat, Mar 8, 2008 at 6:14 PM, Dave Gifford - http://www.giffmex.org/ <gif...@gmail.com> wrote:
If I want my TW to upload to
http://www.giffmex.org/uploadexperiment/uploadexperiment.html, what do
I need to write in the boxes? And do I do anything to my website other
than create the directory before hitting the upload button in the TW?

First, your store.php at http://www.giffmex.org/uploadexperiment/store.php has an error :


Parse error: syntax error, unexpected ';', expecting ')' in /home/.fenne/giff/giffmex.org/uploadexperiment/store.php on line 10 

For the explanation, I'll do my best (the exercise is always difficult for an non native English speaker, so feel free to amend)

----

For a basic installation, today you need these steps :
  1. A local TiddlyWiki with a core version 2.2.0 or better
  2. Import from http://TiddlyWiki.bidix.info/ in your local TiddlyWiki [1]
    1. PasswordOptionPlugin
    2. UploadPlugin
    3. store.php
  3. Save and reload your local TiddlyWiki
  4. Copy the source of store.php tiddler in a new file [2], call it store.php
  5. Edit the $USERS variable in new store.php file [3].
  6. Install this file on your web server in the same directory as you plan to set your TiddlyWiki. I recommend you give your remote TiddlyWiki index.html as name
  7. the store url [4] should display a page (like in http://tiddlywiki.bidix.info/store.php)
  8. In the backstage of your local TiddlyWiki you should see an "upload" button, click
  9. In the "Upload with options" panel fill options :
    1. Upload Username : same as username in [3]
    2. Upload Password : same as password in [3]
    3. Url of UploadService script : for you [4]
    4. Relative Directory where to store the file : (nothing, let default)
    5. Filename of the uploaded file : (if not index.html give the remote filename)
    6. Relative Directory where to backup the file: (if you want to backup the current remote file specify a directory name. For example : backup)
    7. do Logging in UploadLog : (to log uploads in the UploadLog tiddler : check for yes, uncheck for no)
    8. Maximum of lines in UploadLog : (let default to 10)
  10. Click on 'Upload' button
  11. et voilà ...
    In the Message Area you should see :
    1. Backup saved
    2. Main TiddlyWiki file saved
    3. Main TiddlyWiki file uploaded
When you'll find yourself comfortable with UploadPlugin you could explore other options or plugins (like UploadTiddlerPlugin, TiddlyHome etc ...)

Remember, you can also register at http://tiddlyspot.com/ for a one step ready and reliable TiddlyWiki site

Hope that helps,

-- BidiX
http://bidix.info

----

[1] http://www.tiddlywiki.org/index.php?title=ImportTiddlers

[2] edit the Tiddler, copy the text and paste it in your favourite text editor as a new file called store.php

[3] For a single user it should look like this :
$USERS = array(
    'username'=>'password'); // set usernames and strong passwords
of course change username and password but keep the ponctuations :  ' (quotes), () (parenthesis), = (equal sign) , > (greater sign) and ; (semicolon)

[4] http://www.giffmex.org/uploadexperiment/store.php

[5] for you  http://www.giffmex.org/uploadexperiment/store.php

Dave Gifford - http://www.giffmex.org/

unread,
Mar 10, 2008, 9:24:40 AM3/10/08
to TiddlyWiki
Hi BidiX

Your instructions worked perfectly. I will be adding a section in TW
for the rest of us right away!

Dave

Dave Gifford - http://www.giffmex.org/

unread,
Mar 10, 2008, 10:05:23 AM3/10/08
to TiddlyWiki
A few questions to make my tutorial instructions complete:

1. Is there no longer an upload macro to place in the sidebaroptions?
Must we now save with 2 clicks (upload button in backstage, then
upload button on upload options panel) instead of one?

Which is the proper use of UploadPlugin?
1. Make changes to a local file and upload them to the web from the
local file
2. Open the web file, add username and password, and make changes
directly to the web file
3. Either way is equally proper.

Are there pros and cons to using one way or the other?

Dave

BidiX

unread,
Mar 10, 2008, 5:41:21 PM3/10/08
to Tiddl...@googlegroups.com
On Mon, Mar 10, 2008 at 3:05 PM, Dave Gifford - http://www.giffmex.org/ <gif...@gmail.com> wrote:

1. Is there no longer an upload macro to place in the sidebaroptions?
Must we now save with 2 clicks (upload button in backstage, then
upload button on upload options panel) instead of one? 

There is still the upload macro that you can put in the SideBarOptions.

<<upload [storeUrl [toFilename [backupDir [uploadDir [username]]]]]>>
The optional positional parameters overwrite the corresponding options.
 

Which is the proper use of UploadPlugin?
1. Make changes to a local file and upload them to the web from the
local file
2. Open the web file, add username and password, and make changes
directly to the web file
3. Either way is equally proper.

It's up to you. It depends on your organization and from where you access your TiddlyWiki.

Cheers,

-- BidiX
http://bidix.info


Reply all
Reply to author
Forward
0 new messages