Downloads, Web Applications
- June 29, 2009
JqGalleryAdmin : php / mysql / jquery gallery drag & drop admin
2011/12 UPDATE : EYELASH 3 IS OUT
Whoever has had the opportunity to work with silverstripeundesrtands how the drag and drop features can enhance productivity. Modules in Silverstriupe CMS are great but are wholly integrated within the full framework and cannot work without the huge memory and disk overhead that this framework comes with. I decided to develop my own independent image gallery admin module, using php / mysql / jquery technologies from the examples below.
The idea is to develop a full featured image gallery with backend features, like the one we have for eyelash gallery, product developped by me a few years ago.
This post provides version 0.1Â of JQGallery, an administration module for image gallery management. It has been tested on Firefox /Chrome and will not work with IE6. Please note that it is not secure, not to be used as such in a production environment yet.
Let me know if you find bugs. A demo is available here (upload / delete are disabled)
Installation is quite easy :
- check that your server matches the following requirements : php 5 / mysql 5
- download EYELASH 3 GALLERY ADMINISTRATOR MODULE Â Â
- unzip to a folder within htdocs
- configure mysql access in db_mysql.inc.php with database details (server / database / user / password)
- manually create the table : load the sql setup file from includes/setup.sql in your database, using phpMyAdmin
- check that the apache has read/ write privileges on the uploads folder
- and off you go
- come back to use with bug reports and enhancement requests
code samples used to develop JQGalleryAdmin :
- drag & drop code
http://www.webresourcesdepot.com/dynamic-dragn-drop-with-jquery-and-php/http://www.wil-linssen.com/extending-the-jquery-sortable-with-ajax-mysql/
- swfupload + plugin
http://blogs.bigfish.tv/adam/2009/06/14/swfupload-jquery-plugin/ - swfupload event  customization
http://blog.codeville.net/category/jquery/ - jquery prompt plugin : impromptu was tested but not used
http://trentrichardson.com/Impromptu/index.php
- instead I use alert :
http://abeautifulsite.net/notebook/87 - images and style sheet elements from bluetrip css framework




9 Responses to “JqGalleryAdmin : php / mysql / jquery gallery drag & drop admin”
October 20, 2009 - ubaldo
Great job!!!!
THX
1 question:
when I delete a image I must reload the page to see the page update.
It’s right?
October 20, 2009 - ubaldo
sorry, I have the answer.
I testing with safari 4.0.3 and don’t refresh the page.
Another little question:
when I upload a image there is a problem:
undefined variable arr_notice_messages
in jss/swfupload/upload/upload.php
how can I fix it?
thanks again
October 22, 2009 - admin
hi Ubaldo, this function is used for mysql error messages
just create the function add_notice_messages somewhere in the global . php file
thanks for the bug report
October 22, 2009 - ubaldo
sorry,
but the unction add_notice_messages exist in the global.inc. php
the error is on another variable
arr_notice_messages (aRR) and not add_notice_messages ( aDD)
just a misprint?
October 22, 2009 - admin
ok sorry please just add
$arr_notice_messages=array()
before the function
but if the function fires that probably means there’s an sql error somewhere
April 4, 2010 - daniel
Hi all, nice script !!!
I need different amount of pictures on each line.
Thanks for help !
September 16, 2010 - Daniel
Hi Ubaldo,
I searched your code and the web but did not found a way to add a field.
I’d like to have an additional field called “gallery” (it may be a $_GET value); I want each picture to belong to a specific gallery.
Any indication on the way to do it is welcome.
I will please to share my code once done.
September 19, 2010 - Daniel
Hi All,
I’m looking for a developer to upgrade jqgallery.
I need to add a gallery field in order to see only images where gallery=$_GET['gallery'] and to have this field updated.
You can contact me daniel@atarim.com
September 26, 2010 - StonKing
For ubaldo on Oct 20, 2009
Answer:
Find this file: delete.php in jss/dragdrop folder.
Open this file with text editor.
Add this line, before ?>:
include (“update.php”);
If you deleting the image, then refreshing page automatically.