Highslide for image popups

I love this script and I have succeeded to implement it to the "blog demo". Since it does not seem to be the extension of the Yii, I am going to share this as a tutorial or cookbook. How do you think?

Anyway I am posting this in order to reserve the place of the materials which I will not be able to upload to the cookbook.

[Edit]

Done.

http://www.yiiframew…oc/cookbook/12/

Added a function of params for the image (imageParams) in order to support floating images shown as below.

Modified cookbook.

http://www.yiiframew…oc/cookbook/12/

It looks very cool!

Quote

It looks very cool!

Thanks Qiang.

Though I would like to make it as an extension of Yii at first, I thought it is difficult because there is no direct support of image on Yii.

As this is the reason for me to make it as an extension of the blog demo, it is still easy for users to use it for their Yii application, I suppose.

What kind of image support are you looking for?

Quote

What kind of image support are you looking for?

I do not have a concrete idea. But I can think of something, e.g.

(1) image upload functionality

(2) display functionality with thumb-nail/bounding box constraint

Based on these situations, I can use these kind of scripts (e.g. lightbox, highslide etc.).

This time, I left (1), and made a method in the markdown interpretation which blog demo already has.


[Updated: Feb 22, 2009]

Collection of the enhancements:

http://code.google.c…gdemo-enhanced/

Quote

Modified cookbook.

http://www.yiiframew…oc/cookbook/12/

Rewritten using CClientScript.

http://www.yiiframew…oc/cookbook/12/

I checked my program and found that I have used DIRECTORY_SEPERATOR in the URL.

I have commited the revised version of the enhanced blog demo to the following repositry.

http://code.google.c…rce/detail?r=18

i am new and is beginner to use the php.

can i have a sample on it? i try to look into it so that able to use at my code.

i have also look for a function to popup my image while click on the records from the GridView.

hope some one able to help me.

thanks.