Our FamilyForum

FamilyForum Documentation & Help => FamilyForum Features & Guidelines => Code & Stuff => Topic started by: Ken on March 06, 2015, 06:28:41 AM

Title: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 06, 2015, 06:28:41 AM
Both CPG Gallery (http://www.ourfamilyforum.org/cpg_gallery/index.php) & SMF Gallery Pro (http://www.ourfamilyforum.org/FamilyForum/index.php?action=gallery) are installed here on OFF and I'm gathering information for using one, or both for a slide show on our front/home page.

For the Coppermine Gallery there is a utility (CpmFetch) that we've used in the past and it worked very well, not sure if it's up to date for current versions.

Same for SMF Gallery Pro... we had TP Block codes that worked with past versions, just need to play around with them a little to see if they will work.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 06, 2015, 12:44:32 PM

For the Coppermine Gallery there is a utility (CpmFetch) that we've used in the past and it worked very well, not sure if it's up to date for current versions.


Yep, you're a few versions behind in Coppermine, you're currently running version: 1.5.9 which is insecure (very).   Latest version is cpg1.5.34

CpmFetch is also no longer being developed, but I have posted a working version to this post which works with coppermine 1.5.xx http://forum.coppermine-gallery.net/index.php/topic,65412.msg324838.html#msg324838  That's what I'm using at Camera craniums.

Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 07, 2015, 06:09:43 AM
Crap!  :censored:
Me thinks that I've broke the Coppermine Gallery.

For the upgrade process it calls for uploading all of the files except for the 'albums' folder to the website and I did that, but... when I opened my FileZilla FTP utility it wanted to update to the latest version and I said OK, but after the update to itself it would no longer connect to the CPG files on the FamilyForum website. After knocking it around for a while I finally dropped it and opened up another FTP utility, Core FTP LE.

The Core FTP LE did connect up, so I set it to upload all of the files and it started to do so and that's where the fun begins. It sat there, churning away, for over an hour before I finally shut it down and the end result was a CPG 'Check Versions' page filled with 100's(?) of errors.  shocked028

(https://www.ourfamilyforum.org/FamilyForum/proxy.php?request=http%3A%2F%2Fi60.tinypic.com%2F2co2bzn.png&hash=bcadc0b71ba71f0bea2dfec67a536cead450c91d)

Now, although the Gallery still works, there's all those errors and what to do about them.
Gotta think about this for a day or so before making my next move.  laughing7
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 07, 2015, 05:51:05 PM
Ken, where did those version 1.5.30 files come from?
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 07, 2015, 06:31:06 PM
Ken, where did those version 1.5.30 files come from?

I dl'ed the latest version from CPG and followed the instructions there... is this the wrong version?

EDIT: On closer look, that version was released 2014-07-08 and it would have been installed some short time after that.

(https://www.ourfamilyforum.org/FamilyForum/proxy.php?request=http%3A%2F%2Fi62.tinypic.com%2F34iifll.png&hash=d1de0046007a47aaa1cd15924966ac8e975ac018)
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 08, 2015, 06:09:40 AM
Here's what I do when I upgrade.

I download the latest version and unzip it on my desktop.  First thing I do is delete the albums folder, just so I can't mistakenly overwrite the one on my serer, lol.

When I upload the new files I open each directory and only replace the files that are in the directory on my desktop, so for example, I open the plugins folder and only add the ones from my PC, and leave any of the ones that aren't included in that folder.  I do the same for each folder.

When I get a problem where the files don't update, I delete the old files, and upload the new, instead of overwriting them. Kind of makes sure you have the latest files. Warning  Do not delete your include/config.inc.php file just replace the other files in that folder

I really wish Coppermine had a better way of updating, but it's not going to happen.  And remember any custom edits you're using will be gone and will have to be re-applied.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 08, 2015, 07:31:31 AM
I was a couple of versions behind over at Camera Craniums (yes naughty I know), so just updated it.

See screen grab below. And ignore the modified files, that's not a problem. ;)

I can only assume what ever version you upgraded from, and assuming you installed the latest 1.5.34 then your files didn't overwrite. Source says you're running 1.5.30
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 08, 2015, 12:21:26 PM
My process was similar to yours, except that the whole cpg file set was uploaded at once:

1/ Download the latest.
2/ Unpack on desktop.
3/ Delete the Albums folder from the desktop folder.
4/ Save(download) a copy of 'include/config.inc.php' and 'anycontent.php' to the desktop, but not into the cpg folder.
5/ Upload the entire contents of the cpg folder (that's on my desktop).

All this as seen here:
http://documentation.coppermine-gallery.net/en/upgrading.htm

Just kicking an idea here...
What would happen if the entire contents of the online cpg folder were deleted (except for albums) and then upload the entire contents of the desktop folder, including the copies of the previously saved  'include/config.inc.php' and 'anycontent.php'?
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 08, 2015, 12:32:32 PM
PM Sent. :)

Made an account for you in case you wanted a closer look.
You should likely change the password to match the one that you use here in the forum just in case the bridge manager is activated again.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 08, 2015, 01:47:06 PM
PM Sent. :)

Made an account for you in case you wanted a closer look.
You should likely change the password to match the one that you use here in the forum just in case the bridge manager is activated again.

Ken, so exactly what version did you upgrade from 1.5.30?  I would just go through the folders again and make sure they all contain the new files. It looks like your whole include folder was missed and still has the old files. So start with that one. 

docs files are ok.
bridge files are ok,

The single files found in the  cpg1.5.34 folder on your desktop also need to be uploaded
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 08, 2015, 03:00:36 PM
Due to some cancer issues that I was having the site was taken down for all of 2013, as in completely removed from the internet. Then in late December, 2013-early January, 2014 it was reloaded and restarted with all new packages for SMF-TP-SMF Gallery Pro and the db backup's from before the shutdown.
Because the saved db's were out of date for the new packages it was giving me all kinds of problems and so after a time I installed cpg again (it was in use for several years and had a few thousand pics, but then I changed over to SMF Gallery Pro, so cpg sat idle), including a backup that I had of that db, but it gave me all kinds of issues as well.  shocked028

So, in the end the cpg db and files were started from scratch in Jan, 2014 so whatever the current version was at that time is the starting point.

One unfortunate side issue resulting from my medical adventures is my memories when it comes to timelines and how everything falls on the line.
Sometimes thats a good excuse... other times it's a big pain in the ass.  laughing7
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Skhilled on March 08, 2015, 03:17:30 PM
A good excuse to use for Kay, huh?  :hah!:

Hmmm, I haven't added CPG since I've changed servers...

BTW, Ken... You might want to try this for FTP:

http://winscp.net/eng/index.php

It has everything built in along with SSH and the ability to create/save multiple sessions. Each session can start in a different folder on the same server, if you wish.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 08, 2015, 04:59:15 PM
Thanks Steve.
Tried that one and it would not connect up either.  :oops!

The CoreFTP LE will connect up and works OK, so the connection is there, I just need to discover why FileZilla won't connect.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Skhilled on March 08, 2015, 05:15:20 PM
That's weird...I just connected to your server using it with no problems. Must either something you're doing or something else on your end.

I'm surprised my PC hasn't locked up or rebooted yet...
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 08, 2015, 05:18:56 PM
It has to just be something blocking FileZilla because the other one (Core) is able to connect... maybe my firewall.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Skhilled on March 08, 2015, 05:23:28 PM
That may be the problem...
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 08, 2015, 05:46:56 PM
It has to just be something blocking FileZilla because the other one (Core) is able to connect... maybe my firewall.

That may be the problem...

I agree, it could be.  I once had McAfee security installed on a PC, and that even stopped me administrating my own forum.  Couldn't sort it, eventually had to uninstall it. Never used it again. lol..
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 09, 2015, 03:52:23 PM
Gots FileZilla working again!  :hah!:

Went to my support ticket option and asked Frank for advice on the issue... again!  :o
... I've had this issue before, mostly after an update to FZ.

So here's a quote from my messages to and from him:

Quote
Hi Frank

Sorry to bother you again with my FileZilla issues, it has lost it's connection ability again after an update. I've been thrashing around with it in the settings for several days now and did an uninstall and then downloaded a fresh copy and installed that. The result is still the same.

My log-in details are good because they will work with Core FTP LE... it logs in and transfers with no issues. The Core FTP could be used of course, but I much prefer the FileZilla so it would nice to get it working.

Thanks for any help or advice that you can give... Ken.

-------------------------------------
In FileZilla:
Under the General tab. Encryptoin: chose "Only use plain FTP from drop down box.
Frank
--------------------------------------

I already had it set to that based on your previous advice.

But when you mentioned it I thought to try the other setting, "SFTP-SSH File Transfer Protocol" thinking that it might work if I cycled through both settings, ending up back with the plain FTP and then maybe it would work. Well, when the setting was changed to SFTP-SSH it connected up strait away and works as expected now.

Thanks for the timely tip... Ken.

Works like a charm now.  :thumbup:
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 09, 2015, 04:36:54 PM

Ken, so exactly what version did you upgrade from 1.5.30?  I would just go through the folders again and make sure they all contain the new files. It looks like your whole include folder was missed and still has the old files. So start with that one. 

docs files are ok.
bridge files are ok,

The single files found in the  cpg1.5.34 folder on your desktop also need to be uploaded

Done.
The Versioncheck page is starting to look much better now.  :thumbup:

It did give off three failed transfers as seen here:

(https://www.ourfamilyforum.org/FamilyForum/proxy.php?request=http%3A%2F%2Fi62.tinypic.com%2Fzthc02.png&hash=cdc299fbbd5c751e8ab989256aa2958ffc9413f7)

Did that happen because those folders already existed on the server?
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 09, 2015, 04:41:22 PM
The Versioncheck shows 'anycontent.php' as outdated, should a copy from the latest version be edited for the correct site data and then uploaded?
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 10, 2015, 03:18:13 AM
Ken good job getting your Filezilla working again.  I wouldn't worry to much about the anycontent file tbh. 


Just checked your file versions again, and yes it's nearly there.

There's three EDIT: Four folders that it seems to have missed

js folder

lang folder

plugins folder Open this file on both your pc, and on server and just copy across the plugins, leaving any other plugins you have added in the server file.

sql folder

Click the "update database"  button after this,.  Then we'll check it again. ;)
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 10, 2015, 07:39:16 AM
Done.  :thumbup:

1/ The update db screen shows all entries as 'Already Done'.
2/ Versioncheck shows green checks for all versions; except for some albums; logs; plugin's; and themes.
3/ I went ahead and uploaded the anycontent file.

Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 10, 2015, 01:29:56 PM
Done.  :thumbup:

1/ The update db screen shows all entries as 'Already Done'.
2/ Versioncheck shows green checks for all versions; except for some albums; logs; plugin's; and themes.
3/ I went ahead and uploaded the anycontent file.

Cool,  Good job Ken.   Yeah the anycontent file is ok to overwrite providing you're not using it.  In which case you'd upload the one you had backed up as per the upgrade instructions.

Only thing to check now is those three files that failed the transfer, just to make sure they're current, and then you're green to go as they say. lol..
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 10, 2015, 01:32:27 PM
OK, I'll do that a little later today.


... 'anycontent.php' ; I didn't seen any difference between the two except for the published date???
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 10, 2015, 01:42:20 PM
Actually... went ahead and checked those three files.

Each one is calling out a folder that is empty, both in the new package and on the server, so it should be OK because the folders are on the server.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 10, 2015, 02:55:33 PM
OK, I'll do that a little later today.


... 'anycontent.php' ; I didn't seen any difference between the two except for the published date???

Ken, you won't see any difference in that file, like I said unless you use it.  The anycontent file is for adding your own code / content etc to be displayed in Coppermine.  Basically if you don't have any of your own code in your anycontent.php file then it's safe to replace it. 

The only reason the upgrade instructions tell you to back it up. Because if you use it, and then overwrite it then you'll lose your custom code, that's all.  ;)

As an example, you can see the anycontent being displayed (as is, and un-edited) at the top of my test site gallery http://cctestsite.info/gallery/index.php
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 10, 2015, 05:33:56 PM
OK, gotcha now.  :thumbup:

EDIT: Your slider in the gallery looks really neat!  :thumbup:  :thumbup:
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 10, 2015, 06:12:09 PM
OK, gotcha now.  :thumbup:

EDIT: Your slider in the gallery looks really neat!  :thumbup:  :thumbup:

Ken thanks.  I use that slider on CC and my testsite, it's just a plugin. ;) http://forum.coppermine-gallery.net/index.php/topic,57388.0.html

I use it in conjunction with the EnlargeIt plugin, http://forum.coppermine-gallery.net/index.php/topic,57424.0.html
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 10, 2015, 07:12:02 PM
OK, working on it.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 11, 2015, 03:07:52 AM
It's working. (http://www.ourfamilyforum.org/cpg_gallery/index.php)  laughing7

Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 11, 2015, 03:14:43 AM
It's working. (http://www.ourfamilyforum.org/cpg_gallery/index.php)  laughing7

Nice one Ken. :8  You might want to adjust the settings to make the thumbs when clicked go to the intermediate pics.  Tis your call though. ;)
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 11, 2015, 03:54:56 AM
OK, did that but don't see any difference in the size of the enlarged pic???
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 11, 2015, 04:08:51 AM
OK, did that but don't see any difference in the size of the enlarged pic???

Sorry Ken, not sure what you mean mate.  If you take a look at a image in my gallery http://cameracraniums.com/gallery/

And just to note, I'm not talking about the slider.  If you click on one of the thumbnail images further down the page you'll see it goes to intermediate, so you see all the info, able to comment etc.  Clicking the intermediate brings up the image in enlargeit.

In your case clicking a thumb only opens it in enlargeit, and you can't comment or see info.  It skips the intermediate image in other words.

Hope that made sense. lol..
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 11, 2015, 08:12:54 AM
Ah, your albums open as a film strip but mine dose not.
Thrashing around in the settings for "EnlargeIt!" and for "Config/Image View" and so far the film strip view in the albums is not forthcoming.  shocked028
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Skhilled on March 11, 2015, 09:36:30 AM
Looks great!  :thumbup:
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 11, 2015, 03:33:13 PM
Ah, your albums open as a film strip but mine dose not.
Thrashing around in the settings for "EnlargeIt!" and for "Config/Image View" and so far the film strip view in the albums is not forthcoming.  shocked028

oops sorry Ken.  I've set your gallery so you can see the intermediate with filmstrip.  But when I told you what plugins I was using I forgot one  :-[  This one I use to give the lightbox effect when you click on those intermediates, plus it gives that neat slideshow  http://forum.coppermine-gallery.net/index.php/topic,62905.0.html

Edit: Forgot to say, this one will probably need to be FTP'd to your plugins directory.  Just unzip it, open the folder and upload the next folder containing all the files to your plugins directory. Then install it.

Enjoy. :)
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 11, 2015, 04:11:52 PM
OK, gonna work on that now.  :thumbup:

Then, I need to read up on CPG Fetch to see how to edit the files for it.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 11, 2015, 04:35:28 PM
Done.
That makes for a nice slideshow.  :thumbup:
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 11, 2015, 04:38:29 PM
Joseph Carver has a really neat slider on his gallery page.

http://josephcarver.com/index.php
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 11, 2015, 05:09:51 PM
Joseph Carver has a really neat slider on his gallery page.

http://josephcarver.com/index.php

Yeah, Joe has a couple of sites using it, it's a plugin that he put together. It's here if you want to give it a go. http://forum.coppermine-gallery.net/index.php/topic,62561.0.html

It's not one of my favourites tbh, I did use it for a while but settled for what I have now, especially as with a little work you can add the one I use to a block.   I'd like t make a really neat slider when I get some time to try it.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 11, 2015, 05:21:20 PM
I'll stick with what we have now for some time... maybe revisit that option at some time in the future.

If you don't see anything else that needs attention I'm going to start working on the cpgfetch option. I want to build some kind of slideshow for the front page, similar to the one you built for TP, with the images based on, or linked to the images that we have in the gallery.

Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 12, 2015, 04:40:04 AM

If you don't see anything else that needs attention I'm going to start working on the cpgfetch option. I want to build some kind of slideshow for the front page, similar to the one you built for TP, with the images based on, or linked to the images that we have in the gallery.

Cool, be interested to see what you come up with slider wise, I've not been too successful in the past.  The slider you have in the top of the gallery you can also put in a TP block, with an additional file, but its not very flashy I'll admit.  ;)

Did you originally have the Coppermine bridged with SMF? if so what made you un-bridge it.  (I'm guessing it was the introduction of SMF Gallery pro), just curious.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 12, 2015, 06:46:26 AM
Yes on the bridge and Gallery Pro question.
In the earlier years I played around with lots of gallery programs including CPG, SMF Gallery Pro and Gallery2. After trying all those options I settled on G-Pro because the staff at cpg at that time were so difficult to deal with... they used the karma system like a 10# sledge hammer.  laughing7

So, after my delightful [/sarcasm] year off, when I started too rebuild the site I tried CPG again because I've always liked it and there were rumors that they now have some staff members who are just wonderful.  wink1
But, eventually I returned to G-Pro because I like it a little better than CPG

For starters I'm going to take a closer look at the slideshow that you built for TP to see if it will work here... may also do a bit of a Google search to see what I can find.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 12, 2015, 04:09:57 PM
Yes on the bridge and Gallery Pro question.
In the earlier years I played around with lots of gallery programs including CPG, SMF Gallery Pro and Gallery2. After trying all those options I settled on G-Pro because the staff at cpg at that time were so difficult to deal with... they used the karma system like a 10# sledge hammer.  laughing7

So, after my delightful [/sarcasm] year off, when I started too rebuild the site I tried CPG again because I've always liked it and there were rumors that they now have some staff members who are just wonderful.  wink1
But, eventually I returned to G-Pro because I like it a little better than CPG

For starters I'm going to take a closer look at the slideshow that you built for TP to see if it will work here... may also do a bit of a Google search to see what I can find.

I think I know why you like G-Pro, it comes down to integration, G-Pro is integrated, looks like it's part of the forum whatever theme etc.  Coppermine isn't, and it's a freaking nightmare to integrate in a visual way.  Plus it's so frustratingly old fashioned.  Shame, because it has really powerful features.   

Hoping CPG 1.6.x will be better.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 12, 2015, 04:20:50 PM

I think I know why you like G-Pro, it comes down to integration, G-Pro is integrated, looks like it's part of the forum whatever theme etc.  Coppermine isn't, and it's a freaking nightmare to integrate in a visual way.  Plus it's so frustratingly old fashioned.  Shame, because it has really powerful features.   

Hoping CPG 1.6.x will be better.

You pretty much nailed it.
My earlier attempts at using cpg were very illustrating frustrating because my skills were so meager and as you say G-Pro was so much easier to make a part of the forum. And then, the navigation to and in the gallery was so much easier.
For me Gallery2 held out great promise because I really liked to 'look and feel' of it, but it to was very difficult for the casual user.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 14, 2015, 01:49:43 PM
Ran the bridge for CPG to SMF.

Now gotta figure out how to have links to both CPG and SMFgallery... reading up on SMF & CPG just leads to out of date and confusing information.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 14, 2015, 03:11:08 PM
Ran the bridge for CPG to SMF.

Now gotta figure out how to have links to both CPG and SMFgallery... reading up on SMF & CPG just leads to out of date and confusing information.

Ken, the link needs to be added to the SMF main site nav menu.  That's a SMF thing. 

In Coppermine you already have the forum link added.  If you want to Change the home button to point to this home page, just change it in config.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 14, 2015, 06:59:16 PM
Right, understood about it being an SMF thing for the nav bar button, but there in lies the problem. Trying to read up over on SMF leads to lots of info on older versions of SMF, but for 2.0.9 it's hard to fathom adding a link because the file location for those edits has changed and the directions that I've been able to uncover so far are not getting me to actually having a CPG Gallery button on the forum nav bar.
shocked028

If memory serves, we had links to both some years back, but whatever those edits were are long gone now, so me gotta go back to SMF for more research.  laughing7
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Skhilled on March 14, 2015, 08:00:37 PM
You want /Sources/Subs.php near the bottom of the file. Or use Notepadd++ or something similar and search for this:

Quote
function setupMenuContext()
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 14, 2015, 08:44:42 PM
Got it!  :disturbed:

Don't know if I did it right or not?
My edit is around line 4145
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Skhilled on March 14, 2015, 08:50:18 PM
Give me a little bit to get this lasagna in the oven and i'll check it for you.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 14, 2015, 09:03:50 PM
Give me a little bit to get this lasagna in the oven and i'll check it for you.

 :thumbup:
 That lasagna sounds good... me just had noodles (DaVinci Bucatini) in chicken broth with a little shredded chicken mixed in, the broth was the remainder from cooking the chicken for the sandwiches for tomorrow.
It were good.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Skhilled on March 14, 2015, 09:19:09 PM
The @#$%^&* thing is FINALLY in the oven!  :censored: A lengthy post is coming about the "comdey of errors" that took place later.

I'm downloading it now and having a look...
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Skhilled on March 14, 2015, 09:24:25 PM
Looks good to me and should work. :)
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 14, 2015, 10:15:27 PM
The @#$%^&* thing is FINALLY in the oven!  :censored: A lengthy post is coming about the "comdey of errors" that took place later.

Looking forward to your account.  :thumbup:

Looks good to me and should work. :)

Thanks for looking.  :happy1:
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Skhilled on March 14, 2015, 10:24:47 PM
Good job except you may wish to add a space between CPG and gallery. and maybe use a capital G for gallery...
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 15, 2015, 04:13:36 AM
Good job except you may wish to add a space between CPG and gallery. and maybe use a capital G for gallery...

Which would look better, 'Coppermine', or 'CPG Gallery'?
Coppermine saves one space over the other spelling (10 vs 11)... currently it's set to Coppermine.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 15, 2015, 04:17:46 AM
Right, understood about it being an SMF thing for the nav bar button, but there in lies the problem. Trying to read up over on SMF leads to lots of info on older versions of SMF, but for 2.0.9 it's hard to fathom adding a link because the file location for those edits has changed and the directions that I've been able to uncover so far are not getting me to actually having a CPG Gallery button on the forum nav bar.
shocked028

If memory serves, we had links to both some years back, but whatever those edits were are long gone now, so me gotta go back to SMF for more research.  laughing7

Ken, I'll be honest and say I've never been able to add a proper hard coded link to the SMF nav bar, and always screw it up.  So I cheat and use a menu manager.  Hence why I think SMF should have one built in to core, Or as my other suggestion TP have one built in as standard.  It's just a PITA to add a link imo.

