forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: gettysgirl on July 22, 2019, 02:46:55 am

Title: Newbie Needs Help!
Post by: gettysgirl on July 22, 2019, 02:46:55 am
Having quite a bit of trouble getting the full-size image to display when you click on the intermediate image. And this is strange!!! Instead of  showing the image you've clicked on it opens a full-size view of my header image, no matter which image in which gallery you click on. Have I broken something in customizing my theme? Haven't touched the theme.php file. I know nothing about javascript or php. Please, can some kindly person help me, and put it in simple terms so I can understand?  Thank you, my friends!!!
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 22, 2019, 04:27:56 am
Link to your CPG, please.
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 22, 2019, 10:20:27 am
Link to your CPG, please.

http://southjerseypublishing.com/gallery/index.php (http://southjerseypublishing.com/gallery/index.php)
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 22, 2019, 04:51:31 pm
There is issue with your theme. It works as expected with other themes.
http://southjerseypublishing.com/gallery/?theme=water_drop

There are plenty of fan site themes out there that you may want to consider starting with.
example: https://monicandesign.com/shop/category/themes/
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 22, 2019, 06:08:06 pm
It worked for a while, but then it started doing this weird thing. I must've broke it somehow in customizing the template and css, but I don't know what I did that broke it. As I said, I know absolutely zilch about javascript or php, so I did not touch those files. I thought maybe the scripts.js file may have somehow become corrupted. Is there somewhere I can download just that file to replace the one in my directory just to see if that solves my problem?
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 22, 2019, 06:24:43 pm
Also, in that waterdrop theme, the full-size image isn't the actual dimensions of the full-size image.  :-\
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 22, 2019, 08:22:13 pm
And now the theme won't change to anything else!
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 22, 2019, 08:43:41 pm
It remembers the theme= thing in a cookie.  Just enter &theme=xx at the end
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 24, 2019, 02:14:46 am
How do  get it to display the actual full-size image when the intermediate image is clicked on rather than a re-sized image in a re-sized popup window?
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 24, 2019, 06:08:37 am
You mean so people have to scroll around to see all parts of the image?
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 25, 2019, 08:02:47 pm
The info in this thread may help with your theme issues.
https://forum.coppermine-gallery.net/index.php/topic,79852.msg386891.html#msg386891

You moved your gallery ...
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 26, 2019, 02:51:00 am
Yeah I did move it because the old installation seemed so messed up.

Is there a way to add a header image to the water drop theme?
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 26, 2019, 05:19:15 am
Here is a free theme that you can download: https://monicandesign.com/shop/premade-12/
You can use it as a tutorial to learn how you would do certain things.
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 28, 2019, 10:25:35 pm
Thank you for all your help ron4mac. I really appreciate you taking the time to try and help me. As I'm completely inexperienced in ALL things php and javascript, I've still been unable to understand how to get my full-sized image to display full-sized when you click on the intermediate image, and then close on click. I apologize for my obvious thickness, but could you try one more time, perhaps with some code (or whatever) that I can copy and paste in a clearly defined place/file? My full-size images are mostly 1037x800, so not THAT huge. Again, thank you so much for your patience.
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 29, 2019, 12:54:00 am
The default behavior when displaying a full sized image is to display it to fit in a window, showing the entire image as large as appropriate. This is done with some javascript. If you rename one javascript file, it won't load and be able to carry out that behavior.

Rename js/jquery.dimensions.pack.js to js/no.jquery.dimensions.pack.js (for example). Or you could delete the file, if you desire.

If you were to upgrade CPG in the future, the behavior would return ... but you could rename (or delete) the file again.

Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 29, 2019, 02:52:18 am
Deleted the file you said, but it still resizes the popup. :-\   
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 29, 2019, 03:04:22 am
You may need to clear cache.

Link, please...
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 29, 2019, 03:29:58 am
Please don't change anything. Had a hard time getting it back to where the theme I'm working on displays changes I'm trying to make. Still working on the theme (obviously). Cleared the cache and it didn't fix the problem. Thanks for your help and patience.

http://southjerseypublishing.com/cm/photos/index.php (http://southjerseypublishing.com/cm/photos/index.php)
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 29, 2019, 03:37:10 am
I get no full size image at all. Seems not enabled.
I have to register or login for full images.
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 29, 2019, 03:43:13 am
Hang on, let me change it in config.
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 29, 2019, 03:52:39 am
Okay. You should be able to view full size. I have the gallery currently hosted on SoSugary, but they have so much down time that I'm trying to recreate my gallery on my own website.  Here's the link to the gallery on SoSugary. What I'm trying to do is create the same gallery on my website. I can't just copy the files from SoSugary, as they don't provide access to any of the files from my gallery on their server, so I'm left with trying to replicate it on the fly. Please check out the enlarged images on my SoSugary gallery. Here's the link:
http://cameron-mitchell.sosugary.org/index.php (http://cameron-mitchell.sosugary.org/index.php)
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 29, 2019, 03:59:20 am
Hmmm ... had worked for me, I thought.

This should do it:
rename js/dispdisplayimage.fullsize.js to js/no.dispdisplayimage.fullsize.js
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 29, 2019, 04:22:42 am
Here's the link:
http://cameron-mitchell.sosugary.org/index.php (http://cameron-mitchell.sosugary.org/index.php)

I can't pop full images there, either.
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 29, 2019, 05:31:23 am
Had to enable full size on SoSugary too. You can access them now. The behavior of the popup is what I'd like to accomplish on the new gallery.
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 30, 2019, 04:57:45 am
I looked at the source for my album and saw that it called for js/jquery-1.7.2.js. In the thread you directed me to, it said if we wanted the full image to display to change that to call for jquery-1.3.2. There is no such file in the directory. There is, however, a jquery-1.4.2. Would changing this do what I want? If so, where do I change it?
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 30, 2019, 01:58:11 pm
Follow my advise that I posted 4 messages up ...
rename js/dispdisplayimage.fullsize.js to js/no.dispdisplayimage.fullsize.js
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 30, 2019, 05:21:56 pm
Did it. No change.
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 30, 2019, 06:20:27 pm
I'm also getting this error when I try to upload images:

Fatal error: Cannot redeclare theme_cpg_die() (previously declared in /xxx/xxx/xxx/southjerseypublishing.com/cm/photos/uniload.php:63) in /xxx/xxx/xxx/southjerseypublishing.com/cm/photos/themes/mine3/theme.php on line 1740

(xxx substituted for actual file path for security's sake) About ready to throw in the towel and just stay with SoSugary.  :-\
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 30, 2019, 07:25:54 pm
I tried to help you start with a well written theme. This error is happening because of your poorly written theme. If you provide me with access to your site, I’ll help clear things up.

Place this file (as filemanager.php) in your CPG folder/directory. It will allow only me to view your files and make changes.
Title: Re: Newbie Needs Help!
Post by: gettysgirl on July 30, 2019, 11:40:21 pm
Uploaded your file to my CPG directory. I have my theme LOOKING pretty much how I want it so far (still working on it), so please don't do anything with the css. It's the functionality and full-size image popup I'm having major fits with. Thank you for your help and patience. I DID get the photo upload functioning without any errors by uploading the waterdrop theme php file.
Title: Re: Newbie Needs Help!
Post by: ron4mac on July 31, 2019, 01:59:43 pm
For some reason that file fails to function at that hosting site (you can remove the file), so I wasn't able to look at or do anything.  If you've replaced your theme.php file as you said, your error situations should all be resolved. And the full sized images do work as you've requested (you may have to clear cache.)  So you should be pretty much set.