Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My Gallery
#1
This plugin will help you create a gallery.

Demo & Download:
http://get-simple.info/extend/plugin/my-gallery/1255/
Reply
#2
(2020-04-19, 19:21:32)denis Wrote: This plugin will help you create a gallery.

Demo & Download:
http://get-simple.info/extend/plugin/my-gallery/1255/

I can't upload images from admin. why not?
Reply
#3
(2020-04-19, 21:17:53)kazu2015 Wrote:
(2020-04-19, 19:21:32)denis Wrote: This plugin will help you create a gallery.

Demo & Download:
http://get-simple.info/extend/plugin/my-gallery/1255/

I can't upload images from admin. why not?

I don't know what you're talking about.
I have everything running on both the local server and hosting.

First, make sure that all the files .htaccess was copied.
When uploading large files сheck the values upload_max_filesize and post_max_size in php.ini.

Describe the problem in detail. With examples of errors, if any. Then perhaps I can help you.
Reply
#4
Version 1.0.1:
- the ability to insert gallery on the page using the shortcode:
Code:
[#GetMyGallery#]

- the old output method has changed: 
Code:
<?php if (function_exists('GetMyGallery')) { print GetMyGallery(); } ?>
Reply
#5
I'm also finding it inpossible to upload to the plugin. None of the 3 black buttons (iUpload, Multi-Upload or Delete) do anything. They do all show javascript:void(0); on rolover in my browser, but nothing happens when clicked. The red Images button does work (and reveals "No files in gallery").

I can make changes to the Plugin Settings and these save ok. I just cant get the Upload button to show anything.
Reply
#6
(2020-05-20, 17:52:59)davetest Wrote: I'm also finding it inpossible to upload to the plugin. None of the 3 black buttons (iUpload, Multi-Upload or Delete) do anything. They do all show javascript:void(0); on rolover in my browser, but nothing happens when clicked. The red Images button does work (and reveals "No files in gallery").

I can make changes to the Plugin Settings and these save ok. I just cant get the Upload button to show anything.


If these buttons are not pressed, it means that the JavaScript functions of the plugin are not executed. To find out why this happens, you need to look for errors in the browser console.
Perhaps you are using an ad blocker that does not work correctly. Or the plug-in conflicts with other plug-ins installed at your place (it is improbable)
If you use Chrome, press Ctrl + Shift + N and try to open the admin panel in this window.

You do not write which browser you are using, which system is installed, you do not provide print screens of the browser console. What plugins are you using yet. What are the extensions for the browser.
Without all this, I cannot understand the reason.

I tested on Chrome and Firefox browsers without any extensions with default GetSimple - there were no problems described by you.
This video shows that the plugin performs the built-in functions:
https://youtu.be/Wj_n2dMN_xY
Reply
#7
(2020-05-20, 18:57:39)denis Wrote:
(2020-05-20, 17:52:59)davetest Wrote: I'm also finding it inpossible to upload to the plugin. None of the 3 black buttons (iUpload, Multi-Upload or Delete) do anything. They do all show javascript:void(0); on rolover in my browser, but nothing happens when clicked. The red Images button does work (and reveals "No files in gallery").

I can make changes to the Plugin Settings and these save ok. I just cant get the Upload button to show anything.


If these buttons are not pressed, it means that the JavaScript functions of the plugin are not executed. To find out why this happens, you need to look for errors in the browser console.
Perhaps you are using an ad blocker that does not work correctly. Or the plug-in conflicts with other plug-ins installed at your place (it is improbable)
If you use Chrome, press Ctrl + Shift + N and try to open the admin panel in this window.

You do not write which browser you are using, which system is installed, you do not provide print screens of the browser console. What plugins are you using yet. What are the extensions for the browser.
Without all this, I cannot understand the reason.

I tested on Chrome and Firefox browsers without any extensions with default GetSimple - there were no problems described by you.
This video shows that the plugin performs the built-in functions:
https://youtu.be/Wj_n2dMN_xY
Hi Denis. Thanks for fast response. I tried all 3 black buttons in Firefox Mac and got these errors in console:


Code:
ReferenceError: openwindow is not defined
[url=http://mauldsmeaburn.com/gs3316/admin/load.php?id=my-gallery]load.php:1:1[/url]
    onclick http://mauldsmeaburn.com/gs3316/admin/load.php?id=my-gallery:1

ReferenceError: openwindow is not defined
[url=http://mauldsmeaburn.com/gs3316/admin/load.php?id=my-gallery]load.php:1:1[/url]
    onclick http://mauldsmeaburn.com/gs3316/admin/load.php?id=my-gallery:1

ReferenceError: openwindow is not defined[url=http://mauldsmeaburn.com/gs3316/admin/load.php?id=my-gallery]load.php:1:1[/url]
    onclick http://mauldsmeaburn.com/gs3316/admin/load.php?id=my-gallery:1

In Chrome (Mac) I got similar error:

Code:
Uncaught ReferenceError: openwindow is not defined
    at HTMLAnchorElement.onclick (load.php?id=my-gallery:348)
onclick @ load.php?id=my-gallery:348

and the error in Safari too :-(
Does that help you know what is not working?
I'll try on a PC later and report back
Reply
#8
(2020-05-20, 22:51:45)davetest Wrote:
(2020-05-20, 18:57:39)denis Wrote:
(2020-05-20, 17:52:59)davetest Wrote: I'm also finding it inpossible to upload to the plugin. None of the 3 black buttons (iUpload, Multi-Upload or Delete) do anything. They do all show javascript:void(0); on rolover in my browser, but nothing happens when clicked. The red Images button does work (and reveals "No files in gallery").

I can make changes to the Plugin Settings and these save ok. I just cant get the Upload button to show anything.


If these buttons are not pressed, it means that the JavaScript functions of the plugin are not executed. To find out why this happens, you need to look for errors in the browser console.
Perhaps you are using an ad blocker that does not work correctly. Or the plug-in conflicts with other plug-ins installed at your place (it is improbable)
If you use Chrome, press Ctrl + Shift + N and try to open the admin panel in this window.

You do not write which browser you are using, which system is installed, you do not provide print screens of the browser console. What plugins are you using yet. What are the extensions for the browser.
Without all this, I cannot understand the reason.

I tested on Chrome and Firefox browsers without any extensions with default GetSimple - there were no problems described by you.
This video shows that the plugin performs the built-in functions:
https://youtu.be/Wj_n2dMN_xY
Hi Denis. Thanks for fast response. I tried all 3 black buttons in Firefox Mac and got these errors in console:


Code:
ReferenceError: openwindow is not defined
[url=http://mauldsmeaburn.com/gs3316/admin/load.php?id=my-gallery]load.php:1:1[/url]
    onclick http://mauldsmeaburn.com/gs3316/admin/load.php?id=my-gallery:1

ReferenceError: openwindow is not defined
[url=http://mauldsmeaburn.com/gs3316/admin/load.php?id=my-gallery]load.php:1:1[/url]
    onclick http://mauldsmeaburn.com/gs3316/admin/load.php?id=my-gallery:1

ReferenceError: openwindow is not defined[url=http://mauldsmeaburn.com/gs3316/admin/load.php?id=my-gallery]load.php:1:1[/url]
    onclick http://mauldsmeaburn.com/gs3316/admin/load.php?id=my-gallery:1

In Chrome (Mac) I got similar error:

Code:
Uncaught ReferenceError: openwindow is not defined
    at HTMLAnchorElement.onclick (load.php?id=my-gallery:348)
onclick @ load.php?id=my-gallery:348

and the error in Safari too :-(
Does that help you know what is not working?
I'll try on a PC later and report back

"openwindow is not defined" - openwindow - this is the function that is used to work the plugin.
Based on the console content, for some reason the windows.js file that contains the required features is not loaded.

1 - Try to take the contents of the windows.js file and put it in the admin.php file after line 108
print <<< my_gallery_JS_code
<script>
...

2 - Delete line 722 in file admin.php. This line: my_gallery_JSLoad("/plugins/'.$my_gallery_thisfile.'/windows.js");

I still can not understand why this is happening. I can’t try it on Mac OS. But in my PC & Android phone veverything is working fine.
Try on the domain (site.com) and not on a subdomain (sub.site.com). But I do not think that this is the problem.
Make sure all .htaccess files have been copied.
Reply
#9
(2020-05-21, 01:13:50)denis Wrote: ...
"openwindow is not defined"
Based on the console content, for some reason the windows.js file that contains the required features is not loaded.

1 - Try to take the contents of the windows.js file and put it in the admin.php file after line 108
print <<< my_gallery_JS_code
<script>
...

2 - Delete line 722 in file admin.php. This line: my_gallery_JSLoad("/plugins/'.$my_gallery_thisfile.'/windows.js");

But I still can not understand why this is happening. Try not on a subdomain.

Thank you Denis. Copied windows.js content over to admin.php as you said and buttons worked, but popups had black background same as rest of window, but otherwise upload etc worked. However thumbnail images did not appear in plugin and frontend gallery did not appear. Then moved whole site out of subdomain into root and all worked correctly.

Similarly had some errors (can try to recall if you want) with your my_template template in subdomain, but all worked well when moved to domain root. So guess it was a subdomain problem

Your template and plugins are great, but it wold be amazing if you get time to make them work in asubdomain too :-) ...maybe making use somehow of GSs <?php get_site_url(); ?> function. That's how I fixed link behing site logo not working etc.

Anyway thanks again for great code and feedback.
Reply
#10
(2020-05-21, 02:00:21)davetest Wrote:
(2020-05-21, 01:13:50)denis Wrote: ...
"openwindow is not defined"
Based on the console content, for some reason the windows.js file that contains the required features is not loaded.

1 - Try to take the contents of the windows.js file and put it in the admin.php file after line 108
print <<< my_gallery_JS_code
<script>
...

2 - Delete line 722 in file admin.php. This line: my_gallery_JSLoad("/plugins/'.$my_gallery_thisfile.'/windows.js");

But I still can not understand why this is happening. Try not on a subdomain.

Thank you Denis. Copied windows.js content over to admin.php as you said and buttons worked, but popups had black background same as rest of window, but otherwise upload etc worked. However thumbnail images did not appear in plugin and frontend gallery did not appear. Then moved whole site out of subdomain into root and all worked correctly.

Similarly had some errors (can try to recall if you want) with your my_template template in subdomain, but all worked well when moved to domain root. So guess it was a subdomain problem

Your template and plugins are great, but it wold be amazing if you get time to make them work in asubdomain too :-) ...maybe making use somehow of GSs <?php get_site_url(); ?> function. That's how I fixed link behing site logo not working etc.

Anyway thanks again for great code and feedback.

I'm glad you liked my plugins.
My demo site on the subdomain and on the local server, I tested the subdomains. Therefore, I did not think that problems would arise.
Later I will find time to study the documentation for the GetSimple and try to fix the incorrect work on subdomains.
Reply
#11
I see that your demo seems to be on a sub domain rather than a sub directory address. So is it working because the template and plugin are seeing that sub domain as root?
Reply
#12
(2020-05-21, 03:18:14)davetest Wrote: I see that your demo seems to be on a sub domain rather than a sub directory address. So is it working because the template and plugin are seeing that sub domain as root?

Yes. Demo site on subdomain and subdirectory. Here: p9021271.beget.tech/demo23 But if you enter this address in the browser, there will be a problem with the paths (images, etc)

If the primary domain and subdomain look like this:

/www/site.com/GetSimple files
/www/sub.site.com/GetSimple files
Then there should be no problems.

If such subdomain (subdirectory):
/www/site.com/sub/GetSimple files
Then may not work

Since at the moment some paths from the root: '/'

I had to make changes to .htaccess in the root directory. 
But this applies only to my case, because I use free hosting. On my hosting, the subdomain can only be directed to the root directory. In the root directory, I do not have GetSimple installed, but another CMS.
RewriteEngine on
RewriteCond %{ENV:REDIRECT_VHOST} ^$
RewriteCond %{HTTP_HOST} ^(www\.)?(.+)\.p9021271\.beget\.tech$
RewriteRule ^(.*) %2/$1 [L,E=VHOST:1]
I create a directory in the root directory (demo23, demo24 ...) and put the sites in these directories.

Maybe need to change some path (const GSROOTPATH & var $SITEURL) I need to read the documentation.
Reply
#13
Version 1.0.2:

- fixed a problem with the plugin working in the main domain subdirectory (site.com/subdomain/GetSimple files).

Make sure everything is correct here: Settings => Website URL
Something like this: http://site.com/subdomain/
In site.com/subdomain/ must be GetSimple files
Reply
#14
Version 1.0.3:

- ability to create multiple galleries.
Reply




Users browsing this thread: 1 Guest(s)