Loading...
 
Skip to main content

History: UserPageardavis

Preview of version: 57


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) (No such attachment on this page run through patch)

History

Advanced
Information Version
admin attachment conversion 58
View
drsassafras Mass search and replace 57
View
Art Davis 56
View
Art Davis 55
View
Art Davis 54
View
Art Davis 53
View
Art Davis 52
View
Art Davis 51
View
Art Davis 50
View
Art Davis 49
View
Art Davis 48
View
Art Davis 47
View
Art Davis 46
View
Art Davis 45
View
Art Davis 44
View
Art Davis 43
View
Art Davis 42
View
Art Davis 41
View
Art Davis 40
View
Art Davis 39
View
Art Davis 38
View
Art Davis 37
View
Art Davis 36
View
Art Davis 35
View