We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Easy Gallery Module: (BETA)

Development and Programming

wiL.Laxa's avatar
wiL.Laxa
69 posts
about 18 years ago
wiL.Laxa's avatar wiL.Laxa
@wiL Can you provide a URL for demo?

Its hard to provide a demo as the functionality is located on the Admin side. I should be able to have a beta out by the end of this week.

The beta will be very clunky and might be a bit difficult to install. I’ll be using the next few days to clean it up so it will be easier to install. Best way for this module to become successful is to make it as easy to use as possible out of the box.

So far 4 people interested 😊 YEY! 😊

       
wiL.Laxa's avatar
wiL.Laxa
69 posts
about 18 years ago
wiL.Laxa's avatar wiL.Laxa

It will be exciting to see the feedback from the beta. 😊

Pagination is something I hate to do… dunno why. It took more time than it should. Anyways I’ve attached screenshots of the code and the render. It’s almost there. :D

Just posting the EE Tags for Easy_gallery. I hope I don’t miss anything.


TAG: Easy Gallery: {exp:easy_gallery} {paginate} {/paginate} {/exp:easy_gallery}

Parameters: entry_id=”{entry_id}” - required paginate=”Yes|No” - default is “No” page=”{page_number}” - default is “1” limit=”30” - default is all path=”index/comments” cover = “Yes|No” - default is “No”

Single Variables: {filename} {keywords} {caption} {date_stamp} {date_modified} {url_image_small} {url_image_medium} {url_image_large}


TAG Easy Gallery Paginate: {paginate} {/paginate}

Single Variables: {if page_next}{page_next}{/if} {if page_previous}{page_previous}{/if} {page_current} {page_total}

       
wiL.Laxa's avatar
wiL.Laxa
69 posts
about 18 years ago
wiL.Laxa's avatar wiL.Laxa
WOW superb, very nice thing Couple of questions: 1. path=”index/comments” (what is the functions of this) 2. cover = “Yes|No” (if i set yes, how can i parse the cover, wich tag should i use (cover_url?} ) Man you are pretty far looking forward for that beta !!
  1. Still trying to figure if ‘path’ is still needed, I know its standard in weblog and comment so I’ll try to keep it the same.
  2. If cover = “Yes” then it will only generate one image entry, which ever one is tagged the cover. You use all the same variables as the Non-Cover one.

There’s only one Tag <exp:easy_gallery:images> that is used for everything.

Currently working on: - Settings page - Scaling Thumbnail (Proportional or by Cropping) - Polishing the Control Panel Interface - HTML Version of the file upload

Yep, its almost there. 😊

       
rick.prince's avatar
rick.prince
111 posts
17 years ago
rick.prince's avatar rick.prince

Sign me up for the beta - this is EXACTLY what I’ve been searching for. Any idea how long until I can get my dirty mits on it?

       
wiL.Laxa's avatar
wiL.Laxa
69 posts
17 years ago
wiL.Laxa's avatar wiL.Laxa
Sign me up for the beta - this is EXACTLY what I’ve been searching for. Any idea how long until I can get my dirty mits on it?

Hopefully in 2 days for Beta, I think I’m packing way too much features on to an app that’s supposed to be simple 😛

       
rick.prince's avatar
rick.prince
111 posts
17 years ago
rick.prince's avatar rick.prince

Fantastic. I agree you’ve got quite a few features in there, let’s hope they all work flawlessly 😊

       
wiL.Laxa's avatar
wiL.Laxa
69 posts
17 years ago
wiL.Laxa's avatar wiL.Laxa
Fantastic. I agree you’ve got quite a few features in there, let’s hope they all work flawlessly 😊

Eventually the features will work but the first beta I predict will have tons of bugs. :(

       
wiL.Laxa's avatar
wiL.Laxa
69 posts
17 years ago
wiL.Laxa's avatar wiL.Laxa
Yes we know it will have bugs..that is why it is a Beta 😛 and we will test and fix and test and fix… love it Bring it on !!

I’m so rushing it right now!!! I’m so excited!

I’m stuck at Image Resizing (Scale by cropping and proportion).

Stuck on the cropping part right now. Argh.

       
wiL.Laxa's avatar
wiL.Laxa
69 posts
17 years ago
wiL.Laxa's avatar wiL.Laxa

BETA IS FINALLY READY!!! - BETA IS FINALLY READY!!!

Well it has been a couple of LONG days and sleepless nights (LOL I haven’t slept) I finally finished a presentable version of this Easy Gallery Script. I’ve installed it 3 times on 2 servers and tried to iron out as much bugs as possible.

THIS IS A BETA

Please use this on a test server and really learn how it works. It uses unlink() and works on a server where SAFE MODE is OFF so please beware of any sensitive files that it my delete.

Otherwise I tried to make sure that most of the critical bugs are killed and should work without much problems. The most common problem I encountered was the Flash Upload script located at “jquery/upload.php” and its config file “jquery/config.inc.php” Make sure that the configuration file is configured properly and you use the “upload_test.html” to test the upload script for any errors.

WEBSITE

You can check all the information and finally download the Easy Gallery v.1 at my website: http://laxa.ca/ee_easy_gallery.html

Please send comments, feedback and bug reports on this thread so that other users can find information regarding Easy Gallery that might also be useful for them.

*Don’t forget to read the README.TXT for installation instructions.

THANK YOU:

Please make a donation if you find this useful at http://www.laxa.ca/ee_home.html and click on the “Make Donation” link on the very bottom. I will make sure that this script will be fully featured, useful and easy to use but ofcourse that takes time and some motivation. :D

Thanks for the patience all the feedback. wiL.Laxa (Laxa Inc.) http://www.laxa.ca/ee_home.html

       
rick.prince's avatar
rick.prince
111 posts
17 years ago
rick.prince's avatar rick.prince

Congrats!

       
wiL.Laxa's avatar
wiL.Laxa
69 posts
17 years ago
wiL.Laxa's avatar wiL.Laxa

1) You can add the “$entry_id = $IN->GBL(‘entry_id’);” to line 330

ADD LINE

# Enable $entry_id (not sure if this is a bug but $entry_id hook is always empty)
$entry_id = $IN->GBL('entry_id');

AFTER

/** ----------------------------------------------
/**  Security check
/** ---------------------------------------------*/
       
if ( ! in_array($weblog_id, $assigned_weblogs))
{
     return $DSP->no_access_message($LANG->line('unauthorized_for_this_blog'));
 }

2) Clashing TABS: This is the only thing I can’t figure out at the moment. I have to do some research why the “publish_form_new_tabs” hook only creates one tab and clashes with other Extensions that use that same hook. hmmm

*At the moment Enabling Easy Gallery will clash with other TABS.

       
wiL.Laxa's avatar
wiL.Laxa
69 posts
17 years ago
wiL.Laxa's avatar wiL.Laxa

hmmmmm… I can’t find a reason why inserting this code “$entry_id = $IN->GBL(‘entry_id’);” into cp.publish.php would generate a warning.

I’m using EE v1.6 and I just tested it with a new installation and added that code on that 330 line and its working fine.

I’m thinking that I have PHP error_reporting set to not show notice that’s why its not generating errors for me. The warning doesn’t say any particular line in cp.publish.php.

Are you sure that “$entry_id = $IN->GBL(‘entry_id’);” is the only line that you have added?

       
wiL.Laxa's avatar
wiL.Laxa
69 posts
17 years ago
wiL.Laxa's avatar wiL.Laxa
hmmmmm… I can’t find a reason why inserting this code “$entry_id = $IN->GBL(‘entry_id’);” into cp.publish.php would generate a warning. I’m using EE v1.6 and I just tested it with a new installation and added that code on that 330 line and its working fine. I’m thinking that I have PHP error_reporting set to not show notice that’s why its not generating errors for me. The warning doesn’t say any particular line in cp.publish.php. Are you sure that “$entry_id = $IN->GBL(‘entry_id’);” is the only line that you have added?
yes only thing i added see attachment

This is my version which seems to be 12KB smaller than yours. I’m going to try to find the difference with your file. You file version is also generating a warning with or without the “$entry_id = $IN->GBL(‘entry_id’);” modification. hmmmmm

Did a DIFF on it and there’s barely and difference except line returns. I’m going to download the new version and try testing it with it.

       
wiL.Laxa's avatar
wiL.Laxa
69 posts
17 years ago
wiL.Laxa's avatar wiL.Laxa
ok another one: when i go to publish >> gallery and i hit the flash upload and select any particular image file and it begins uploading: when it gets to creating thumbnails: i get a error 406 see pictures First: the error Second: test of the upload.html Third: resutls of upload.html in ftp (btw don’t see it make a medium width image)

Error Code: HTTP Error, Message: 406

This is related to the modsecurity bug:

If you are using Apache with mod_security this will not work, you need to put the following in your .htaccess file to disable mod_security:

SecFilterEngine Off
SecFilterScanPOST Off
       
wiL.Laxa's avatar
wiL.Laxa
69 posts
17 years ago
wiL.Laxa's avatar wiL.Laxa
This is my version which seems to be 12KB smaller than yours. I’m going to try to find the difference with your file. You file version is also generating a warning with or without the “$entry_id = $IN->GBL(‘entry_id’);” modification. hmmmmm
hmmm let me take the original cp.publish.php from the expressionengine zip file and add the code: NOTE i am using the latest build: 20070726

I’m using build: Build: 20070708, I gotta check what’s new with your version.

       
1 2 3 4 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.