History: UserPageardavis
Preview of version: 48
|
Links
- Forums
- Downloading TikiWiki: Includes CVS download directions
- ReleaseProcess19
- ReleaseProcess191
- ReleaseProcess192
- ReleaseProcess110
- Files at Sourceforge
- TikiCVSHowTo
- ReleaseProcess19
- MigrateToTiki scripts
- ConversionFromPostnuke
- ConversionFromTWiki
- InstallTiki guide index
- InstallTikiDoc Standard installation instructions
- InstallTikiTroubleShootingDoc
- WikiPlugins
- PluginModule
- PluginInclude: Include the contents of a Wiki page inside another page
- PluginFormula to include a LaTeX rendered formula in a wiki page.
- PluginWikiTex: Insert ))LaTeX(( code in your wiki and have it diplayed as an image
- ModsTikiWiki
- TikiMods
- Modfiles at Sourceforge
- Customizing Tiki
- Other useful Documentation
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;
Filename uniqueness for wiki uploads
If I upload a file attachment to a wiki page, and then go to another wiki page and upload a file of the same name, then the first file will get replaced by the contents of the second without warning. So there is a uniqueness requirement to filenames for wiki uploads across the site. This is apparently only an issue if I use Admin->Wiki Attachments->Use a directory to store files.
Looks like file galleries (tiki-upload_file.php) avoids this problem by using uniqid(filename) to generate the md5 name to store on disk. Some small patches to tiki-index.php and tiki-admin_include_wikiatt.php seem to be all that's needed. (No such attachment on this page run through patch)
UserPageardavis