test
Viewing 15 posts - 106 through 120 (of 128 total)
  • Author
    Posts
  • Phill Moderator
    #388027

    The please clear you cache as I only see the compressed code. Alternatively, PM me an admin logon so I can take a look.

    ali haydar Friend
    #388575

    habe ich PM geschrieben

    Phill Moderator
    #388622

    I did reply to your PM, the logon you supplied does not work.

    ali haydar Friend
    #388633

    I’m sorry my fault is it again

    Phill Moderator
    #388637

    Yes, you can simply add to the end of template.css

    img {margin:8px;}

    Or in the editor click on the image then using the image button in the editor apply the margin manually to each image.

    ali haydar Friend
    #388848

    very grateful
    😎

    rvpllc Friend
    #389993

    I am having an issue where the photo on the frontpage for the mod_janews_fp module the photos are getting cropped in away that it cuts off people’s heads or other important parts of the photo

    example at http://www.rvpublishing.com/news/

    you will see the current photo the head is cut off the guy when it should no be that way.

    Saguaros Moderator
    #390044

    <em>@rvpllc 238774 wrote:</em><blockquote>I am having an issue where the photo on the frontpage for the mod_janews_fp module the photos are getting cropped in away that it cuts off people’s heads or other important parts of the photo

    example at http://www.rvpublishing.com/news/

    you will see the current photo the head is cut off the guy when it should no be that way.</blockquote>

    you access this module ‘s configuration => select “Resizing Image” option for the Render Thumbnail Mode to resolve the issue

    rvpllc Friend
    #390812

    I do not see an option to choose to resize the photos in the mod_janews_fp module

    see attached screen shots of the modules config screen as I see it.


    1. 2
    2. 1
    _fd_ Friend
    #424972

    Hello Forum

    I do have the same Problem, but this Solution does not help at my site: entwurf.regioaktuell.com

    Please see allso the attached Screenshot:

    What was i doing wrong?

    Thanks for any Help πŸ™‚

    <em>@Dat Hoang 182567 wrote:</em><blockquote>Hi shanecombs,

    Please try as follows to get captions working on the JA popup
    open plugins/content/plg_jathumbnail.php file ,Do search this function

    [PHP]
    function replaceImage($text, $width, $height) {
    $regex = “/<img[^>]*>/”;
    //Get all images
    if (!preg_match_all ($regex, $text, $matches)) return;
    $images = array();

    foreach ($matches[0] as $image) {
    $regex = ‘#(<img.*)srcs*=s*([“‘])(.*?)2(.*/?>)#im’;
    if (!preg_match ($regex, $image, $srcs)) continue;

    if (($src = $this->processImage ($srcs[3], $width, $height, $this->_crop))) {
    $new_image = $srcs[1].”src=”.$srcs[2].$src.$srcs[2].$srcs[4];
    //remove height/width
    $regex = ‘#(<img.*)heights*=s*([“‘])(.*?)2(.*/?>)#im’;
    if (preg_match ($regex, $new_image, $srcs1))
    $new_image = $srcs1[1].$srcs1[4];
    $regex = ‘#(<img.*)widths*=s*([“‘])(.*?)2(.*/?>)#im’;
    if (preg_match ($regex, $new_image, $srcs1))
    $new_image = $srcs1[1].$srcs1[4];
    //$obj = array(‘org’=>$srcs[3], ‘new’=>$src);
    $images[] = array(‘org’=>$image, ‘org_src’=>$srcs[3], ‘new’=>$new_image);
    }
    }
    if (!count($images)) return ”;
    $thumbnail = $this->renderThumbnail ($images, $width, $height);
    return $thumbnail;
    }
    [/PHP]
    Change it to
    [PHP]
    function replaceImage($text, $width, $height) {
    $regex = “/<img[^>]*>/”;
    //Get all images
    if (!preg_match_all ($regex, $text, $matches)) return;
    $images = array();

    foreach ($matches[0] as $image) {
    $title = “”;
    $regex = ‘#(<img.*)srcs*=s*([“‘])(.*?)2(.*/?>)#im’;
    if (!preg_match ($regex, $image, $srcs)) continue;
    $regex = ‘#(<img.*)titles*=s*([“‘])(.*?)2(.*/?>)#im’;
    if(preg_match ($regex, $image, $tit)) $title = $tit[3];
    if (($src = $this->processImage ($srcs[3], $width, $height, $this->_crop))) {
    $new_image = $srcs[1].”src=”.$srcs[2].$src.$srcs[2].$srcs[4];
    //remove height/width
    $regex = ‘#(<img.*)heights*=s*([“‘])(.*?)2(.*/?>)#im’;
    if (preg_match ($regex, $new_image, $srcs1))
    $new_image = $srcs1[1].$srcs1[4];
    $regex = ‘#(<img.*)widths*=s*([“‘])(.*?)2(.*/?>)#im’;
    if (preg_match ($regex, $new_image, $srcs1))
    $new_image = $srcs1[1].$srcs1[4];
    //$obj = array(‘org’=>$srcs[3], ‘new’=>$src);
    $images[] = array(‘org’=>$image, ‘org_src’=>$srcs[3], ‘new’=>$new_image,’title’=>$title);
    }
    }
    if (!count($images)) return ”;
    $thumbnail = $this->renderThumbnail ($images, $width, $height);
    return $thumbnail;
    }
    [/PHP]

    Then open pluginscontentplg_jathumbnailtmplthumbnail.php file ,Find this line
    {japopup type=”image” content=”<?php echo $image[‘org_src’];?>” title=”” group=”group”}
    Change to
    {japopup type=”image” content=”<?php echo $image[‘org_src’];?>” title=”<?php echo $image[‘title’]; ?>” group=”group”}

    I hope this help !</blockquote>


    1. Bildschirmfoto-2011-11-16-um-21.19.54
    Phill Moderator
    #424980

    Can you explain your problem in more detail? As far as I can see the plugin is working as it was meant to. Maybe you need to adjust the configuration to fit your needs better?

    _fd_ Friend
    #425038

    Hello Phil Luckhurst

    I am verry Sorry, i could solve the Problem! It works πŸ˜€

    Thanks again πŸ™‚

    _fd_ Friend
    #426100

    Hello All

    I found 2-3 more things i want to do with that plugin πŸ˜‰

    • First of all i need a second fix exclude beside the {jathumbnail off}, i want to exclude Images in a certain folder (images/stories/logos) so, i want something to say: Do not look for Images marked off or Images in that specific folder
    • Second i want it to work with jce mediabox, so i do have an Original Image, a thumbnail (in Subfolder “Thumbs” and added “-thumb” at the End of the Name) and the Thumbnail created from this Plugin. Oh and the Popup would do the JCE Mediabox and NOT the ja_popup (created that, but did not get the path to the large file, only to the thumbnail in the article, but i think its just a regexp-thing…)
    • Third i need a possibility to switch the Plugin off during print πŸ˜‰

    What i did so far:

    • Made the “title” hack
    • added the following to/plugins/content/plg_jathumbnail/tmpl/thumbnail.php
    • <?php if (class_exists('plgSystemPlg_JAPopup')){?>
      {japopup type="image" content="<?php echo $image['org_src'];?>" title="<?php echo $image['title']; ?>" group="group"}
      <?php } else {?>
      <a class="jcepopup noicon" type="image" href="<?php echo $image['org_src'];?>" rel="title[<?php echo $image['title']; ?>::]" target="_blank">
      <?php } ?>

      <?php echo $image['new']."n";?>

      <?php if (class_exists('plgSystemPlg_JAPopup')){?>
      {/japopup}
      <?php } else {?>
      </a>
      <?php } ?>

      this will trigger the Jce-mediabox but it popups only the thumbnail, i need a different “$image[‘org_src’]” something like “$image[‘org_lage_src’] πŸ˜€

    The Site is still the same: http://entwurf.regio-info.ch

    Phill Moderator
    #426101

    These are customizations beyond what we can provide. They are good ideas but would require a substantial re-write of the code. If you really need it then maybe you are better off hiring a freelancer.

    _fd_ Friend
    #426106

    Thanks for the Answer πŸ™‚

    ok, maybe i will πŸ™‚

    The only thing i really need would be the exclude-folder. the other ones would be Β«nice to haveΒ»… so is there a Way to provide me with a solution to that?

    Thanks

    _fD_

Viewing 15 posts - 106 through 120 (of 128 total)

This topic contains 128 replies, has 42 voices, and was last updated by  HeR0 12 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum