Loading...
 
Skip to main content

History: DrawToggg

Preview of version: 24

Get the drawing stuff working

Should be OK for 1.8, 1.9 single and multitiki...
but not yet on tw:o, wait next site update to try

PHP 4.2.2 users, the change was not enough ! but OK now see below
Anyway, if you can give it try by applying these changes home, it will be great !
Particulary, if you run multitiki with a single documentRoot, your opionion is welcome.

Caution that need to be enabled for your group And the drawings enabled in Admin Features!

tikiwiki version 1.8.x (and prior?)
You need to modify 4 lines in the script jhot.php as follows:

  • lines 22 to 24:

from:
22<
23< $absolute_name = str_replace("img/wiki/$tikidomain", '', $name);
24< $absolute_name = str_replace('.gif', '', $absolute_name);
to:
22> $path = 'img/wiki/'.($tikidomain != '/' ? $tikidomain : '');
23> $name = str_replace($path, '', $name);
24> $absolute_name = str_replace('.gif', '', $name);

  • lines 43 & 44:

from:
43< $fw = fopen("img/wiki/$tikidomain$hash", "wb");
44< $fw2 = fopen($name, "wb");
to:
43> $fw = fopen($path.$hash, "wb");
44> $fw2 = fopen($path.$name, "wb");

tikiwiki from version 1.9

Should be ok for 1.9 cvs (thanks tom ๐Ÿ˜Š
You can do it home:

  • In jhot.php

insert between lines 48 and 49 (not done in cvs)
47>if ($tikidomain) {
48> $hash = "$tikidomain/$hash";
>> $name = "$tikidomain/$name";
49> }
and change (done in cvs)
51> $fw2 = fopen($name, "wb");
into
51> $fw2 = fopen("img/wiki/$name", "wb");

  • In tiki-editdrawing.php

just withdraw the 2 points before $name line 37 and 39
$tikidomain/$name and not $tikidomain/.$name

That's all.

Now comes the most difficult: make beautiful drawings ๐Ÿ˜€
Tikily yours,

--
bertrand Gugger (toggg) Wanting to draw


marclaporte: latest changes are working on my multi-tiki. However, it opens a new java applet at each edit.
toggg: linux user: Konqueror better controls java than Mozilla !
More help on this problem: JgraphPadDoc

History

Information Version
bertrand Gugger 26
View
Marc Laporte more bug reporting and changing cache of the page to 0 25
View
bertrand Gugger 24
View
bertrand Gugger 23
View
bertrand Gugger 22
View
bertrand Gugger 21
View
Marc Laporte latest changes are working on my multi-tiki. However, it opens a new java applet at each edit. 20
View
bertrand Gugger 19
View
bertrand Gugger 18
View
bertrand Gugger 17
View
bertrand Gugger 16
View
bertrand Gugger 15
View
bertrand Gugger 14
View
bertrand Gugger 13
View
bertrand Gugger 12
View
bertrand Gugger 11
View
bertrand Gugger 10
View
bertrand Gugger 9
View
bertrand Gugger 8
View
bertrand Gugger 7
View
bertrand Gugger 5
View