If you look at the gallery link at http://cameracraniums.com you'll see it has a dropdown with, Last comments, Upload file, and latest uploads.

The only problem is although this particular menu manager works, it will kill your site if not used in the right order. lol..  I have got the hang of it now though.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 15, 2015, 04:33:18 AM
Yeah, I agree on the built-in menu manager, it would make it so much easier to deal with.

I think those dropdown links that you have are really neat and will add them to the Coppermine link here. After finally starting to understand the help/how to for adding links that are posted over on SMF maybe I can do a dropdown without killing the forum.  :o

I've used a menu before and though about doing so for this, but was finally able to muddle through the hard code instructions.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 15, 2015, 04:37:16 AM
BTW, here's the link to the instruction:
http://www.simplemachines.org/community/index.php?topic=261880.0
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 15, 2015, 04:54:56 AM
Yeah, I agree on the built-in menu manager, it would make it so much easier to deal with.

I think those dropdown links that you have are really neat and will add them to the Coppermine link here. After finally starting to understand the help/how to for adding links that are posted over on SMF maybe I can do a dropdown without killing the forum.  :o

I've used a menu before and though about doing so for this, but was finally able to muddle through the hard code instructions.

I remember when I wanted to add a link to my article index, although I could add the link, and it worked, it always highlighted the home button, instead of the actual page button I was viewing.  So gave up.  lol..  Never got my head around it tbh.  Menu manager takes seconds to achieve the end result.

Yes, the dropdown for the gallery is pretty handy.  You'll also note that in Coppermine, the Home button goes to the Portal home page.  The forum button goes to the Forum index.  And clicking the Gallery logo goes to the gallery home page (index).

There, also a "My Gallery" link at the bottom of the Random  / Latest gallery images block on the front page.  This should take any logged member directly to there own gallery. That link posed a few problems, so Brad, and bloc helped me sort it out.

BTW, here's the link to the instruction:
http://www.simplemachines.org/community/index.php?topic=261880.0

Cheers, yep I used that one.  What a rigmarole to add a simple link lol..  Even worse when you have to repair your forum, new files etc, then have to do it all over again. Why the team over at SMF think a menu manager is unnecessary is beyond me. ;)

Anyway, bloc seems willing to take it on, which is great imo.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 15, 2015, 05:03:04 AM
Bloc has made some really nice code, both with TP and with some of his themes so like you I'm glad that he is willing to look at stuff like this.

What link manager are you using?
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 15, 2015, 05:06:50 AM
Ken, just a thought. 

If you were to find a Coppermine theme with a similar layout to your main theme (outline), you could probably add the header image, and edit the colours to match.  Haven't tried it, and would be a bit of faffing about, but it would make things look a bit more integrated.

I might give that a try myself in Xampp. 
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 15, 2015, 05:16:12 AM
I'm not remembering for sure, but it seems like we had it setup like that some years ago... no firm details come to mind, but I'm pretty sure that it was like that at one point.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 15, 2015, 05:25:46 AM

What link manager are you using?


It's no longer available as a standalone mod Ken, and seriously, I'd be worried about letting anyone use it, because if you forget to un-install it before things like TP or some other mods, it'll kill your site stone dead, and overload your server, lol..  I got told of by my host a while back for using too much resources when I forgot.

Also you can only add one link at a time, if you try to do more than one operation at a time it will kill your site.  So you have to add a link, then visit the SMF admin again, then go to menu manager again to add the next link, and so on.

Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 15, 2015, 05:35:17 AM
Ultimate Menu (http://custom.simplemachines.org/mods/index.php?mod=3674) seems to work OK and it supports SMF 2.0.9

I've been playing around with it a little and so far it appears to be solid.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 15, 2015, 06:11:02 AM
Ultimate Menu (http://custom.simplemachines.org/mods/index.php?mod=3674) seems to work OK and it supports SMF 2.0.9

I've been playing around with it a little and so far it appears to be solid.

Ken, yes it's almost identical to the one I have, in fact it looks exactly the same in every detail.  I'm now trying to work out why I didn't use it. I know I have tried it in fact I have it installed on one of my local sites already, and it does work well, but it stopped me doing something which I needed.  Going to have to try it again to see what it was.

If it does what you need here though, then I'd say go for it.  It'll be a lot easier than editing files manually, as no doubt you've already discovered. :)
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 15, 2015, 06:14:56 AM
For a fact, that's true.  laughing7

I'm going to go ahead and install it here... the edit that I did to sources/subs.php needs to come out so that the Coppermine link can have a dropdown menu.
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Mick on March 15, 2015, 06:33:09 AM
For a fact, that's true.  laughing7

I'm going to go ahead and install it here... the edit that I did to sources/subs.php needs to come out so that the Coppermine link can have a dropdown menu.

I see you've done it already, how easy and quick was that. lol..  :thumbup: Your last comments is pointing to the wrong place though ;)  should be, http://www.ourfamilyforum.org/cpg_gallery/thumbnails.php?album=lastcom

Edit: and your upload file link, gives an error page, try http://www.ourfamilyforum.org/cpg_gallery/upload.php
Title: Re: CPG Gallery & SMF Gallery Pro
Post by: Ken on March 15, 2015, 07:00:35 AM
Latest comments fixed... thanks for that.

On the error page, all(none) of the cpg permissions were set, so no upload ability was available... funny how that works.  shocked003
Should be OK now.