a couple of easy edits needed...

BR-7

Joined: 2007-03-15
Posts: 3
Posted: Thu, 2007-03-15 02:25

http://www.eacustomcovers.com/gallery
Gallery version: 1.53
Apache version: not sure.. If needed I can dig deeper and get it.
PHP Version 4.3.11
ImageMagick
XP Pro

I need a couple of easy edits. I searched the site and was messing wtth the CSS myself to find what I was looking for to no avail...

1) I want to extend my hdr_bg image to the left, so it sits right above the album thumbs. My album thumbs are 128 x 128, but if you slowly move your mouse above the 'grey border' you can see the image extends above that. I had to make the images like that so it looks decent. But I want that bar to go over to the left so my thumbs will sit below it, with no space.

2) I moved alot of last years albums into the archive section, but I want to 'modify' the viewed amount on the archives to show the total viewed of the albums inside.. so what I need is to edit the count manually (like 50,999) so it starts counting from there on. Right now the count is inaccurate.

3) Last, how can I change the color of the number of views only? I can change the whole line in the css, but I just want the actual number to stand out.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2007-03-15 03:55

1. I don't see any background image. Can you give a screen show of what you want?

2. You would have to edid the .dat file for the album. Not recomended as it will break your gallery if you do it wrong.

3. Just the number? You would have to add a css class in the albums.php or the call that does the count.

printf(gTranslate('core', "This album has been viewed %s since %s."),
		  gTranslate('core', "1 time", "%d times", $clickCount, gTranslate('core', "0 times")),
		  $gallery->album->getClicksDate());

is the code that renders the text and number.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
BR-7

Joined: 2007-03-15
Posts: 3
Posted: Thu, 2007-03-15 05:08

Thanks Dave.. thought the 1.x gallery boards were pretty dead.

ok..

1). heres a shot of how it is now, I probably didn't explain very well in my initial post. With that shot, the black border represents my 128 x 128 jpg for the album thumbs. Its a rough idea of where it sits in relation to the blue bars. I make it 'seem' like the jpg is in line with the bars by using white, but if you mouse over the area, you can see exactly how much is there.

And this is how I want it to look, then I can make different album thumbs that look like they are part of the 'blue bar' (aligned left with the album jpgs, with no padding below the bars or above the jpg.

2) eh, I guess I'll leave it be. As an alternative, I tried turning off the count for the archives album and didn't 'check' that box that applies it too the nested albums. But it turned off the count for the nested ones anyways. Shrugs.

Weird, cause I thought it would involve a little manual entry, then it would continue to count normally from whatever I entered.

3) I know where the code was and I was playing with that string (but was getting errors :D ). So lets say I have added an entry to the screen.css for that skin called highlight2. How would the code look? My problem was with quotes or >'s or something. I don't recall the exact error, but there were many, lol.

Edit..

I was curious and took a look at the album.dat for the archives folder. I searched for the number of views now in that .dat and in this line..

"parentAlbumName";i:0;s:6:"clicks";i:14849;s:11:"clicks_date";i:1147798836;s:14:"display_clicks";s:3:"yes"

The bolded number is what it has now. So I just simply cannot change that number to what I want?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2007-03-16 03:17

1. now I understand. Se a pix is worth a 1000 words!
You would need to edit albums.php to do this. It is a bunch aof cells in a table and you would have to be proficient in table use. Alternatively, save a local copy of the rendered html and see if you can get a WYSIWIG editor to get it the way you want then make it work in albums.php.

2. "parentAlbumName";i:0;s:6:"clicks";i:14849;s:11:"clicks_date";i:1147798836;s:14:"display_clicks";s:3:"yes" Changing that should work. I think there is another number like the 11 or the 6 that might need to be changed as well. I don't remember. I think the 11 or the 6 is for the count of characters. Hard to remember.

3. not tested but I think this might work:

printf(gTranslate('core', "This album has been viewed %s since %s."),
		  gTranslate('core', "1 time", "<span class=highligh2>%d times</span>", $clickCount, gTranslate('core', "0 times")),
		  $gallery->album->getClicksDate());

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
BR-7

Joined: 2007-03-15
Posts: 3
Posted: Fri, 2007-03-16 16:33

1. I'm not too proficient, soooo.. I'll leave that alone for now.

2. Probably leave that alone as well, lol. If you don't remember and with the first comment about 'possibly breaking the gallery,' I wouldn't want to chance it. :D

3. Yep, that did it. When I tried doing it before posting here, I was trying to do that class to the line above, around the %s.
There isn't that 'markup' in the view_photo.php? I've found it in view_albums, and the albums, but not there. Thats the only place left that isn't now colored like the rest, but I can live with that.