Author Topic: Gallery Images in Vcard with default Lightbox/Slimbox!  (Read 7276 times)

0 Members and 1 Guest are viewing this topic.

Offline Robert_Vining

  • SOBI Team
  • Moderator
  • Sobi Hero
  • *
  • Posts: 1406
  • SobiPro is a free download!
  • Reviews:

    What is it?

    • Sobi Team Member
Gallery Images in Vcard with default Lightbox/Slimbox!
« on: 22. April 2009, 06:37:44 »
Got the idea from the post of getaweb for Highslide gallery images in vcard.

I wanted the default slimbox to work in vcard view for gallery images using the mootools already shipped with Joomla 1.5. No reason to load an additional javascript library if you don't need it.

There is no code to tweak, just 2 simple steps.

1. Un-comment the following line of code by removing the 2 slashes before the $mySobi = new sobi( $id ); in your vcard template:


Look for this line and make sure there are no // before the code in red below:
//   For advanced templating comment in the next line if you need to access other sobi2 object proporties
$mySobi = new sobi2( $id );

2. simply add this code to your vcard template instead of the standard gallery plugin code to generate the gallery images in vcard with full slimbox effect.

<?php
$myGallery = new HTML_SOBI();
$myGallery->getPlugin($mySobi, "gallery");
?>

Be sure to set the configuration in the sobi2 Gallery Plugin admin area to use the default mootools and your done!

As soon as my project goes live I will provide a link.

Thanks again to getaweb for bringing this little nugget of code to light!
« Last Edit: 22. April 2009, 06:40:43 by Robert_Vining »
Robert Vining
SobiPro Documentation and Support Team
NOW OPEN!>> | www.sobitemplates.com | Professional Sobi2 and SobiPro Templates
www.robertswebdesign.com - Joomla, Sobi2 and SobiPro Specialist
Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Sobi Templates

Offline bossies

Re: Gallery Images in Vcard with default Lightbox/Slimbox!
« Reply #1 on: 23. April 2009, 08:30:53 »
thanks for the code,

i am still looking for something that can help me to display the correct caption on the v-card view - at the moment i get either nothing, or i get Image 1 of 10 using different options.  What i would like is the same caption that is showing when you go to the details view and then click on the image....please pretty please help?

thanks
rudolf
Country: South Africa South Africa |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Affordable web Design

Offline Robert_Vining

  • SOBI Team
  • Moderator
  • Sobi Hero
  • *
  • Posts: 1406
  • SobiPro is a free download!
  • Reviews:

    What is it?

    • Sobi Team Member
Re: Gallery Images in Vcard with default Lightbox/Slimbox!
« Reply #2 on: 23. April 2009, 09:00:41 »
The description works the same as detail view using the above method.
Robert Vining
SobiPro Documentation and Support Team
NOW OPEN!>> | www.sobitemplates.com | Professional Sobi2 and SobiPro Templates
www.robertswebdesign.com - Joomla, Sobi2 and SobiPro Specialist
Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Sobi Templates

Offline bossies

Re: Gallery Images in Vcard with default Lightbox/Slimbox!
« Reply #3 on: 23. April 2009, 09:08:52 »
Do you maybe have a link to a live/test site for me to have a look?
Country: South Africa South Africa |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Affordable web Design

Offline bossies

Re: Gallery Images in Vcard with default Lightbox/Slimbox!
« Reply #4 on: 23. April 2009, 09:16:42 »
I have remove some of my code with all my tryings - and walla - your method is working fine - YOU DA MAN!!!
Country: South Africa South Africa |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Affordable web Design

Offline noobster

Re: Gallery Images in Vcard with default Lightbox/Slimbox!
« Reply #5 on: 27. September 2009, 04:52:00 »
Got the idea from the post of getaweb for Highslide gallery images in vcard.

I wanted the default slimbox to work in vcard view for gallery images using the mootools already shipped with Joomla 1.5. No reason to load an additional javascript library if you don't need it.

There is no code to tweak, just 2 simple steps.

1. Un-comment the following line of code by removing the 2 slashes before the $mySobi = new sobi( $id ); in your vcard template:


Look for this line and make sure there are no // before the code in red below:
//   For advanced templating comment in the next line if you need to access other sobi2 object proporties
$mySobi = new sobi2( $id );

2. simply add this code to your vcard template instead of the standard gallery plugin code to generate the gallery images in vcard with full slimbox effect.

<?php
$myGallery = new HTML_SOBI();
$myGallery->getPlugin($mySobi, "gallery");
?>

Be sure to set the configuration in the sobi2 Gallery Plugin admin area to use the default mootools and your done!

As soon as my project goes live I will provide a link.

Thanks again to getaweb for bringing this little nugget of code to light!

Thank you this code works great.  However is it possible to only display one thumb image rather than all of them in a v-card?

Would you be able to help with that code?
Country: Canada Canada |  OS: Windows Vista/Server 2008 Windows Vista/Server 2008 |  Browser: Firefox 3.0.14 Firefox 3.0.14 | View Profile

Offline status206

Re: Gallery Images in Vcard with default Lightbox/Slimbox!
« Reply #6 on: 03. December 2009, 21:35:32 »
I've made the adjustments but no change... still only one picture...hows that possible.

 :blink: ??? :ermm:

« Last Edit: 03. December 2009, 21:38:57 by status206 »
Future SOBI2 Releases: I'd like to see this as a built in feature or plugin. To be able add any field you'd like to display in the meta title from the admin UI from the custom field manager.. ~ Signed a paying sigsiu.net customer
Country: United States United States |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.5 Firefox 3.5.5 | View Profile

Offline moragas

Re: Gallery Images in Vcard with default Lightbox/Slimbox!
« Reply #7 on: 13. April 2010, 17:52:52 »
Hi,

I've made this alteration and works great, but when a click at the image it’s not open the gallery image just open the image in another window.

Other thing, there is some way to put only the first image of the gallery in the vcard, not all of them?

Tks and sorry about the english.

Moragas
Country: Brazil Brazil |  OS: Windows Vista/Server 2008 Windows Vista/Server 2008 |  Browser: Firefox 3.5.6 Firefox 3.5.6 | View Profile

Offline patrickcrielaard

Re: Gallery Images in Vcard with default Lightbox/Slimbox!
« Reply #8 on: 09. October 2010, 21:02:47 »
I am wondering the same as well.

At the moment it shows all the pictures in the gallery.

How can I make it possible that it only shows 1 picture (randomly or first one uploaded)

and secondly

When you click on the picture that it goes to the detailsview

Thanks,
Country: Netherlands Netherlands |  OS: Windows 7/Server 2008 R2 Windows 7/Server 2008 R2 |  Browser: Firefox 3.6.10 Firefox 3.6.10 | View Profile

Offline Robert_Vining

  • SOBI Team
  • Moderator
  • Sobi Hero
  • *
  • Posts: 1406
  • SobiPro is a free download!
  • Reviews:

    What is it?

    • Sobi Team Member
Robert Vining
SobiPro Documentation and Support Team
NOW OPEN!>> | www.sobitemplates.com | Professional Sobi2 and SobiPro Templates
www.robertswebdesign.com - Joomla, Sobi2 and SobiPro Specialist
Country: United States United States |  OS: Windows 7/Server 2008 R2 Windows 7/Server 2008 R2 |  Browser: Firefox 3.6.10 Firefox 3.6.10 | View Profile Sobi Templates

Tags: