ElkArte Community

Extending Elk => Addons => Topic started by: vbgamer45 on January 24, 2017, 03:54:07 pm

Title: ezGallery 6.0
Post by: vbgamer45 on January 24, 2017, 03:54:07 pm
ezGallery Lite
For ElkArte 1.1.x

A basic photo gallery system for ElkArte.
Features:
Categories
Comment System
Picture Approval
Reporting of Picture.
Permissions for adding/editing/approving/deleting and more
And much more...

Demo: http://www.elkartemods.com/index.php?action=gallery

Screenshots:
(Link-4425) (Link-4427) (Link-4429)
Title: Re: ezGallery 5.6
Post by: radu81 on January 24, 2017, 05:02:39 pm
thank you for this addon, but images are not responsive in your demo
Title: Re: ezGallery 5.6
Post by: vbgamer45 on January 24, 2017, 05:15:35 pm
Yeah they won't be those are full size images. This version of the gallery does not support automatic resizing.
Title: Re: ezGallery 5.6
Post by: Adrek on January 24, 2017, 06:56:01 pm
Nice to see new addons for Elkarte :)

@radu81 there's really easy way to resize images with css ;)
Title: Re: ezGallery 5.6
Post by: vbgamer45 on January 24, 2017, 06:57:22 pm
Checking which addons to port next. Based on demand.
Title: Re: ezGallery 5.6
Post by: live627 on January 24, 2017, 09:18:07 pm
 Best layout ever !

#sorrynotsorry
Title: Re: ezGallery 5.6
Post by: HerrUU on February 13, 2017, 11:05:23 am
Hi,

After install, I keep getting this message when I try to add a picture :

QuoteFatal error: Call to undefined function AddPicture() in /customers/a/3/b/vlaamshobbybrouwforum.be/httpd.www/forum/sources/controllers/gallery.controller.php on line 921
Can you help me?
Title: Re: ezGallery 5.6
Post by: vbgamer45 on February 13, 2017, 11:07:15 am
Are you on ElkArte 1.0.x?
Title: Re: ezGallery 5.6
Post by: HerrUU on February 14, 2017, 04:49:41 am
Yes, 1.0.9.
Title: Re: ezGallery 5.6
Post by: vbgamer45 on February 14, 2017, 08:55:37 am
What is the steps you are doing to cause that error? Such as what is path that you are clicking in the addon.
Title: Re: ezGallery 5.6
Post by: HerrUU on February 15, 2017, 06:35:50 am
Don't know what I did but it works now. :) I'll check again tonight on my other pc. 
Title: Re: ezGallery 5.6
Post by: vbgamer45 on February 15, 2017, 08:51:27 am
Ok let me know if you encounter it again and what steps you did to get it
Title: Re: ezGallery 5.6
Post by: razz on April 04, 2017, 10:45:12 am
-wanders over here, embarrassed because I posted in the wrong area-

Hey there. Love everything about this mini-gallery, and cant wait to be able to use it. I have ElkArte 1.0.9 and installed the EzGallery just a couple of weeks ago. I've reached my wit's end because I cannot seem to figure this out on my own. New to Elk, from using SMF and Phpbb for too long.

EzGallery installs fine, and the Gallery link shows in the Main Board. The configuration button shows up in the Admin area. Although whenever I try to upload an image, or try to custom the Settings for the Gallery it goes wrong. I just get a white window telling me 'it stopped working'.

I really hope you can help. I'd love to be able to incorporate this into our Forum.
Title: Re: ezGallery 5.6
Post by: vbgamer45 on April 04, 2017, 10:47:30 am
How big is the image? And any errors in your forums error log after you try to upload?
Title: Re: ezGallery 5.6
Post by: razz on April 04, 2017, 09:25:27 pm
Images are ..
- .png/.jpg/.gif
Sizes can range from
- 800kb-1.5mb's.

When trying to adjust the settings I get:
8: Undefined property: ezGalleryAdmin_Controller::$Array

Clicking the upload button just results in the error page. Same to trying to get to the settings and the rest.
Title: Re: ezGallery 5.6
Post by: vbgamer45 on April 04, 2017, 09:38:34 pm
Can you attach a sample image that fails want to do some quick tests.

And take screenshots of the error/full error message on upload
Title: Re: ezGallery 5.6
Post by: razz on April 08, 2017, 02:56:13 pm
Any image I try to upload, it just kicks me to the screen that says the website isnt working.

Alright. This is the last one I tried, and a screenshot of the error's.
Title: Re: ezGallery 5.6
Post by: vbgamer45 on April 08, 2017, 08:12:30 pm
I was able to upload that picture on my gallery http://www.elkartemods.com/index.php?action=gallery;sa=view;pic=6

What PHP version are you running?
Title: Re: ezGallery 5.6
Post by: vbgamer45 on April 27, 2017, 11:29:24 am
razz where you able to get it solved???

Also a must update for critical issue
5.6.1
!Bug fix/cleanup regression fix.
Title: Re: ezGallery 5.6
Post by: razz on April 29, 2017, 03:10:28 pm
PHP version is 7.0
I havent figured out the problem yet. Apologies on the tardiness of my reply, my 'real time' has been extremely busy.

Update? Perhaps I should do that, and see what happens? Thank you so much for taking the time to try and help me with this. =)

Note: Checked into the Version of my copy of this mod and its
-ezGallery Lite   5.6
Title: Re: ezGallery 5.6
Post by: vbgamer45 on May 25, 2017, 12:48:06 pm
Quote from: razz – PHP version is 7.0
I havent figured out the problem yet. Apologies on the tardiness of my reply, my 'real time' has been extremely busy.

Update? Perhaps I should do that, and see what happens? Thank you so much for taking the time to try and help me with this. =)

Note: Checked into the Version of my copy of this mod and its
-ezGallery Lite   5.6
Razz I figured it out was a PHP 7 issue. I finally was able to upgrade all my servers t PHP 7.1 and have fixed the issue in the latest release!

5.6.2
!Fixed issue with PHP 7 not like the action index casted to string to fix.

Title: Re: ezGallery 5.6
Post by: vbgamer45 on October 26, 2017, 12:00:57 am
Updated for Elkarte 1.1.x
Title: Re: ezGallery 5.6
Post by: Mattmax on August 22, 2018, 05:31:47 am
@vbgamer45 I tried to install this plugin, but for me it didn't work. I'm on elkarte 1.1.5, so the installation works and there is a button "Gallery".  But when you click on it you get an empty screen without a gallery.....
Title: Re: ezGallery 5.6
Post by: tino on August 22, 2018, 07:36:23 am
You need to modify one of the files to start with a capital can’t recall which one mind! Think it might be Gallery.controller.php
Title: Re: ezGallery 5.6
Post by: vbgamer45 on August 22, 2018, 08:52:21 am
Quote from: tino – You need to modify one of the files to start with a capital can’t recall which one mind! Think it might be Gallery.controller.php
Can you explain did I name a file wrong?

Mattmax anything in your forums error log?
Title: Re: ezGallery 5.6
Post by: Mattmax on August 22, 2018, 11:15:40 am
Quote from: vbgamer45 –
Quote from: tino – You need to modify one of the files to start with a capital can’t recall which one mind! Think it might be Gallery.controller.php
Can you explain did I name a file wrong?

