[Extension] jqPrettyPhoto jqprettyphoto extension
#1
Posted 22 October 2010 - 06:51 AM
The extension in www.yiiframework.com is here
Any problems or suggestions here!
www.ramirezcobos.com
#2
Posted 25 November 2010 - 07:12 AM
I have problem with load gallery. Single file load properly, but when I set attribute jqPrettyPhoto::PRETTY_GALLERY and set selector to list of links to images, there show only preloader..
Yii::import('ext.jqPrettyPhoto');
jqPrettyPhoto::addPretty('#gallery a',jqPrettyPhoto::PRETTY_GALLERY,jqPrettyPhoto::THEME_DARK_SQUARE);
echo '<div id="gallery">';
echo CHtml::link(URL_TO_MY_THUMBNAIL_1, URL_T0_MY_IMAGE_1);
echo CHtml::link(URL_TO_MY_THUMBNAIL_2, URL_T0_MY_IMAGE_2);
echo '</div>';
#3
Posted 04 December 2010 - 11:42 AM
#4
Posted 05 December 2010 - 01:14 PM
Deimos, on 25 November 2010 - 07:12 AM, said:
I have problem with load gallery. Single file load properly, but when I set attribute jqPrettyPhoto::PRETTY_GALLERY and set selector to list of links to images, there show only preloader..
Yii::import('ext.jqPrettyPhoto');
jqPrettyPhoto::addPretty('#gallery a',jqPrettyPhoto::PRETTY_GALLERY,jqPrettyPhoto::THEME_DARK_SQUARE);
echo '<div id="gallery">';
echo CHtml::link(URL_TO_MY_THUMBNAIL_1, URL_T0_MY_IMAGE_1);
echo CHtml::link(URL_TO_MY_THUMBNAIL_2, URL_T0_MY_IMAGE_2);
echo '</div>';
Could you please check the URLs? Do you have firebug? Can you check the XHR communication?
www.ramirezcobos.com
#5
Posted 05 December 2010 - 01:14 PM
jacmoe, on 04 December 2010 - 11:42 AM, said:
Thanks Jacmoe!
www.ramirezcobos.com
#6
Posted 30 December 2010 - 09:32 AM
I get hundreds of "itemSrc is undefined" errors in firebug, if I choose gallery.
A single Image... no problem but gallery won´t work.
Any ideas?
Antonio Ramirez, on 05 December 2010 - 01:14 PM, said:
#7
Posted 30 December 2010 - 11:21 AM
Please, double check the class name. If you still have problems, please drop the html here and your PHP code to initialize the plugin and we try to help you.
www.ramirezcobos.com
#8
Posted 30 December 2010 - 02:51 PM
tronga, on 30 December 2010 - 09:32 AM, said:
I get hundreds of "itemSrc is undefined" errors in firebug, if I choose gallery.
A single Image... no problem but gallery won´t work.
Any ideas?
I have got now the same problem and it is a jqPrettyPhoto bug... I try to find out what is going on as the settings are in my opinion correct. I get you updated with it.
Thanks for your feedback
www.ramirezcobos.com
#9
Posted 30 December 2010 - 03:10 PM
www.ramirezcobos.com
#10
Posted 30 December 2010 - 03:25 PM
tronga, on 30 December 2010 - 09:32 AM, said:
I get hundreds of "itemSrc is undefined" errors in firebug, if I choose gallery.
A single Image... no problem but gallery won´t work.
Any ideas?
Now it works, I have updated the extension Component (not the widget as it works). It was a version bug of jqPrettyPhoto plugin. Also updated the extension so it allows users to include options (as the widget).
Thank you very much for your feedback to make this extension better.
Cheers
www.ramirezcobos.com
#11
Posted 31 December 2010 - 03:37 AM
thanks for the quick support.
The plugin now works and the gallery is very useful.
Greetings
Jan
#12
Posted 01 February 2011 - 05:36 AM
I have a probleme with this extension :
in my view, i add this :
<?php
Yii::import('ext.jqPrettyPhoto');
$options = array(
'slideshow'=>5000,
'autoplay_slideshow'=>false,
'show_title'=>false
);
// call addPretty static function
jqPrettyPhoto::addPretty('.gallery a',jqPrettyPhoto::PRETTY_GALLERY,jqPrettyPhoto::THEME_FACEBOOK, $options);
echo '<div id="gallery">';
echo CHtml::link("./images/angelus.jpg", "./images/angelus.jpg");
echo '</div>';
?>in attachment, i show my project organisation.
And I have this error :
Non-static method jqPrettyPhoto::scriptName() should not be called statically
Thanks a lot for your help
Attached File(s)
-
Yii.jpeg (116.69K)
Number of downloads: 20
#13
Posted 01 February 2011 - 06:05 AM
Thanks for sharing my friend
Can you change the function scriptName to protected static ? that will solve the issue
www.ramirezcobos.com
#14
Posted 01 February 2011 - 06:17 AM
Thanks again
www.ramirezcobos.com
#15
Posted 01 February 2011 - 08:49 AM
Thanks to spend a lot of time to help the others.
Guillaume
#16
Posted 13 March 2011 - 05:29 PM
Firt of all... thanks for the component. The single image mode works perfect for me.
But I wonder how to accomplish the gallery mode without having as many links as images?
Trying your example:
echo '<div id="gallery">'; echo CHtml::link(URL_TO_MY_THUMBNAIL_1, URL_T0_MY_IMAGE_1); echo CHtml::link(URL_TO_MY_THUMBNAIL_2, URL_T0_MY_IMAGE_2); echo '</div>';
... gives me two images to click on. I'd prefer to have only one appetizer image to click on. Having 50+ images makes it too crowded on my page... did I totally get it wrong?
Thanks in advance
themroc
#17
Posted 21 December 2011 - 09:28 PM
themroc, on 13 March 2011 - 05:29 PM, said:
Firt of all... thanks for the component. The single image mode works perfect for me.
But I wonder how to accomplish the gallery mode without having as many links as images?
Trying your example:
echo '<div id="gallery">'; echo CHtml::link(URL_TO_MY_THUMBNAIL_1, URL_T0_MY_IMAGE_1); echo CHtml::link(URL_TO_MY_THUMBNAIL_2, URL_T0_MY_IMAGE_2); echo '</div>';
... gives me two images to click on. I'd prefer to have only one appetizer image to click on. Having 50+ images makes it too crowded on my page... did I totally get it wrong?
Thanks in advance
themroc
I think you can hide the links with css.
#18
Posted 23 March 2012 - 04:18 AM
can you tell me, what i am wrong?
thanks
#19
Posted 23 March 2012 - 05:21 AM
ichigo, on 23 March 2012 - 04:18 AM, said:
can you tell me, what i am wrong?
thanks
Hi. Can you post the resulting HTML code containing the images?
#20
Posted 23 March 2012 - 08:55 AM
bennouna, on 23 March 2012 - 05:21 AM, said:
Hi Bennouna, thanks for the reply
here the html result of 1st page:
<div class="view"> <div id="gallery"> <a title="" href="/images/Battlefield 3.jpg"> <img width="120" height="100" src="/images/thumbs/COD3.jpg" alt="Battlefield 3" /></a> </div>Battlefield 3<br /><a href="/index.php/site/contact">Call us</a><br /> </div>
when i click the 2nd page, there is no html result for the item in 2nd page, but it is same as the 1st page html result, i think, it is because of the pagination with ajax...right? i use CListView widget.
have anyone use it with CListView widget?
Regards,
fery

Help













