Loading...
 

UserPageardavis


PluginFormula rendering problem

I've noticed that when I enable PluginFormula and render some equations (specifically ones including exponentiation [^]), the image comes out OK, but often there will be some additional html garbage tagged on to the end of it... which doesn't look very nice. I was able to figure out that this is probably happening because the wiki renderer is interpreting the text inside of the IMG ALT field. A simple patch to include wiki "no process" tags in there seems to fix it up. The patch follows:

--- wikiplugin_formula.php
@@ -102,7 +102,7 @@
                }
                $file = $tmpf . ".png";
                $html = "<img src=\"temp/" .$file.
-                       "\" alt=\"" .$data. "\" ".
+                       "\" alt=\"" .$data. "\" ".
                        "align=\"middle\">";
        }
        return $html;

To do

  • Figure out how and where to submit attachment patch to the Tiki project
  • Look at bug that doesn't allow you to categorize a new article on submission (article object can only be categorized after it's been saved and you go back to modify it's characteristics).
  • Figure out how to include array of topic images for articles based on all the categories they belong to.
  • Wishlist wiki module


UserPageardavis

...page... Wiki page pagination has not been enabled.

Filename uniqueness for wiki uploads

Forum discussion here.
I made some tweaks so now the file name md5 will be found based on the combination of the filename and the wiki page name it's uploaded to. I can have the same filename on a different page with no problem but if I upload a new file with the same name to a page where that filename already exists, it will replace it on the disk. So no stale files.

Also a tweak to wikilib.php makes the database record get updated if you upload the same filename to a given page instead of inserting a new record (which leaves the original record stale).

(If you keep wiki files in the database, you can have unlimited identical filenames on a given page. If you then convert these to filesystem storage though this patch won't prevent stale database records... and the last file you converted will be the only file on disk) (
 Error
The type parameter is missing
run through patch)



Page last modified on Monday 20 November 2023 16:43:09 GMT-0000

Upcoming Events

1)  21 Mar 2024 18:00 GMT-0000
Tiki Roundtable Meeting
2)  25 Mar 2024 17:00 GMT-0000
29th anniversary WikiBirthday (With Ward Cunningham)
3)  18 Apr 2024 18:00 GMT-0000
Tiki Roundtable Meeting
4)  16 May 2024 18:00 GMT-0000
Tiki Roundtable Meeting
5)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
8)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9) 
Tiki birthday
10)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting