Yii Framework Forum: Gallery Manager extension - Yii Framework Forum

Jump to content

  • (7 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Gallery Manager extension nice widget to manage images gallery Rate Topic: ****- 2 Votes

#1 User is offline   Bogdan Savluk 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 20-April 10
  • Location:Kiev

Posted 07 July 2012 - 08:20 PM

Often we have images gallery in our application. So I have written extension to manage images gallery.

Features:
* Optional image name/description
* Multiple image upload in modern browsers(single image upload in old browsers)
* Arrange images in gallery, using drag and drop
* Multiply image operations (edit meta information, image removal)
* Multiply localizations (currently en/ru/uk )

To use you need:
* Twitter bootstrap css (widget use some classes from it)
* Image extension

Screenshot: Attached File  Screen Shot 2012-07-08 at 4.08.41 AM.png (358.67K)
Number of downloads: 638

Gallery Manager usage instructions

  • Checkout source code to your project, for example to ext.galleryManager.
  • Install and configure image component(bitbucket.org/z_bodya/yii-image).
  • Import gallery models to project, by adding "ext.galleryManager.models.*" to import in config/main.php
  • Add GalleryController to application or module controllerMap.
  • Configure and save gallery model


Example:
$gallery = new Gallery();
$gallery->name = true;
$gallery->description = true;
$gallery->versions = array(
    'small' => array(
        'resize' => array(200, null),
    ),
    'medium' => array(
        'resize' => array(800, null),
    )
);
$gallery->save();

Render widget for gallery created above:

$this->widget('GalleryManager', array(
    'gallery' => $gallery,
    'controllerRoute' => '/admin/gallery', //route to gallery controller
));


Using GalleryBehavior
Using gallery behavior is possible to add gallery to any model in application.

GalleryBehavior is under development(not tested yet) and will be finished soon, so usage examples also will be later.

Enjoy:
Attached File  z_bodya-yii-image-880649518c00.tar.gz (9.37K)
Number of downloads: 150
Attached File  z_bodya-gallerymanager-347553bc6bdc.tar.gz (9.7K)
Number of downloads: 104

Extension page

Fork me on bitbucket.
1

#2 User is offline   Mr_Klaatu 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 23-June 12

Posted 01 August 2012 - 10:26 PM

This is exactly what I am looking for, but I'm too stupid to understand the instructions and I can't get this working.

Could you show me a working example so I can get to grips with this great product.

I'm new to all of this and without complete examples I end up making it worse and breaking things.

Hoping you can help.....
0

#3 User is offline   jbernier 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 26-March 09

Posted 01 August 2012 - 10:40 PM

Same with me ! Couldn't have this extension to work.
0

#4 User is offline   Bogdan Savluk 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 20-April 10
  • Location:Kiev

Posted 02 August 2012 - 07:03 AM

View PostMr_Klaatu, on 01 August 2012 - 10:26 PM, said:

This is exactly what I am looking for, but I'm too stupid to understand the instructions and I can't get this working.

Could you show me a working example so I can get to grips with this great product.

I'm new to all of this and without complete examples I end up making it worse and breaking things.

Hoping you can help.....

It is not so hard - just try, and if you have problems you can ask for solution here.

You can try: https://bitbucket.org/z_bodya/cms-app - there is example of gallery usage
0

#5 User is offline   Ulashev Roman 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 19-June 12

Posted 02 August 2012 - 01:02 PM

Целый день туплю, не могу заставить работать.
Может у вас завалялся архивчик для свеже сгенереного "cii webapp"?
0

#6 User is offline   Bogdan Savluk 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 20-April 10
  • Location:Kiev

Posted 02 August 2012 - 02:51 PM

View PostUlashev Roman, on 02 August 2012 - 01:02 PM, said:

Целый день туплю, не могу заставить работать.
Может у вас завалялся архивчик для свеже сгенереного "cii webapp"?

Немножко, позже постараюсь сделать.

UPD:
Мне стало влом делать что-то с нуля, тем-более что пример уже есть,
по ссылке архив работающего приложения с галереей и дамп его базы - галерея по адересу /admin/test/gallery логин developer, пароль password

Working app and DB dump with galleryManager, to see galleryManager in action go to /admin/test/gallery and login with developer:password

http://zxbodya.cc.ua/cms-app.zip
0

#7 User is offline   Ulashev Roman 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 19-June 12

Posted 03 August 2012 - 01:44 AM

View PostBogdan Savluk, on 02 August 2012 - 02:51 PM, said:


UPD:
Мне стало влом делать что-то с нуля, тем-более что пример уже есть,
по ссылке архив работающего приложения с галереей и дамп его базы - галерея по адересу /admin/test/gallery логин developer, пароль password



Спасибо :) Разобрался.
0

#8 User is offline   tihanyilaci 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 29
  • Joined: 29-July 11

Posted 19 August 2012 - 08:26 AM

View PostBogdan Savluk, on 02 August 2012 - 07:03 AM, said:

It is not so hard - just try, and if you have problems you can ask for solution here.

You can try: https://bitbucket.org/z_bodya/cms-app - there is example of gallery usage


Hi Bogdan,

I tried cms-app, but the i got this error:

CException

Псевдоним "ext.tinymce.TinyMce" неверен. Убедитесь, что он указывает на существующий PHP файл.

Is there an english version?
And there was no extensions in the cms package. Could you help?

Thanks Laszlo from Hungary
0

#9 User is offline   Bogdan Savluk 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 20-April 10
  • Location:Kiev

Posted 19 August 2012 - 11:12 AM

View Posttihanyilaci, on 19 August 2012 - 08:26 AM, said:

Hi Bogdan,

I tried cms-app, but the i got this error:

CException

Псевдоним "ext.tinymce.TinyMce" неверен. Убедитесь, что он указывает на существующий PHP файл.

Is there an english version?
And there was no extensions in the cms package. Could you help?

Thanks Laszlo from Hungary


At this moment, all labels in cms-app are in russian language. But if you want you can change language for system messages, editing this line "Yii::app()->language = 'ru';" in AdminModule class.

About an error: maybe you dowloaded snapshot from bitbuket, not cloned repository with all it subrepositories.. - try to clone it using mercurial or download from post above
0

#10 User is offline   Mao Danh 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 20-August 12

Posted 20 August 2012 - 07:47 PM

Very professional, I like it. (Newbie :rolleyes: )
0

#11 User is offline   tihanyilaci 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 29
  • Joined: 29-July 11

Posted 21 August 2012 - 02:43 AM

View PostBogdan Savluk, on 19 August 2012 - 11:12 AM, said:

At this moment, all labels in cms-app are in russian language. But if you want you can change language for system messages, editing this line "Yii::app()->language = 'ru';" in AdminModule class.

About an error: maybe you dowloaded snapshot from bitbuket, not cloned repository with all it subrepositories.. - try to clone it using mercurial or download from post above


Now it works. Thanks for the help! Great app. I'm interested in the gallery module, so i will look for it in this testapp, hope i will not have more questions.
0

#12 User is offline   牵牛散步 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 14-October 12

Posted 14 October 2012 - 09:38 PM

hi Bogdan:
I can run cms-test ok! but i cannot upload any picture to server when i try to use galleryManage via to "testapp/admin/test/gallery/".The folder uploads,images,protected/runtime is written by server.
How can i run it ok?

ps:when i upload a picture nothing error message give me.
Attached File  选择图片.PNG (35.98K)
Number of downloads: 198
Attached File  选择图片2.png (11.52K)
Number of downloads: 174
0

#13 User is offline   Bogdan Savluk 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 20-April 10
  • Location:Kiev

Posted 15 October 2012 - 11:00 AM

View Post牵牛散步, on 14 October 2012 - 09:38 PM, said:

hi Bogdan:
I can run cms-test ok! but i cannot upload any picture to server when i try to use galleryManage via to "testapp/admin/test/gallery/".The folder uploads,images,protected/runtime is written by server.
How can i run it ok?

ps:when i upload a picture nothing error message give me.
Attachment 选择图片.PNG
Attachment 选择图片2.png

Folder named "gallery" in webroot should be written by web server process.
Also about error - you can see it in network tab in crome developer tools. Or alternatively - look into application log
0

#14 User is offline   krai500 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 18-March 12

Posted 21 October 2012 - 11:03 AM

hi Bogdan,I have same problem with this.

View Post牵牛散步, on 14 October 2012 - 09:38 PM, said:

hi Bogdan:
I can run cms-test ok! but i cannot upload any picture to server when i try to use galleryManage via to "testapp/admin/test/gallery/".The folder uploads,images,protected/runtime is written by server.
How can i run it ok?

ps:when i upload a picture nothing error message give me.
Attachment 选择图片.PNG
Attachment 选择图片2.png


I test on my PC with Window 7 Apache2.2.
Folder named "gallery" can written by webserver.
And this is screenshot about Error that I captured on chrome developer tools.Attached File  21-10-2555 22-57-51.png (88.27K)
Number of downloads: 121
0

#15 User is offline   Bogdan Savluk 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 20-April 10
  • Location:Kiev

Posted 21 October 2012 - 01:23 PM

Probably something wrong with image component.
Can you show response from server? (there, should be, some description of error which occured on server - You can see it in network tab in crome developer tools)

View Postkrai500, on 21 October 2012 - 11:03 AM, said:

hi Bogdan,I have same problem with this.

I test on my PC with Window 7 Apache2.2.
Folder named "gallery" can written by webserver.
And this is screenshot about Error that I captured on chrome developer tools.Attachment 21-10-2555 22-57-51.png

0

#16 User is offline   krai500 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 18-March 12

Posted 22 October 2012 - 12:30 AM

View PostBogdan Savluk, on 21 October 2012 - 01:23 PM, said:

