Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Thumbnail Display needs changing  (Read 5773 times)

0 Members and 1 Guest are viewing this topic.

uk_martin

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 186
Thumbnail Display needs changing
« on: November 01, 2006, 10:49:15 am »

Hi
Please see: http://www.ukmartin.com/gallery/  http://www.ukmartin.com/gallery/index.php?cat=6  and http://www.ukmartin.com/gallery/thumbnails.php?album=6

How, in the "index.php" and "displayimage.php" pages can I change:
1. the allignment of the thumbnails to valign="top" (instead of valign="middle")
2. In respect of the descriptive text, how do I change from centered to justified?

I have looked on the index and displaypage php pages as well as the theme.php page, but can't seem to find the controlling bits of code.

Help would be appreciated.

Thanks in advaxnce

Martin
« Last Edit: November 03, 2006, 10:46:27 am by GauGau »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Thumbnail Display needs changing
« Reply #1 on: November 01, 2006, 01:07:55 pm »

Again, we remind you of the one question per post. Please respect this in the future if you want help. The reasoning is that it makes it easier to search the forum because your title might not be relevant to the 2nd or 3rd questions and since people will scan the titles of a search, they may miss important information if they are looking for answers to one of these questions. There are other reasons but this should be enough to follow the rules.

Answers:

1. They are already valign top.
2.
Code: [Select]
.thumb_caption {
        font-size: 9px;
        padding: 1px;
        display : block;
        text-align: justify
}

Also, upgrade your gallery to latest version.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

uk_martin

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 186
Re: Thumbnail Display needs changing
« Reply #2 on: November 01, 2006, 03:29:55 pm »

Gizmo

Oops, sorry about the 2 questions :-[

Thanks for the reply. In which file do I have to make the adjustment(s)? Is it the index.php and displayimage.php files or the template file?

Also when it comes to the valignment, I know that this is sad, but my target audience is going to be mainly Internet Explorer users, and in IE, the source code reads...
Code: [Select]
<!-- Start standard table -->

<table align="center" width="100%" cellspacing="1" cellpadding="0" class="maintable">

        <tr class="tableb_compact">
        <td width="50%" valign="top">
        <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td colspan="3" height="1" valign="top" class="tableh2">
                        <span class="alblink"><a href="thumbnails.php?album=5"><b>Speedway Grand Prix</b></a></span>
                </td>
        </tr>
        <tr>
                <td colspan="3">
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
                </td>
        </tr>
        <tr>
                <td align="center" [b]valign="middle" [/b] class="thumbnails">
                        <img src="images/spacer.gif" width="52" height="1" class="image" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="" /><br />
                        <a href="thumbnails.php?album=5" class="albums"><img src="albums/video/thumb_sgp.jpg" class="image" width="50" height="34" border="0" alt="sgp.wmv" /><br /></a>
                </td>
                <td>
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" />
                </td>
                <td width="100%" valign="top" class="tableb_compact">
                        <p>Classic races from the Worlds premier tournament</p>
                        <p class="album_stat">1 files, last one added on Oct 31, 2006</p>
                </td>
        </tr>
        </table>

AS can be seen on my site, this is (in IE at least) producing thumbnails which are scattered all over the place. Where can this "middle" be edited?

Thanks

Martin
Logged

uk_martin

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 186
Re: Thumbnail Display needs changing
« Reply #3 on: November 01, 2006, 03:34:39 pm »

Urgh, that didn't make it very clear...here is the snippet from within that table...

<td align="center" valign="middle" class="thumbnails">
                        <img src="images/spacer.gif" width="52" height="1" class="image" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="" /><br />
                        <a href="thumbnails.php?album=5" class="albums"><img src="albums/video/thumb_sgp.jpg" class="image" width="50" height="34" border="0" alt="sgp.wmv" /><br /></a>
                </td>


Hope this illustrates things a bit better.

Martin
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Thumbnail Display needs changing
« Reply #4 on: November 01, 2006, 04:37:34 pm »

This goes into the style.css sheet. Replace what's there.
Code: [Select]
.thumb_caption {
        font-size: 9px;
        padding: 1px;
        display : block;
        text-align: justify
}

As for the thumbnail issue, there's a problem with the container that the menu sidebar is in which IE doesn't like. Check the screenshot. Nothing more can be done unless you zip up your theme and attach it here. I also suggest you check out this thread on tools to help edit themes and websites - http://forum.coppermine-gallery.net/index.php?topic=31423.0. Have you considered asking for paid help on the board? - http://forum.coppermine-gallery.net/index.php?board=30.0
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Thumbnail Display needs changing
« Reply #5 on: November 01, 2006, 05:18:21 pm »

I think I've found the problems but I'll need your theme to fix them. Attach it here as suggested in the previous post.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

uk_martin

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 186
Re: Thumbnail Display needs changing
« Reply #6 on: November 01, 2006, 07:47:47 pm »

Thanks Gizmo

Theme zipped and attached herewith.

Martin
Logged

uk_martin

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 186
Re: Thumbnail Display needs changing
« Reply #7 on: November 01, 2006, 08:01:07 pm »

OK, I'm going to have a go at fixing the CSS file, and am attaching a screenshot of where the problems are that I can see in the current layout. Pictures paint a thousand words, so maybe this will help.

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.ukmartin.com%2Fimages%2Fscreenshot.jpg&hash=690e518baac2e1d2b59b5fd3fcd7a34ff83565f4)

I assume that the container problem may have something to do with the other problem I posted about, concerning the display in admin mode? Anyway, I would like to thank you in advance for taking time out to help. Much appreciated.

Martin
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Thumbnail Display needs changing
« Reply #8 on: November 02, 2006, 12:01:53 am »

Here it is. I fixed the tables and thumbnails.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Farnsi

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 177
Re: Thumbnail Display needs changing
« Reply #9 on: November 02, 2006, 09:37:08 am »

@ Gizmo: could you tell me what you changed because i'm having the same problem with another style.
thank you!
Logged
Regards,
Farnsi

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Thumbnail Display needs changing
« Reply #10 on: November 02, 2006, 11:49:24 am »

Please don't hijack threads as it can cause a lot of confusion. You should start your own in the future.

Check out the theme.php file in the above attached zipped file. The code changes are for $template_album_list and $template_album_list_cat.

To fix the table issue, I wrapped the {ADMIN_MENU} in it's own table.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Thumbnail Display needs changing
« Reply #11 on: November 02, 2006, 04:51:13 pm »

To see the changes between two files, simply use a diff viewer like Winmerge
Logged

Farnsi

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 177
Re: Thumbnail Display needs changing
« Reply #12 on: November 02, 2006, 07:04:53 pm »

sorry for that, i didn't mean to hijack anything.
Anyhow, thanks for your advice!
Logged
Regards,
Farnsi

uk_martin

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 186
Re: Thumbnail Display needs changing
« Reply #13 on: November 02, 2006, 10:52:48 pm »

Gizmo

That's great! Thanks very much for your help.

Martin
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.