test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • corticalcolumn Friend
    #187216

    Hi,

    I would like to ask how to disable possibility to view full image in K2 item or make it visible in some nice lightbox?

    At the moment there is only part of whole image visible and if I click it, it just appear in the same window as address on jpg file. Is it possible to show it in lightbox or disable that option at all?

    Thank you 🙂

    Saguaros Moderator
    #491663

    Hi corticalcolumn,

    You can disable it by removing link of that image in k2 item. Go to file: templatesja_fubixhtmlcom_k2ja_fubixitem.php

    at approx line 43, you will see this code:

    <blockquote>
    <span class=”itemImage”>
    <a class=”modal-image” rel=”{handler: ‘image’}” href=”<?php echo $this->item->imageXLarge; ?>” title=”<?php echo JText::_(‘K2_CLICK_TO_PREVIEW_IMAGE’); ?>”>
    <img src=”<?php echo $this->item->image; ?>” alt=”<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>” style=”width:<?php echo $this->item->imageWidth; ?>px; height:auto;” />
    </a>
    </span>
    </blockquote>

    Remove the <a> tag should do the trick.

    Regards

    corticalcolumn Friend
    #491785

    works perfectly i changed <a class… for <div class… and changed also K2_CLICK_TO_PREVIEW_IMAGE in language file to name of my website (instead info ‘click here to see image’ etc).

    thank you for your help!

    Saguaros Moderator
    #491791

    You are welcome :laugh:

    Best Regards

    corticalcolumn Friend
    #491805

    Sorry to bother you…

    Any idea how to make it as lightbox popup (overlayer or how to is called)? Like in simple image gallery for K2 for example… I mean that some of pictures should be visible at full (some articles are related to astronomy and it is better to show full range of starts, galaxy, etc.)…

    If you can help me how to make it, that would be great. Thank you. You have got it in Ja Mitius template for example…

    Saguaros Moderator
    #491847

    Agree with you that it would be ideal if it opens in popup window. I reported this to dev team and consider it as improvement and will update it in the next release of this template.

    Currently, you can try with this solution:

    – Open file: ja_fubixhtmlcom_k2ja_fubixitem.php

    At approx line 44: <a class=”modal-image” rel=”{handler: ‘image’}” (you may need to roll back the previous change 🙂 )

    change to: <a class=”modal modal-image” rel=”{handler: ‘image’}”

    – Then go to css file: templatesja_fubixcssk2.css

    add this css rule:


    #k2Container .itemImageBlock .itemImage .modal{
    background: none repeat scroll 0 0 transparent;
    border: 0 none;
    border-radius: 0 0 0 0;
    box-shadow: none;
    left: auto;
    margin: 0;
    padding: 0;
    position: relative;
    top: auto;
    width: auto;
    z-index: 1;
    }

    Give it a try and let me know how it goes

    corticalcolumn Friend
    #492275

    YOU ARE THE MASTER 🙂

    works like a charm! 😀

    thank you for your time and help. take care!

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  corticalcolumn 11 years, 7 months ago.

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