History: DrawToggg
Preview of version: 18
Get the drawing stuff working
Should be OK for 1.8, 1.9 single and multitiki...
tikiwiki version 1.8.x (and prior?)
You need to modify 4 lines in the script jhot.php as follows:
- lines 22 & 23:
from:
22<
23< $absolute_name = str_replace("img/wiki/$tikidomain", '', $name);
to:
22> $path = 'img/wiki/'.($tikidomain != '/' ? $tikidomain : '');
23> $absolute_name = str_replace($path, '', $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