3 of 14
3
Easy Gallery Module: (BETA)
Posted: 17 August 2007 08:04 AM   [ Ignore ]   [ # 37 ]  
Grad Student
Avatar
Rank
Total Posts:  97
Joined  11-17-2006
Victor G - 17 August 2007 07:58 AM

Yes we know it will have bugs..that is why it is a Beta raspberry
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.

 Signature 

Flexible & Scalable Solutions
Laxa Inc. & Expression Engine Stuff

Profile
 
 
Posted: 18 August 2007 07:58 AM   [ Ignore ]   [ # 38 ]  
Grad Student
Avatar
Rank
Total Posts:  97
Joined  11-17-2006

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

Image Attachments
eegal_images.jpg
Click thumbnail to see full-size image
 Signature 

Flexible & Scalable Solutions
Laxa Inc. & Expression Engine Stuff

Profile
 
 
Posted: 18 August 2007 08:00 AM   [ Ignore ]   [ # 39 ]  
Lab Assistant
RankRank
Total Posts:  122
Joined  07-18-2007

Congrats!

Profile
 
 
Posted: 18 August 2007 08:18 AM   [ Ignore ]   [ # 40 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  717
Joined  07-02-2007

JEEEJ finally, great let’s see how it works…


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

I think solspace (rating) module uses the same hook, maybe you could checkout how they solved it?

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 18 August 2007 08:53 AM   [ Ignore ]   [ # 41 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  717
Joined  07-02-2007

ok,

when you go to:
cp.publish.php to line 327

327        /** ----------------------------------------------
328        /**  Security check
329        /** ---------------------------------------------*/
330                
331        
if ( ! in_array($weblog_id, $assigned_weblogs))
332        {
333            
return $DSP->no_access_message($LANG->line('unauthorized_for_this_blog'));
334        }

must i put the code like this ?

/** ----------------------------------------------
        /**  Security check
        /** ---------------------------------------------*/
    
$entry_id = $IN->GBL('entry_id');

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


And seems like the extension is not adding a new tab to the publish page nor the edit page

i have the following extensions installed:

LG Better Meta (v.Beta 1.2)
Freeform Spam Prevention (v.1.0.2)
Selected Items (v.1.0.0)
Favorites Extension (v.1.0.1)
Live-search (v.1.0.5)
Add Sitename (v.1.1.1)
Intercepts the weblog query result loop and parses for rating stats.
Google/Yahoo Sitemap Ping (v.1.0)
Live Link (v.1.2)
Easy Gallery (v.1.0.0)

 

EDIT:  found the problem:
when i disable all the extensions and enable one by one,
when i enable: Google/Yahoo Sitemap Ping (v.1.0)
the gallery tab does not show up
So it seems they are clashing

seems like LG Better Meta (v.Beta 1.2) does not clash with easy_gallery…and it does add another tab to the publish tab.

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 18 August 2007 09:00 AM   [ Ignore ]   [ # 42 ]  
Grad Student
Avatar
Rank
Total Posts:  97
Joined  11-17-2006

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.

 Signature 

Flexible & Scalable Solutions
Laxa Inc. & Expression Engine Stuff

Profile
 
 
Posted: 18 August 2007 09:14 AM   [ Ignore ]   [ # 43 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  717
Joined  07-02-2007

when i go to EDIT: (next to the publish tab)
i get this php error:

Warning: Cannot modify header information - headers already sent by (output started at /home/raine/public_html/trulyhardware/system/cp/cp.publish.php:1) in /home/raine/public_html/trulyhardware/system/core/core.functions.php on line 724

and when i put back the normal cp.publish.php the php error goes away:

i have the cp.publish.php edited like this:

LINENUMBER
327                
/** ----------------------------------------------
328                /**  Security check
329                /** ---------------------------------------------*/
330                $entry_id = $IN->GBL('entry_id');        
331                if ( ! in_array($weblog_id, $assigned_weblogs))
332                {
333                    
return $DSP->no_access_message($LANG->line('unauthorized_for_this_blog'));
334                }

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 18 August 2007 09:26 AM   [ Ignore ]   [ # 44 ]  
Grad Student
Avatar
Rank
Total Posts:  97
Joined  11-17-2006

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?

 Signature 

Flexible & Scalable Solutions
Laxa Inc. & Expression Engine Stuff

Profile
 
 
Posted: 18 August 2007 09:34 AM   [ Ignore ]   [ # 45 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  717
Joined  07-02-2007
wiL.Laxa - 18 August 2007 09:26 AM

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

File Attachments
cp.publish.zip  (File Size: 73KB - Downloads: 171)
 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 18 August 2007 09:40 AM   [ Ignore ]   [ # 46 ]  
Grad Student
Avatar
Rank
Total Posts:  97
Joined  11-17-2006
Victor G - 18 August 2007 09:34 AM
wiL.Laxa - 18 August 2007 09:26 AM

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.

File Attachments
cp.publish.zip  (File Size: 73KB - Downloads: 154)
 Signature 

Flexible & Scalable Solutions
Laxa Inc. & Expression Engine Stuff

Profile
 
 
Posted: 18 August 2007 09:41 AM   [ Ignore ]   [ # 47 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  717
Joined  07-02-2007

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)

Image Attachments
1.jpg2.jpg3.jpg
Click thumbnail to see full-size image
 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 18 August 2007 09:44 AM   [ Ignore ]   [ # 48 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  717
Joined  07-02-2007

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

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 18 August 2007 09:48 AM   [ Ignore ]   [ # 49 ]  
Grad Student
Avatar
Rank
Total Posts:  97
Joined  11-17-2006
Victor G - 18 August 2007 09:41 AM

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

 Signature 

Flexible & Scalable Solutions
Laxa Inc. & Expression Engine Stuff

Profile
 
 
Posted: 18 August 2007 09:54 AM   [ Ignore ]   [ # 50 ]  
Grad Student
Avatar
Rank
Total Posts:  97
Joined  11-17-2006
Victor G - 18 August 2007 09:44 AM

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.

 Signature 

Flexible & Scalable Solutions
Laxa Inc. & Expression Engine Stuff

Profile
 
 
Posted: 18 August 2007 10:17 AM   [ Ignore ]   [ # 51 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  717
Joined  07-02-2007

ok i updated mine to:
Build:  20070815
http://expressionengine.com/forums/viewthread/58692/

still getting the same error

Original cp.publish.php
411 KB (421,606 bytes)

Edited cp.publish.php
411 KB (421,627 bytes)

Your cp.publish.php
399 KB (408,936 bytes)

Warning: Cannot modify header information - headers already sent by (output started at /home/raine/public_html/trulyhardware/system/cp/cp.publish.php:1) in /home/raine/public_html/trulyhardware/system/core/core.functions.php on line 724

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 18 August 2007 10:21 AM   [ Ignore ]   [ # 52 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  717
Joined  07-02-2007
wiL.Laxa - 18 August 2007 09:48 AM
Victor G - 18 August 2007 09:41 AM

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


that fixed the error thanks… now going to look at the template/tags

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 18 August 2007 10:24 AM   [ Ignore ]   [ # 53 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  717
Joined  07-02-2007

About the medium image:
when i use flas/html upload
it does not create the medium image.
Only when i press the “Recreate MEDIUM Images”

P.S. A suggestion: Maybe instead of “image_m.jpg” maybe little more better to make it “image_medium.jpg”

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 18 August 2007 10:26 AM   [ Ignore ]   [ # 54 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  717
Joined  07-02-2007

When i press “Update” the entry in publish

i get php error’s

Warning: Cannot modify header information - headers already sent by (output started at /home/raine/public_html/trulyhardware/system/cp/cp.publish.php:1) in /home/raine/public_html/trulyhardware/system/core/core.functions.php on line 724

Warning
: Cannot modify header information - headers already sent by (output started at /home/raine/public_html/trulyhardware/system/cp/cp.publish.php:1) in /home/raine/public_html/trulyhardware/system/core/core.functions.php on line 296

seems like it is the same as when i go to EDIT

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
   
3 of 14
3
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65026 Total Logged-in Users: 39
Total Topics: 82116 Total Anonymous Users: 18
Total Replies: 441310 Total Guests: 180
Total Posts: 523426    
Members ( View Memberlist )
Newest Members:  meenoiYang.JianuoioitsukiNathan HammondalexcigadamstaneckiLucas Mayscybermilltstitt