Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.

  • 14/04/2017 Happy Easter

    Wish a Happy Easter and give 30% discount for all our WordPress and Joomla! extensions. Use EASTER17 coupon code. The offer is valid till 17 April.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

sexy lightbox in k2 image field
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: sexy lightbox in k2 image field
#49338
sexy lightbox in k2 image field 3 Years, 5 Months ago Karma: 0
Hi,

I would like to use sexy lightbox in k2 items instead of squeezebox. The code i think needs changing in item.php is:

Code:

<span class="itemImage">
   <a class="modal" 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>



So, i was thinking just changing the rel should do the trick (and loading sexylb of course), but unfortunately this doesn't work.

I know i had this working years ago (), but cant find my backups:) and cant reconstruct how i had this working once.

Could you please help?
The administrator has disabled public write access.
 
#49340
Re:sexy lightbox in k2 image field 3 Years, 5 Months ago Karma: 666
Hello,

Set rel="sexylightbox" attribute for <A> tag and enable and configure "System - ARI Sexy Lightbox" plugin. Set also "Mode" parameter to "Anywhere" in plugin settings.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#49365
Re:sexy lightbox in k2 image field 3 Years, 5 Months ago Karma: 0
Many thanks for your very speedy reply.

It was indeed a question of just adding a rel, like so:

Code:

<a rel="sexylightbox" href="<?php etcetcetc


But, i had disabled jquery from the plugin parameters, and as i found out, the sexy lightbox needs its own jq library.

So now my question would be whether it is possible to run the lightbox with joomla's standard jq, and not having to load it twice (one for template, one for lightbox).

FYI, i am using j3.3, k2 latest, and i have tried protostar standard template, helix, and just for good measure warp.

On every one of those themes i have to load jquery from the plugin parameters, or else the lightbox doesn't show.

Any clues to why this is happening, or is there any way i can make the lightbox use joomla's jquery?

Thanks again and if you need any other info please let me know.
The administrator has disabled public write access.
 
#49369
Re:sexy lightbox in k2 image field 3 Years, 5 Months ago Karma: 666
Do you use the latest version of the extension? If yes, set "Load jQuery method" parameter to "Local copy" and "Include jQuery" parameter to "Yes". In this case jQuery will be loaded by Joomla! via Joomla! API.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#49422
Re:sexy lightbox in k2 image field 3 Years, 5 Months ago Karma: 0
Ah, i was expecting the opposite with those settings, my bad:)

All working now, great support, tx!
The administrator has disabled public write access.
 
Go to topPage: 1