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'),
)
)));
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
Nice extension worked at first install r
hello bonnie, soon I will create a more complete version! thanks ;D
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?
Undefined index: style r
Hi friend, thanks for warning.
bug fixed.
please download again.
=D
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.
Height not being resized r
hi swampone, i tested using the bootstrap and worked correctly.
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
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! :)
thanks
hello guys, thanks for the comments, version 2.0 soon!
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..
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.