Where Are These Things Located In This Latest Version?
|
Roo
![]()
Joined: 2003-07-16
Posts: 88 |
Posted: Sat, 2004-05-08 17:36
|
|
My Gallery is still the older one, but I've just installed the latest version as part of a client site and there seems to be quite a difference in the code. I've gotten most of my modifications done but am having a hard time removing two things: 1) I want to remove that empty table row that is under the top nav bar so the rest is brough up a bit. Compare - how I did it with my Gallery with the newer version I have installed for a client. 2) I want to get rid of ' 1 top-level album (5 total), 8 images' on the main albums.php page. Now I follwed the directions for removing this as I found them in this post, but what happened was while it did remove the text I was left with () showing where the text had been. I'm quite impressed with the newer version, but man it's quite different! |
|


Posts: 25961
1)in albums.php look for where the table starts
NOTE the cellspacing of 7 you might want to change that.
Then there is a row that is empty
<!-- Begin Album Column Block --> <tr> <td height="1"><?php echo $pixelImage ?></td> <td height="1"><?php echo $pixelImage ?></td> <?php if (!strcmp($gallery->app->showAlbumTree, "yes")) { ?> <td height="1"><?php echo $pixelImage ?></td> <?php } ?> </tr>The 3rd cell is for if you have the display sub-album tree set to yes in the config.php. You can chop that row out if you like.
2) in albums.php you will see how the string is set above this
$adminText .= sprintf(_("%s (%s), %s on %s"), $toplevel_str, $total_str, $image_str, $page_str);The variable $adminText is added to prior to (the opening span tag) and later on the the page (more text you might want to remove as well.) so you can just remove or comment out what you don't need.Dave
Posts: 88
Thanks Dave, I'll try that this evening when I sit down to work.
I looked in albums.php, but I think my eyes were buggered at the time. :o