Topic: [Module] Easy Peasy Gallery 2  (Read 54252 times)

Pages: [1] 2 3 ... 6   Go Down

#1: 19-Dec-2005, 10:26 PM

Emeritus
xwisdom
Posts: 1,732

Hello Everyone,

Here's the modxified verion of Easy Peasy Gallery 2 by Nick_NP from Etomite.
I've managed to update this module to support the lastest fixes etc.


Quick Installation and Setup quide:
-------------------------------------

1) Download and extract the photogallery.zip file.
2) FTP or copy the files into the root of your website
3) Run the install/index.php file to install the module
4) Follow the on screen instructions.

After install run the PhotoGallery Admin panel and click on the Install/Clear Galleries button.

Usage:
Calls to the gallery snippet are made using the gallery's ID (as displayed on the admin panel).

example:

[[PhotoGallery?galleryid=`4`]]

Where 4 is the id of your photo gallery.

For more information please see the help section accessible via the admin panel.


How to uninstall the module
---------------------------------------

1) Run the Admin Panel
2) Click the "Uninstall galleries" button to remove agllery tables
3) Delete the module, snippet and files (assets/modules/epg2) associated with the photo gallery

* epg2.zip (64.46 KB - downloaded 2189 times.)
xWisdom
www.xwisdomhtml.com
The fear of the Lord is the beginning of wisdom:
MODx Co-Founder - Create and do more with less.

#2: 20-Dec-2005, 03:01 AM

zatoichi
Posts: 30

Quote
Unable to load dynamic library './gd2.so' - ./gd2.so: cannot open shared object file: No such file or directory

What did I do wrong?

I am still learning how modules work etc, (Still learning how the TV's work for that matter.)
"Adversus solem ne loquitor." -don't speak against the sun (don't waste your time arguing the obvious) Something I sometimes need to be reminded of.

#3: 20-Dec-2005, 03:17 AM

Coding Team

sottwell
Posts: 10,529

WWW
Looks like your Apache server's php module was compiled without the GD library support.  Check the phpinfo() view in Administration->View system info.  You should see something like this '--with-gd' in the Configure command section (near the top) as well as a "gd" section further down in the (alphabetical) list of  available modules.

I see that the module attempts to dynamically load the GD library if it's not available; here's some interesting info on the dl() function:

http://il2.php.net/dl
« Last Edit: 20-Dec-2005, 03:40 AM by sottwell »
sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html

#4: 20-Dec-2005, 03:34 AM

Coding Team

sottwell
Posts: 10,529

WWW
Heh!  The leading comment in the setup.info file is still

Quote
#:: SMF Connector Setup file
sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html

#5: 20-Dec-2005, 03:17 PM

zatoichi
Posts: 30

Looks like your Apache server's php module was compiled without the GD library support.  Check the phpinfo() view in Administration->View system info.  You should see something like this '--with-gd' in the Configure command section (near the top) as well as a "gd" section further down in the (alphabetical) list of  available modules.

I see that the module attempts to dynamically load the GD library if it's not available; here's some interesting info on the dl() function:

http://il2.php.net/dl

No, phpinfo tells me gd is installed. '--with-gd'
GD version = bundled (2.0.28 compatible)
Should there be a mod_gd listing as well?

My first basic assumption is always that I don't know enough about how it's supposed to work. So I'm not sure if I'm missing something about how the module system... for instance I was looking for the admin panel and finally figured out that the box to the left of the module popped up a menu. I chose ->run module. That's when I get the error.

For instance, the quickedit module runs a help page. Am I assuming correctly that this is where and how to run the admin panel?

The other thing I thought was maybe I'm missing a file.
« Last Edit: 20-Dec-2005, 03:27 PM by zatoichi »
"Adversus solem ne loquitor." -don't speak against the sun (don't waste your time arguing the obvious) Something I sometimes need to be reminded of.

#6: 20-Dec-2005, 04:06 PM

Coding Team

sottwell
Posts: 10,529

WWW
No, looks like your gd is fine.  Hopefully the module's developers will have more to say.  I only ran the earlier version for a while, so really can't say much more.
sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html

#7: 20-Dec-2005, 04:10 PM

Administrator

zi
MODx Special Forces /
Posts: 3,555

May Peace Be On You

WWW
I get this in EventLog viewer:
Code:
Not supported in multithreaded Web servers - use extension=php_gd2.dll in your php.ini

I have XAMPP install in windows, and GD2 is enabled and working in other tests.

regards,

zi

#8: 20-Dec-2005, 09:05 PM

Emeritus
xwisdom
Posts: 1,732

Hmmm,

Try commenting out lines 68-75 inside the module code. The module is trying to load the GD lib but it seems to be failing on different install.

Code:
// attempt to load GD2 library
if (!extension_loaded('gd2')) {
   if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) {
if(!@dl('php_gd2.dll')) return 0;
   } else {
if(!@dl('gd2.so')) return 0;
   }
}
xWisdom
www.xwisdomhtml.com
The fear of the Lord is the beginning of wisdom:
MODx Co-Founder - Create and do more with less.

#9: 20-Dec-2005, 11:00 PM

zatoichi
Posts: 30

Yes. It works like a charm now. I even created a test gallery to make sure. Although the wanring that I didn't have gallery tables did throw me for a second.
"Adversus solem ne loquitor." -don't speak against the sun (don't waste your time arguing the obvious) Something I sometimes need to be reminded of.

#10: 20-Dec-2005, 11:12 PM

zatoichi
Posts: 30

Um, well I have a gallery but clicking on the thumbnails doesn't take me anywhere. I see the status bar making alot of noise but it's too fast for me to read. No actually, I think it just reloads the same page.

I think I need to delve in a little and read to see if there is a setting I neglected.
"Adversus solem ne loquitor." -don't speak against the sun (don't waste your time arguing the obvious) Something I sometimes need to be reminded of.

#11: 21-Dec-2005, 01:26 AM

Emeritus
xwisdom
Posts: 1,732

Is the page cached?

try using [!PhotoGallery!]
xWisdom
www.xwisdomhtml.com
The fear of the Lord is the beginning of wisdom:
MODx Co-Founder - Create and do more with less.

#12: 22-Dec-2005, 03:30 AM

zatoichi
Posts: 30

Is the page cached?

try using [!PhotoGallery!]

DOH!

I'm having a Homer Simpson moment.

Works great now.

I need to play with this. I just printed out the module script to read in bed... 29 pages!
"Adversus solem ne loquitor." -don't speak against the sun (don't waste your time arguing the obvious) Something I sometimes need to be reminded of.

#13: 26-Dec-2005, 09:28 AM

Tsabrack
Posts: 1

Hmmm,

Try commenting out lines 68-75 inside the module code. The module is trying to load the GD lib but it seems to be failing on different install.

Code:
// attempt to load GD2 library
if (!extension_loaded('gd2')) {
   if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) {
if(!@dl('php_gd2.dll')) return 0;
   } else {
if(!@dl('gd2.so')) return 0;
   }
}


Heya, I had the same problem with xammp. The solution is pretty simple. If you have a look had Phpinfo there's no GD2, but there's a GD bundled (2.0.28 compatible). So this line:
if (!extension_loaded('gd2')) {


To

if (!extension_loaded('gd')) {


It worked perfectly for me.

Tsa

#14: 27-Dec-2005, 03:46 PM

Briggsy
Posts: 372

WWW

3) Run the install/index.php file to install the module
4) Follow the on screen instructions.

After install run the PhotoGallery Admin panel and click on the Install/Clear Galleries button.


A simple question, how do you run the admin module?

After step 3, I was given the option to close the installer and delete the install directory. The manager then loaded, but gave an error saying that the install directory hadn't been deleted, so I did that manually. However, I get no "on screen instructions"

