Menu

Big Problem for me with RichTable Plugin

Help
2005-01-04
2012-10-11
  • Stefan Schorn

    Stefan Schorn - 2005-01-04

    Hello,

    Im using Wiki with a lot of Pictures within the wiki. To minimize the load for users with small bandwith i have to show preview pictures before. For this i created a little effective solution.

    First i made a php script to reduce the size online (i append it at the end of the message).

    Second i call the script from within the wiki. To make it possible i use the InterWikiMap (InterWikiKarte)

    i added the following entrys:

    Bild http://www.mineralienatlas.de/upload/
    BildSmall http://www.mineralienatlas.de/thumb.php?image=http://www.mineralienatlas.de/upload/

    within the wiki now i can make small preview pictures on the fly while adding

    [BildSmall:NameOfPicture.jpg|Bild:NameOfPicture.jpg]

    when pushing on the small picture i will get the big.
    OK so on this functions very very well!!

    Now my Problem:

    Now i have a lot of small Pictures with InterwikiLinks but i can't put them into RichTable because they whre not shown there.

    Please help because we really, really need it!!

    Here is the script thumb.php
    Hope it will be well displayed here

    <?php
    // Bilderzeugung - thumb.php
    header("Content-type: image/jpeg");

    //next two lines are only to prevent from loading other code as image
    $ext=substr($image,-3);
    if(!$ext == "jpg" ) {$image="/www/mineralienatlas/htdocs//images/Mineralienatlas-Top-1.jpg";}

    $size = getimagesize($image);
    $width = "200"; //fixed width 200
    $faktor = $size[1] / $size[0];
    $height = round($faktor * $width); //height dynamic
    $src = imagecreatefromjpeg($image);
    $dest = imagecreatetruecolor($width,$height);
    imagecopyresampled($dest,$src,0,0,0,0,$width,$height,$size[0],$size[1]);
    imagejpeg($dest);
    imagedestroy($dest);
    imagedestroy($src);
    ?>

    Regards Stefan

     
    • Stefan Schorn

      Stefan Schorn - 2005-01-05

      Seems to be a problem of named interwiki links

      like [name of Link|wikipedia:Page] and RichTable Plugin. With OldStyleTable Plugin and DLStyleTable it works but i can't use them.

      The RichTable can't handle links like [wikipedia:Page] it only produces the word Page. Outside the plugin it is shown as link.

      Is there a way to fix it soon? I know there is a lot of other work to do.

      Regards Stefan

       
    • Stefan Schorn

      Stefan Schorn - 2005-01-07

      when using named interwiki links in richtable plugin i get the following error at the end of page

      lib/XmlElement.php (In template 'browse' < 'savepage' < 'body' < 'html'):170: Warning: htmlspecialchars() expects parameter 1 to be string, object given (...repeated 6 times)

      Here you can see it
      http://www.mineralienatlas.de/lexikon/index.php/TestPage

      Regards Stefan

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.