test
Viewing 15 posts - 76 through 90 (of 128 total)
  • Author
    Posts
  • Manos Moderator
    #346361

    any link to your site ?

    Sherlock Friend
    #346859

    <em>@shanecombs 181556 wrote:</em><blockquote>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.</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 !

    stoneshadow Friend
    #346915

    Hi this is my first post here
    I am Giorgio from Italy.
    I installed jateline III template in a subdirectory of one of my sites, because I Needed to migrate from joomla 1.0 to 1.5.
    Everything is going ok but I Have some problems with the thumbinails of the article . I would thank to everyone that can help me.
    I try to configurate the plugin but this have no effect on my images. Is it due to the fact that I installed jateline in a subdirectory and so there may be some problems with the path, or whatever?
    Thank :-[

    Saguaros Moderator
    #347068

    Dear stoneshadow!

    Can you please give us the link to your site, i would like to have a closer look on the issue.

    stoneshadow Friend
    #347101

    Thanks for the answer tienhc
    The url of the site is http://www.blogrisparmio.it/JATELINE/
    As i said before it”s installed in a subdirectory
    regards
    giorgio

    Sherlock Friend
    #347316

    Hi stoneshadow,

    Please make sure that your images foder as well as all it’s sub-foder they can be wrote, change their cmod value to 777 also please try turn off safe_mode php setting.

    I hope it help !

    rvpllc Friend
    #347867

    I have the plugin working but I am wanting to make the thumbnail caption text aligned to the left not centered but cannot find the right class is the css file to change this.

    Example at http://www.belvideredailyrepublican.net/test/index.php?option=com_content&view=article&id=399:rain-cant-dampen-sound-of-concert-in-the-park&catid=106:belvidere&Itemid=508

    Any help would be great.

    Sherlock Friend
    #347952

    <em>@rvpllc 183858 wrote:</em><blockquote>I have the plugin working but I am wanting to make the thumbnail caption text aligned to the left not centered but cannot find the right class is the css file to change this.

    Example at http://www.belvideredailyrepublican.net/test/index.php?option=com_content&view=article&id=399:rain-cant-dampen-sound-of-concert-in-the-park&catid=106:belvidere&Itemid=508

    Any help would be great.</blockquote>

    Hi rvpllc,

    you can go to templates/system/css/general.css file,Do a search this css
    .img_caption.right p {
    clear: right;
    text-align: center;
    }

    Chnage it to

    .img_caption.right p {
    clear: right;
    text-align: left !important;
    }

    I hope this help !

    stoneshadow Friend
    #350001

    <em>@dathq 183155 wrote:</em><blockquote>Hi stoneshadow,

    Please make sure that your images foder as well as all it’s sub-foder they can be wrote, change their cmod value to 777 also please try turn off safe_mode php setting.

    I hope it help !</blockquote>
    Thanks for the help dathq
    Unfortunately It can’t solve the problem
    Is it possible for you to take a look at the backend of the site, to help me to solve the situation?, I would appreciate it much.
    I don’t like to ask direct help in a forum, but I tryed everything I know to solve the situation without any results
    Send me a pm if you have 5 minutes free
    Thanks:)
    Giorgio

    Sherlock Friend
    #350192

    Hi stoneshadow,

    If possible please submit a ticket give me your admin account or you can add my skype that is vuanuocnam,I will check your back-end and give helps thought chatting.

    madeline63 Friend
    #350391

    In my article i use the (<p><img class=”caption” src=”images/stories/demo/health/diet-4.jpg” border=”0″ alt=”Sample image” title=”Sample image” align=”left” /></p>) on my picture, can i just show the image caption only on the article layout but not show on Section Blog Layout, Category Blog Layout, Frontpage Blog layout this type of area.


    stoneshadow Friend
    #350851

    Hi stoneshadow,

    If possible please submit a ticket give me your admin account or you can add my skype that is vuanuocnam,I will check your back-end and give helps thought chatting</blockquote>
    Hi dathq I sent You a private message a week ago, did you read it?
    regards
    Stone

    gsinkaos Friend
    #354058

    I am in desperate need of help!!! I love the inline image gallery feature with the thumbnail plugin! The only problem is that it only seems to work with locally stored images. I’ve come across picapps which let you use their images for free as long as the image is linked to their website. So the problem is that when i embed the img src code in the article, the thumbnail image gallery doesn’t crop or resize the image so the image ends up overflowing into other blocks and div’s. Also the when I click on the image it doesn’t go to to the picapps website. In order for me to use their images the Image HAS to be linked to the original source of the image. After one trial and error test after another I have failed. I would GREATLY appreciate any help with this

    Saguaros Moderator
    #354068

    <em>@gsinkaos 192096 wrote:</em><blockquote>I am in desperate need of help!!! I love the inline image gallery feature with the thumbnail plugin! The only problem is that it only seems to work with locally stored images. I’ve come across picapps which let you use their images for free as long as the image is linked to their website. So the problem is that when i embed the img src code in the article, the thumbnail image gallery doesn’t crop or resize the image so the image ends up overflowing into other blocks and div’s. Also the when I click on the image it doesn’t go to to the picapps website. In order for me to use their images the Image HAS to be linked to the original source of the image. After one trial and error test after another I have failed. I would GREATLY appreciate any help with this</blockquote>

    as you known, main function of this plugin is using to render thumbnails in blog, article layout and generate a mini gallery in the article layout. the plugin only generates thumbnail for images which put into the directory of the site, with does not support for linked images. so that you should save those images and put them in the “images” folder, it’s a way to speed up performance of the site

    gsinkaos Friend
    #354142

    Appreciate the quick response! Thank you

Viewing 15 posts - 76 through 90 (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