Probably something wrong with image component.
Can you show response from server? (there, should be, some description of error which occured on server - You can see it in network tab in crome developer tools)

This is some error that I can show. Attachment 22-10-2555 12-07-08.png Attachment 22-10-2555 12-13-03.png
This is "application.log" file.

Quote

2012/10/22 12:53:09 [error] [php] Undefined index: photo (D:\WebServer\Apache2.2\htdocs\testapp\protected\extensions\galleryManager\GalleryController.php:104)
Stack trace:
#0 D:\WebServer\Apache2.2\htdocs\yii\framework\web\CController.php(287): GalleryController->runAction()
#1 D:\WebServer\Apache2.2\htdocs\yii\framework\web\CController.php(266): GalleryController->runActionWithFilters()
#2 D:\WebServer\Apache2.2\htdocs\yii\framework\web\CWebApplication.php(283): GalleryController->run()
#3 D:\WebServer\Apache2.2\htdocs\yii\framework\web\CWebApplication.php(142): CWebApplication->runController()
#4 D:\WebServer\Apache2.2\htdocs\yii\framework\base\CApplication.php(162): CWebApplication->processRequest()
#5 D:\WebServer\Apache2.2\htdocs\testapp\index.php(13): CWebApplication->run()
REQUEST_URI=/testapp/admin/gallery/changeData
in D:\WebServer\Apache2.2\htdocs\testapp\protected\extensions\galleryManager\GalleryController.php (104)
in D:\WebServer\Apache2.2\htdocs\testapp\index.php (13)
2012/10/22 12:53:09 [error] [php] Undefined index: photo (D:\WebServer\Apache2.2\htdocs\testapp\protected\extensions\galleryManager\GalleryController.php:104)
Stack trace:
#0 D:\WebServer\Apache2.2\htdocs\yii\framework\web\CController.php(287): GalleryController->runAction()
#1 D:\WebServer\Apache2.2\htdocs\yii\framework\web\CController.php(266): GalleryController->runActionWithFilters()
#2 D:\WebServer\Apache2.2\htdocs\yii\framework\web\CWebApplication.php(283): GalleryController->run()
#3 D:\WebServer\Apache2.2\htdocs\yii\framework\web\CWebApplication.php(142): CWebApplication->runController()
#4 D:\WebServer\Apache2.2\htdocs\yii\framework\base\CApplication.php(162): CWebApplication->processRequest()
#5 D:\WebServer\Apache2.2\htdocs\testapp\index.php(13): CWebApplication->run()
REQUEST_URI=/testapp/admin/gallery/changeData
in D:\WebServer\Apache2.2\htdocs\testapp\protected\extensions\galleryManager\GalleryController.php (104)
in D:\WebServer\Apache2.2\htdocs\testapp\index.php (13


I have tested something.I added photo direct to server by mysql.
Attached File  1.png (120.68K)
Number of downloads: 98

I tested editing and deleting.It's work.Except Adding new image It's not work.
Attached File  2.png (125.13K)
Number of downloads: 108

:)

Attached File(s)


0

#17 User is offline   Bogdan Savluk 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 20-April 10
  • Location:Kiev

Posted 22 October 2012 - 03:09 AM

View Postkrai500, on 22 October 2012 - 12:30 AM, said:

This is some error that I can show. Attachment 22-10-2555 12-07-08.png Attachment 22-10-2555 12-13-03.png
This is "application.log" file.


I have tested something.I added photo direct to server by mysql.
Attachment 1.png

I tested editing and deleting.It's work.Except Adding new image It's not work.
Attachment 2.png

:)

Ok. Application log is good.
Two errors in application log was because error when uploading photos to server.
About network tab - can you show responce body after upload error?
0

#18 User is offline   krai500 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 18-March 12

Posted 22 October 2012 - 05:21 AM

View PostBogdan Savluk, on 22 October 2012 - 03:09 AM, said:

Ok. Application log is good.
Two errors in application log was because error when uploading photos to server.
About network tab - can you show responce body after upload error?


Header:
Attached File  5.png (77.61K)
Number of downloads: 65
Preview:
Attached File  6.png (87.86K)
Number of downloads: 64
Response:
Attached File  response_tab.txt (21.6K)
Number of downloads: 15
If you want other Information.You can tell me more. :)
0

#19 User is offline   Bogdan Savluk 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 20-April 10
  • Location:Kiev

Posted 22 October 2012 - 06:28 PM

Bug was fixed, correspounding changeset.
The problem was beause of mistake in database schema, that caused crashes on some mysql configurations.

Thaks for reporting :)
0

#20 User is offline   Irawana 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 08-November 12

Posted 08 November 2012 - 01:43 AM

Hi,

I followed all the instructions as http://www.yiiframew...gallerymanager/

but I'm getting the below error,
Unable to resolve the request "<controller>/imgManager".

imgManager is the module name

I'm new to yii, Please help me

thanks
0

Share this topic:


  • (7 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users