Loading...
 
Features / Usability

Features / Usability


Uploading images to wiki

posts: 8 Italy

We've been using 1.8 for a long time. Then upgraded to 1.9 and we're happy about all the new stuff.

We miss one wiki feature: the automatic insertion of the image syntax at the end of the page when an image is uploaded.
I tried to find a preference or something but did not find it. Having to insert the full syntax with the wiki_up folder is impossible for newbies and irritating for expert users.

Are we missing an easy way to get back the old feature? Or an even easier new feature?

posts: 4656 Japan

I'm not sure what the problem might be with your Tiki, but I have several Tiki sites running 1.9+ versions and at each of them the image syntax is automatically inserted not at the end of the page but at the cursor location when the image file is chosen with "Upload picture — Choose". This functionality is definitely retained in the newer Tiki versions, so it seems something may not be set or working correctly in your case. Is it possible you are expecting to see it at the end of the page, but it is being inserted at the cursor position?

-- Gary - themes.tw.o


posts: 8 Italy

I did more testing on a new 1.9.2 installation and the feature works as you described.

So I have a problem on my wiki. And I just noticed that deleting the unused pictures deletes all pictures uploaded with 1.8 (95% of the pictures we have). This is one reason why I make a daily backup of the wiki...

Anyone has any idea how to look to understand what's going on?

Thanks
Carlo


posts: 8 Italy

I found what happened, here is the story:
The 1.9.2 neat style has the following syntax in tiki-editpage.tpl in the pictures section (please consider ( as < and ) as >):
(tr)(td class="formcolor")Upload picture(/td)(td class="formcolor")
(input type="hidden" name="MAX_FILE_SIZE" value="1000000000")
(input name="picfile1" type="file")
(/td)(/tr)
Instead of the full syntax that implements 1.9.2 behavior (instertion of picture syntax at the cursor position):
(tr class="formcolor")(td)Upload picture(/td)(td)
(input type="hidden" name="MAX_FILE_SIZE" value="1000000000" /)
(input type="hidden" name="hasAlreadyInserted" value="" /)
(input type="hidden" name="prefix" value="/img/wiki_up/" /)
(input name="picfile1" type="file" onchange="javascript:insertImg('editwiki','picfile1','hasAlreadyInserted')"/)
(/td)(/tr)
So the neat style can't work well.
But we use the moreneat style and have the same problem, even if in 1.9.2 the tiki-editpage.tpl is not overridden in the moreneat style. Why?
Because we use a Fantastico intallation and it was overridden in 1.8.6!!! But the Fantastico automatic updater did not delete the tiki-editpage.tpl in templates/styles/moreneat/
Probably the Fantastico updater just adds files... so we remained with the old override file that probably had other problems. For sure the problem that we could not correctly edit the sandbox.

I already posted the moreneat upgrade bug in the Fantastico support forum and I'm going to post the neat somewhere in this forum.


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting