test
Viewing 15 posts - 61 through 75 (of 128 total)
  • Author
    Posts
  • Sherlock Friend
    #336737

    Dear zorroh,

    Please try as follows to get popup function work for JA Thumbnail plugin :

    step 1)

    If your template was builded base on T3 Framework ,please open:
    templates/your template/layouts/blocks/head.php
    Insert this line of codes : <?php JHTML::_(‘behavior.modal’); ?> into about line 3

    step 2)

    Open plugins/content/plg_jathumbnail.php
    Find these php codes :

    [PHP]function processImageBlog ($matches) {
    $regex = ‘#(<img.*)srcs*=s*([“‘])(.*?)2(.*/?>)#im’;
    $text = $matches[0];
    if (!preg_match ($regex, $text, $srcs)) return ”;
    if (($src = $this->processImage ($srcs[3], $this->_width, $this->_height, $this->_crop))) {
    $image = $srcs[1].”src=”.$srcs[2].$src.$srcs[2].$srcs[4];
    //remove height/width
    $regex = ‘#(<img.*)heights*=s*([“‘])(.*?)2(.*/?>)#im’;
    if (preg_match ($regex, $image, $srcs))
    $image = $srcs[1].$srcs[4];
    $regex = ‘#(<img.*)widths*=s*([“‘])(.*?)2(.*/?>)#im’;
    if (preg_match ($regex, $image, $srcs))
    $image = $srcs[1].$srcs[4];

    return $image;
    }
    return ”;
    }[/PHP]

    Replace by :
    [PHP]function processImageBlog ($matches) {
    $regex = ‘#(<img.*)srcs*=s*([“‘])(.*?)2(.*/?>)#im’;
    $text = $matches[0];
    if (!preg_match ($regex, $text, $srcs)) return ”;
    if (($src = $this->processImage ($srcs[3], $this->_width, $this->_height, $this->_crop))) {
    $oldurl = $srcs[3];
    $image = $srcs[1].”src=”.$srcs[2].$src.$srcs[2].$srcs[4];
    //remove height/width
    $regex = ‘#(<img.*)heights*=s*([“‘])(.*?)2(.*/?>)#im’;
    if (preg_match ($regex, $image, $srcs))
    $image = $srcs[1].$srcs[4];
    $regex = ‘#(<img.*)widths*=s*([“‘])(.*?)2(.*/?>)#im’;
    if (preg_match ($regex, $image, $srcs))
    $image = $srcs[1].$srcs[4];

    $image = “<a class=”modal” href='”.$oldurl
    .”‘>”.$image.”</a>”;

    return $image;
    }
    return ”;
    }[/PHP]

    Then open plugins/content/plg_jathumbnail/tmpl/thumbnail.php
    Find these codes :
    [PHP]<div class=”thumbnail” <?php if ($i==1):?>style=”position:relative;z-index:2″<?php endif;?>>
    <?php if (class_exists(‘plgSystemPlg_JAPopup’)):?>
    {japopup type=”image” content=”<?php echo $image[‘org_src’];?>” title=”” group=”group”}
    <?php endif; ?>

    <?php echo $image[‘new’].”n”;?>

    <?php if (class_exists(‘plgSystemPlg_JAPopup’)):?>
    {/japopup}
    <?php endif; ?>
    </div>[/PHP]

    Replace by :

    [PHP]<div class=”thumbnail” <?php if ($i==1):?>style=”position:relative;z-index:2″<?php endif;?>>
    <?php if (class_exists(‘plgSystemPlg_JAPopup’)):?>
    {japopup type=”image” content=”<?php echo $image[‘org_src’];?>” title=”” group=”group”}
    <?php else:
    echo “<a class=”modal” href='”.$image[‘org_src’].”‘>”;
    endif
    ?>
    <?php echo $image[‘new’].”n”;?>

    <?php if (class_exists(‘plgSystemPlg_JAPopup’)):?>
    {/japopup}
    <?php else:
    echo “</a>”;
    endif
    ?>
    </div>[/PHP]

    deblock Friend
    #338281

    Hi,

    I had JA Thumbnail working, but suddenly it’s creating faulty links to photos in stories. Here’s an example:

    http://www.racinepost.com/joomla4/business/biz1/535-natural-choice-racines-pacific-sands-simplifies-cleaning-products

    The photo is listed at:

    http://www.racinepost.com/joomla4/business/biz1/images/stories/refillables.jpg

    But the photo is actually at:

    http://www.racinepost.com/joomla4/images/resized/images/stories/refillables_200_200.jpg

    This is happening in every story on the site. JA Thumbnail is looking in the story folder for the images and coming up empty.

    Any ideas on how to fix?

    Thanks,

    Dustin

    zorroh Friend
    #338335

    Thank You dathq, popup working now! 🙂

    Sherlock Friend
    #338347

    Dear deblock,

    Please kindly submit a ticket,give us more details about the problem then one of our staff would check this problem for you.

    shanecombs Friend
    #345740

    Hello,

    I’m trying to hide one image from showing up, how can I do this? I have tried adding style=”display: none;” to the img tag which hides the image but now the first image on the slideshow is just blank.

    shanecombs Friend
    #345940

    Hello,

    Thank you for the solution to my previous question; it worked well.

    I am trying to combine the ja thumbail plugin and the ja popup plugin. The problem I am having is that the image caption in the JA Popup (for an image) does not display when JA Thumbnail is activated in the article. Is there a way to fix this?

    Thanks again

    congtq Friend
    #345995

    Dear shanecombs.

    Do you want display image caption in popup window?

    Now only JA Thumbnail has the image caption feature, but not JA Popup. We will upgrade this feature for JA Popup in the near future. Thanks for using.

    P/s: To display the image caption, add class=”caption” in img tag, you probably already know this 🙂
    exp:
    <img class=”caption” src=”images/stories/demo/other/feature-1.jpg” border=”0″ alt=”New Joomla template framework introduced” title=”New Joomla template framework introduced” align=”left” />

    Have fun with combination of JA Thumbnail and JA Popup!

    shanecombs Friend
    #346018

    Yes, I was wanting to display an image caption in a popup window.

    What I found out when playing around is that when JA Thumbnail is on I cannot add captions to images displayed in JA Popup. When JA Thumbnail is off, captions work fine in JA Popup.

    I look forward to this update!

    Thanks.

    paellas Friend
    #346241

    Hello,
    I am using this plug-in but thumbnails show out-of-frame …

    It happens on Thumbnails and pictures on articles …

    Pls. help.

    Manos Moderator
    #346243

    You mean the crop ?

    paellas Friend
    #346244

    I don´t understand your question … but you may see the site at http://tab.rumbonuevo.com.mx

    I think these are called thumbnails … and they bring the picture off-frame …
    I have English as as second language … so probably they should be called crops … in any case, they don´t suppose to cut faces and feet … so if there is a way to control the outcome of the thumbnail or crop that would be great … or override it … but then, how to publish it along the note …

    So, its probably a setting I am missing , but pls. if you can help … the site is live now and I don´t know how to solve this issue at the front page level using JA-NEWS2 nor at the article level where pictures are also taken off-frame on how they were publishe.

    Thanks in adavance for your help.

    Manos Moderator
    #346245

    Yes the “crop” is the method that the plugin is using to make the picture fit in the frame you want.
    You can change the way this plugin works by setting ” Crop image ? Yes No” in the plugin settings.

    paellas Friend
    #346247

    ok…. my intention is to have images cropped .. so the answer to settings is YES … however, the way it works is not propoer … the pictures that come out are out of frame.

    So the question is: how to make this crop setting work properly for my pictures?.

    Manos Moderator
    #346248

    I think that in your language (italian isn’t ?) the Crop = raccolto. (as google translate sais).

    So if you don’t want the images to be cut you have to set in JaNews2 -> Thumbnail Mode -> Using Resize
    I will try with google translate to write this in Italian also

    http://translate.google.com/#en|it|So%20if%20you%20don’t%20want%20the%20images%20to%20be%20cut%20you%20have%20to%20set%20%20%20in%20JaNews2%20-%3E%20Thumbnail%20Mode%20-%3E%20Using%20Resize

    jan007 Friend
    #346351

    My pictures don’t show in JA Slideshow after a quick install. Tried everything, about to give up…

Viewing 15 posts - 61 through 75 (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