Fork me on GitHub

News 2.6.2 - many questions on working with it  Bottom

  • I just upgraded to News 2.6.2 for pic upload - but now I wonder how to configure and use it icon_smile
    I use scribite (nicedit) too, because it gives me the possibillity to upload images to imageshack. But imageshack isn't that reliable, and you have to resize pics yourself before using them. So I would like to use the upload provided by News instead.

    I uploaded 3 pics, and now I have questions:
    http://img685.imageshack.us/img685/3160/bildschirmfoto20111214u.jpg

    1) I managed to show all pictures in the gallery, but How can I modify the module to use an Ajax viewer for displaying the originales - like clicking the picture here in my article?

    2) When adding a new article, theres no way to directly insert the pictures in the text.
    So to include the pictures using scribite I have to "modify" the article - I changed the template to show the norm.jpg instead of thumb.jpg in the "Bilder" section.

    After 2 comes 3) but there's just one drawback.
    Dragging a picture into the scribite editor with the mouse works - but the img URL is fully included - with the width parameter that is defined in the template.
    < img src="/pic_sid--norm.jpg" width="200" />
    Is there a way to "drag" the picture but without the width parameter ?

    4) How can I get the thumbs smaller in KB size?
    I configured my thumbs to be not larger than 80x80 pixel - but they get much over 10KB.
    Where do I configure the quality to get them at around 3KB.

    5) There is a bug in the Template for modifiying articles.
    When you right click on "modify article" within admin section you see an URL:
    http://www.rhein-sieg-freizeit.de/index.php?module=News&type=admin&func=modify&sid=533
    But when you right click on the "modify" link above an article there is a javascript that's malfunctioning.
    Because when I click that it does open the modify section, but the scribite editor isn't loaded icon_frown

    Ok, that's for now - I need to test and work with the new module now for a while icon_smile



    Edited by Technobilder on Dec 14, 2011 - 02:27 PM.
  • Hey,

    before I go into your points icon_wink let me say that the news picture upload is just meant as a simple picture upload for News. So no read advanced things. And you cannot really inter-use between scribite and news pic upload.
    1) The default Zikula imageviewer should be loaded when displaying articles (which version of Zikula are you using?) See e.g. an example here http://support.zikula.de/module-News-display-sid-1401.htm this is how it should work. See if the imageviewer JS is loaded.

    2) 3) The image upload feature is just not meant for use in the text. It is meant as a simple picture upload function to add some pictures to the text. If you really want full control you have to use something like Mediashare, MediaAttach, xinha extended file manager to add images.

    4) I think somewhere in the JS phpthumb script you can set the quality. The script being used is http://phpthumb.gxdlabs.com/ Check out here, jpeg quality is a global setting http://trac.gxdlabs.com/projects/phpthumb/wiki/Docs/GettingStarted#Options
    In pnuser.php you can find several PhpThumbFactory::create you have to add the options on those line with a lower quality.

    5) The scribite editor loading in the link next to the article has to do wit hteh scribite setting. You have to add the display function to the functions that scribite is being loaded for News. This is in the scribite settings. Or disable the Inline JS edtinging in the News setting.

    --
    campertoday.nl, Module development, Dutch Zikula Community

This list is based on users active over the last 60 minutes.