After upgrading to latest G1, pictures not spaced properly?

zman
zman's picture

Joined: 2003-07-24
Posts: 196
Posted: Mon, 2012-01-09 18:46

Hello! I recently upgraded my G1 version to the latest version offered here because I wanted to pluck about 3000 pics out for a G2 upgrade. After the upgrade, my pictures are all moved to the left along with the navigation links too.

Everything seems to be OK in a view where there are no pictures as you can see here...
http://www.brentfranker.com/gallery/bfranker

But as soon as you get to a page with pics it looks like this...
http://www.brentfranker.com/gallery/album175

I found were there was just one picture so it would be easier to look at the page source but I wasn't able to figure it out. I'm not very good with CSS... obviously :) Here is a single picture page...
http://www.brentfranker.com/gallery/wilbourn

It doesn't seem to matter how wide I make the window... it is staying right where it is. However, if I make it super small then it will start to move closer to the left. Any ideas what might be wrong? I've tried several themes and no theme and the result is the same. Same output in IE and Chrome too.

Thanks!

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.brentfranker.com/gallery
Gallery version: 1.6-RC3
Apache version: Not sure but on GoDaddy server
PHP version (don't just say PHP 4, please): 5.2.17
Graphics Toolkit: Netpbm
Operating system: Windows 7

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2012-01-09 19:30

1. Open /gallery/skins/danmaher/css/screen.css.default
2. Look for ".g-vatable"
3. Add a new line after "margin-top: 5px;"
4. Enter "text-align: center;" into the new line
5. Save the file
6. Go to "http://www.brentfranker.com/gallery/album175"
7. Press the "Control" and "R" keys on your keyboard together to reload the page
8. Use the reload button on your browser to reload the page again after the "Control" and "R" step

--
dakanji.com

 
zman
zman's picture

Joined: 2003-07-24
Posts: 196
Posted: Mon, 2012-01-09 19:49

Thanks, Dayo, but that didn't work. Bummer. I tried that and refreshed several times but didn't work. I took the extra code back out since it didn't work. Since the nav bar also is pushed to the left and even the main page seems to have the white area pushed as far left as possible, do you still think this should have worked?

Thanks!

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2012-01-09 20:31

Try using "width: 100%" instead of "text-align: center;"

--
dakanji.com

 
zman
zman's picture

Joined: 2003-07-24
Posts: 196
Posted: Mon, 2012-01-09 20:37

That one worked, thanks!!! Now I just have to do the same for the navigation and the main album page.

Any idea why this didn't work properly? I looked a bit in the forum for this problem and never found it. I did have some problems with the FTP uploading of the files. I'm beginning to wonder if some may not have uploaded correctly. What else is weird is I have about 20 or so themes but only 5 or 6 show up in the config wizard. Hmm... I might just try to re-upload 1.6-RC3 again and see what happens. Also, this problem I'm describing is happening in all themes and even when NO theme is selected so that is weird and this fix will only fix this particular theme. I'll update here when I find out more :) Thanks!

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2012-01-09 21:05

I think the issue is with the version of G1. AFAIK, G1.6 was never formally released, was it? ... and G1.5.x was the last proper release.

I can see class definitions in the html that are absent in the css files. That is why the display is out of sorts.

The display at "/gallery/" is supposed to be controlled by class "g-albums-table" but this does not exist. although there is a class "g-albums-table-matrix"

Go into the same css file, copy the g-albums-table-matrix block and paste it in as g-albums-table and do the refresh shuffle.

As for the 20 themes with issues, well you are only going to be using one theme.

Alternative is to try the 1.5 branch instead.

--
dakanji.com

 
zman
zman's picture

Joined: 2003-07-24
Posts: 196
Posted: Tue, 2012-01-10 19:14

Hey Dayo, thanks for your help with this. After playing around with it for a bit I couldn't get the nav bar stuff to align correctly so I decided to go to 1.5.10. After I did this, nothing changed!?!? I looked at the source again and noticed the base.css file and remembered that most of them had .default on the end. I looked in the folder that contained the base.css file and noticed there was a default one too. I renamed the base.css file and reloaded and all be darned if everything didn't end up working! ARGH!!! Obviously, what I had there was not compatible with the newer versions. I guess at some point with an older version I changed the base.css file (I don't remember doing that... thought I was running a completely stock gallery!). So, I then went back to 1.6-RC3 and everything seems to be fine now.

Geesh. Amazing how something so simple can cause so many problems! haha Anyway, thank you much for your help and pointing me in the right direction!