If I try to run the module form within the manager I get an error saying"

Photo Gallery - Module runtime error:
An error occurred while loading the module. Please see the event log.

The log file shows

Code:
Event Id:  Source:  Photo Gallery - Module
 
Date: 28-Dec-2005 10:41 AM User: admin
 

Dynamically loaded extentions aren't enabled
Emergency Management Academy of New Zealand
      http://www.emanz.ac.nz

MODx Sandbox   Login: sandbox  Password: castle

Admin Sandbox   Login: sandbox  Password: castle

#15: 28-Dec-2005, 03:18 AM

Administrator

zi
MODx Special Forces /
Posts: 3,555

May Peace Be On You

WWW
You need to comment the following lines to run it: (because some server config does not have dynamic loading enabled, including XAMPP on Windows)
Code:
// attempt to load GD2 library
if (!extension_loaded('gd2')) {
   if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) {
if(!@dl('php_gd2.dll')) return 0;
   } else {
if(!@dl('gd2.so')) return 0;
   }
}

OR

try changing:

Code:
if (!extension_loaded('gd2'))

to

Code:
if (!extension_loaded('gd'))

After adopting one method from the 2 above, it should work.

regards,

zi

#16: 28-Dec-2005, 04:09 AM

Briggsy
Posts: 372

WWW
Yup the 2nd option worked fine.

FYI: The hosting provider is running Apache on Linux and according to PHP info() it has GD 2.0.28, and Dynamic Library Support is enabled. Acording to perl it has the GD module installed.

It works so I'm happy now Smiley  Thanks
Emergency Management Academy of New Zealand
      http://www.emanz.ac.nz

MODx Sandbox   Login: sandbox  Password: castle

Admin Sandbox   Login: sandbox  Password: castle

#17: 28-Dec-2005, 10:59 AM

Testers

banzai
Posts: 880

MODx Italia

WWW
EPG Module works fine for me - good work !
MODx Websites Showcase 
Add your site to www.modx.it!
-----------------------------------------------------
FREE MODx Templates
www.tattoocms.it
-----------------------------------------------------
VIDEO: whats new in MODx 0.9.5   | VIDEO: MODx PHP Application Framework  |  modx Revolution  

bubuna.com - Web & Multimedia Design

#18: 28-Dec-2005, 11:01 AM

Testers

banzai
Posts: 880

MODx Italia

WWW
A little EPG Admin Css Style mod to looks more similiar ti MODx admin Wink

* EPGMODxstyle.zip (1.17 KB - downloaded 546 times.)

* epgstyle.jpg (20.89 KB, 350x254 - viewed 736 times.)
MODx Websites Showcase 
Add your site to www.modx.it!
-----------------------------------------------------
FREE MODx Templates
www.tattoocms.it
-----------------------------------------------------
VIDEO: whats new in MODx 0.9.5   | VIDEO: MODx PHP Application Framework  |  modx Revolution  

bubuna.com - Web & Multimedia Design

#19: 28-Dec-2005, 12:26 PM

Administrator

zi
MODx Special Forces /
Posts: 3,555

May Peace Be On You

WWW
A little EPG Admin Css Style mod to looks more similiar ti MODx admin Wink

THANKS banzai ! Thank you very much Smiley

regards,

zi

#20: 28-Dec-2005, 02:09 PM

Briggsy
Posts: 372

WWW
A little EPG Admin Css Style mod to looks more similiar ti MODx admin Wink

Cheers Banzai, looks good. Only thing is the ZIP file reports its broken and I can't extract the CSS file. Any chance you can upload it again or PM the CSS file (not ZIP)?

Thanks.
Emergency Management Academy of New Zealand
      http://www.emanz.ac.nz

MODx Sandbox   Login: sandbox  Password: castle

Admin Sandbox   Login: sandbox  Password: castle
Pages: [1] 2 3 ... 6   Go Up
0 Members and 1 Guest are viewing this topic.