Yii 1.1: seq-image

An simple slideshow of images
10 followers

Requirements

Tested 1.1.8x

Usage

$this->widget('application.extensions.seqimage.SeqImage',array(
  'widthImage' => 650, 
  'heightImage' => 340,
  'slides'=>array(  
       array(
           'image'=>array('src'=>Yii::app()->request->baseUrl.'/images/test.jpg'),            
           'link'=>array('url'=>'mypage','htmlOptions'=>array())
       ),
       array(
           'image'=>array('src'=>Yii::app()->request->baseUrl.'/images/any.jpg'),            
       ),
      array(
           'image'=>array('src'=>Yii::app()->request->baseUrl.'/images/anyany.jpg'),            
       )
  )));

Total 10 comments

#14438 report it
Ankit Modi at 2013/08/12 12:28am
How to display banner dynamic
<?php 
 
 
                $resultSet= BannerManagement::model()->findAll("status='1'");
 
                foreach ($resultSet as $key1=>$value){
                    $image_path = Yii::app()->request->baseUrl.'/upload/banner/'.$value->image_name;
                    $image_Array[]=(array('image'=>array('src'=>$image_path)));
                }
 
 
 
 
                ?>
                    <?php 
                        $this->widget('application.extensions.seqimage.SeqImage',array(
                          'widthImage' => 980, 
                          'heightImage' => 295,
                            //http://frameconn.com.br/source/images/any.jpg
                          'slides'=>$image_Array));
                        ?>

Hope it's may be helpful..

#10427 report it
nandomegaman at 2012/10/26 06:12pm
thanks

hello guys, thanks for the comments, version 2.0 soon!

#10409 report it
SomethingWicked at 2012/10/26 06:12am
assets manager to fix

Hi, thanks for the extension! Imho, there is something wrong with the way you implemented the assets managing of your extension, coz actually it is publishing also the php code in the general assets directory.

I changed, inside the SeqImage.php, part of the init function this way:

/* TO IMPROVE */
    /* $dir = dirname(__FILE__);
      $dirUrl = Yii::app()->getAssetManager()->publish($dir);
    $clientScript = Yii::app()->getClientScript();
    $clientScript->registerCssFile($dirUrl . '/assets/seqimage.css');
     */
 
    $dirUrl = Yii::app()->assetManager->publish(Yii::getPathOfAlias('ext.seqimage.assets'));
    $clientScript = Yii::app()->getClientScript();
    $clientScript->registerCssFile($dirUrl . '/seqimage.css');

This way now the main assets dir publish a directory with your image and css only.

I guess that another improvement could be to merge the "general" hash directory with the one generated by your extension, avoiding the duplication of the assets directory, but this is another point.

Cheers! :)

#10019 report it
lienmt at 2012/09/30 03:51pm
array slides dynamic way?

Hi all,

If i don't know the exactly number of arrays to show? for example i need to extract the info from a data base....how can i use this ext?

thx

#7753 report it
nandomegaman at 2012/04/15 01:24am
Height not being resized r

hi swampone, i tested using the bootstrap and worked correctly.

#7659 report it
swampone at 2012/04/05 03:09pm
Height not being resized

I have 2 sites. One where this extension works fine and the other, the height of the image is not being resized. The dots at the bottom that tell you which image you are on is being resized though, but my images are either too long are too short. the width is working fine. I copied the code directly from the site that is working. the only difference in the sites is that the one that this extension is not working on, uses the bootstrap extension.

#6694 report it
nandomegaman at 2012/01/29 06:05pm
Undefined index: style r

Hi friend, thanks for warning. bug fixed. please download again.

=D

#6690 report it
Giancarlo at 2012/01/28 11:55pm
Undefined index: style

Hi. I have tried your extension, but see this error:

Undefined index: style /www/protected/extensions/seqimage/SeqImage.php(98)

This is the line: $htmlOptions['style'] .= 'margin: 10px 0 0 0; float: '.$this->buttonsOutPosition.'; ';

Have you any idea?

#6011 report it
nandomegaman at 2011/12/05 05:11pm
Nice extension worked at first install r

hello bonnie, soon I will create a more complete version! thanks ;D

#5974 report it
bonnie at 2011/12/02 12:27am
Nice extension worked at first install

Are there more options can be added on like description or caption at the bottom of the image. I would like to use an app I have the url to the image in the database and I would like to pass the description to. Thanks

Leave a comment

Please to leave your comment.

Create extension
Downloads