Mattmax anything in your forums error log?
I stalled it again and get this screen:
(http://fs5.directupload.net/images/180822/mrgwv4gb.jpg) (http://www.directupload.net)
and in the error.log there are the last entries:
Quote[22/Aug/2018:17:08:38 +0200] "GET /index.php?PHPSESSID=97md77k79ek3gq9l3o4oo3rtb0;wwwRedirect HTTP/1.1" 200 10459
[22/Aug/2018:17:08:46 +0200] "GET /index.php?action=mentions;sa=fetch;api=json;lastsent=0 HTTP/1.1" 200 617
Title: Re: ezGallery 5.6
Post by: tino on August 22, 2018, 03:38:42 pm
Quote from: vbgamer45 –
Quote from: tino – You need to modify one of the files to start with a capital can’t recall which one mind! Think it might be Gallery.controller.php
Can you explain did I name a file wrong?

Mattmax anything in your forums error log?

It needed to be a capital at the start of the file name was all I recall. It all worked for me then. I don't have it installed anymore so can't help any more than that.

It's one of the checks only looks for the ucfirst file name and that fails, it never loads the controller. Pretty sure its the controller file.
Title: Re: ezGallery 5.6
Post by: vbgamer45 on August 22, 2018, 03:57:55 pm
Mattmax can you try this version and see if it helps?

Title: Re: ezGallery 5.6
Post by: Mattmax on August 22, 2018, 04:10:14 pm
Quote from: vbgamer45 – Mattmax can you try this version and see if it helps?



With that version I get an error during the installation.
Quote8.    Entpacken Datei    ./sources/controllers/gallery.controller.php    Änderungs-Ausführungsfehler
QuoteUnzip file ./sources/controllers/gallery.controller.php Change execution error

So, I didn't do the installation.
With the other version from this side, I cann't add an category.

edit: I delete the installation-files through elkarte. After that I tried to install the "old" version (5.6.2) from this thread and now it's working?!? I'm a little bit confused!
Title: Re: ezGallery 5.6
Post by: vbgamer45 on August 22, 2018, 04:45:32 pm
Very odd. What PHP version are you using?
Title: Re: ezGallery 5.6
Post by: tino on August 22, 2018, 05:41:48 pm
Did you install the recent version from here? As it might not of removed the new file so you have that still there.

Listing the files in your sources/controller directory would show that.
Title: Re: ezGallery 5.6
Post by: Mattmax on August 22, 2018, 06:31:33 pm
I didn't install the last version posted today. I went back and delete al the file through elkarte. So, I think the "new" version wasn't there after I upload the version from this thread.
And what do you mean with the list of the files?
Title: Re: ezGallery 5.6
Post by: vbgamer45 on August 22, 2018, 08:49:56 pm
Hmm had one more change

If anyone has a linux forum please test. Issue was case sensitive filenames i believe.
Title: Re: ezGallery 5.6
Post by: Mattmax on August 27, 2018, 04:34:00 am
hello, I installed everthing new and no it's working with the version 5.6.2,  that you posted days ago.
Title: Re: ezGallery 5.6
Post by: vbgamer45 on August 27, 2018, 06:59:23 am
Great awesome!
Title: Re: ezGallery 5.6
Post by: McFly on January 10, 2019, 05:40:30 am
Little workaround for me...

Download last posted zip file. Renaming "Gallery.controller.php" to "gallery.controller.php" in that file. Upload and installation works now, but adding categories not. Renaming the "gallery.controller.php" on the server back to "Gallery.controller.php"! Now it works.
Title: Re: ezGallery 5.6
Post by: vbgamer45 on January 10, 2019, 08:38:11 am
Hmmm have to see what went wrong.
Title: Re: ezGallery 5.6
Post by: vbgamer45 on January 10, 2019, 09:45:54 am
I see try to grab the latest one from the Elkarte site or my website. Attached the latest one here
Title: Re: ezGallery 5.6
Post by: Mattmax on January 12, 2019, 08:59:32 am
is it still the same version, than in Reply #32
Title: Re: ezGallery 5.6
Post by: vbgamer45 on January 12, 2019, 09:07:07 am
Same version but I think fix added
Title: Re: ezGallery 6.0
Post by: vbgamer45 on January 19, 2021, 08:23:40 pm
Update:
Fixed the gallery  bug with gallery action on linux servers going to the main page instead of gallery. Been bugging me for a while. It was strange it worked on windows server.
Title: Re: ezGallery 6.0
Post by: tino on January 19, 2021, 08:45:58 pm
Quote from: vbgamer45 – It was strange it worked on windows server.

Windows is case insensitive, Linux is case sensitive.
Title: Re: ezGallery 6.0
Post by: vbgamer45 on January 19, 2021, 09:36:53 pm
Yeah, it wasn't that though. I had
Code: [Select]
function ezgallery_integrate_actions2(&$actions)
{
$actions['gallery'] = array('Gallery_Controller','gallery.controller.php');
}
Which worked on the windows server Changed to
Code: [Select]
function ezgallery_integrate_actions2(&$actionArray, &$adminAction)
{

        $actionArray = array_merge(
            array (
                'gallery'     => array('gallery.controller.php', 'Gallery_Controller', 'action_index')
            ),
            $actionArray
        );

}

For some reason I forget why I changed the code in 1.1.x used to use for 1.0.x I forget why I changed now.
Code: [Select]
function ezgallery_integrate_actions(&$actions)
{
$actions['gallery'] = array('gallery.controller.php', 'Gallery_Controller', 'action_index');
}
Title: Re: ezGallery 6.0
Post by: tino on January 19, 2021, 11:31:47 pm
Looking at the SiteDispatcher and Autoloader classes I think it is that. The new way you’ve done it causes an include in the SiteDispatcher, the old way relied on the Autoloader which would of failed on Linux as it looked for Gallery.controller.php
Title: Re: ezGallery 6.0
Post by: vbgamer45 on January 19, 2021, 11:42:24 pm
Makes sense. I forgot why I changed it at some point I think ran into someone saying it didn't work then changed then left it as is since it worked on windows.
Title: Re: ezGallery 6.0
Post by: Steeley on January 20, 2021, 04:41:43 am
Can someone post a screenshot or three of the gallery in operation?

(I don't have a test server set up and I'm reluctant to mess with the production server just to see if the add-on is something my users will like and use..)

FWIW, I'm running 1.1.6 on a linux platform with php 7.2
Title: Re: ezGallery 6.0
Post by: radu81 on January 20, 2021, 04:46:12 am
@Steeley‍ have a look at the first post of this topic, there are some screenshots and a link to a demo site
Title: Re: ezGallery 6.0
Post by: Steeley on January 20, 2021, 03:01:58 pm
Quote from: radu81 – @Steeley‍ have a look at the first post of this topic, there are some screenshots and a link to a demo site

Thanks radu81 - until I clicked on the test2 link, it just appeared to be screenshots of the admin interface.  :P