coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Halfhidden on February 05, 2008, 01:32:49 PM

Title: Scroll across screen
Post by: Halfhidden on February 05, 2008, 01:32:49 PM
Hi everyone... May I start by thanking everyone for Coppermine, and those who are working very hard to keep this free!

I'm having an odd problem. I recently changed the theme to "Classic Nifty" and all seems fine except for those pictures that have a large description. It seems that the description below the image only populates four lines and that stretches across the screen making the user scroll across in order to read the description or see the picture.

Is there anyway I can modify the description area to prevent the need to scroll across the screen.... I don't mind the user having to scroll down.
Hear is a link of a typical file I'm referring to:

http://picturepenzance.co.uk/displayimage.php?album=60&pos=4


Regards,
Steff
Title: Re: Scroll across screen
Post by: phill104 on February 05, 2008, 10:21:06 PM
It shows fine for me in FF and IE down to 800*600
Title: Re: Scroll across screen
Post by: Halfhidden on February 05, 2008, 11:07:48 PM
Thanks for the reply Phil. I never though that it could be the web browser! you're right it works fine for me in IE7 but I normally use Fire Fox version 2.0.0.1. I'll check to see if my Fire Fox is up to date..... thanks for your reply... this is really appreciated.

Regards,
Steff
Title: Re: Scroll across screen
Post by: SaWey on February 05, 2008, 11:26:46 PM
I have the same problem as you have with FF, none with IE.
As I'm not a CSS expert, I suggest temporarely adding linebreaks in your description?
Title: Re: Scroll across screen
Post by: Halfhidden on February 05, 2008, 11:35:00 PM
Hi SaWey,
I've just looked to see if I have the latest FF and I have... I'm completely lost with this one. Clearly FF isn't dealing well with long descriptions. Are you suggesting HTML line breaks..... because I think that will be displayed as is in the description. I'm guessing that the theme.php will need to be edited..... but I know not how.

Regards,
Steff
PS thanks for the input :)
Title: Re: Scroll across screen
Post by: SaWey on February 05, 2008, 11:41:40 PM
Me neither, I don't have the time to look deeper in the code atm, I hope someone else has?
Title: Re: Scroll across screen
Post by: Halfhidden on February 05, 2008, 11:44:22 PM
I understand... SaWey thanks anyway :)
Title: Re: Scroll across screen
Post by: phill104 on February 06, 2008, 11:26:32 AM
Do you get the same problem with the standard classic template.

I'm on a work system this week so am unable to upgrade my FF install to a new version. This stuffs me a bit as I cannot replicate the problem to try some things.

The results might give me some clues.
Title: Re: Scroll across screen
Post by: Halfhidden on February 06, 2008, 12:04:49 PM
No. The pictures that end up so far to the right that the user has to scroll a considerable amount for in the Classic Nifty theme, completely collapse into a small letter box no more than 10x 30 in the Classic theme. The thumbs display but the normals don't.
This happened once before and Nibbler explained that the file names that one of the site user had uploaded had an @ in the name. I renamed the files and it all sorted itself out.
Its a Fire Fox thing this I think.

Regards,
Steff
Title: Re: Scroll across screen
Post by: Nibbler on February 06, 2008, 12:21:01 PM
Edit theme.php and remove the nowrap="nowrap" bit. That way it will wrap ;)


// HTML template for intermediate image display
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                                                {IMAGE}<br />
                                                {ADMIN_MENU}
<!-- BEGIN img_desc -->
                        <div class="picDescriptionNifty">
                        <table cellpadding="0" cellspacing="0" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
                                        <td class="tableb">
                                                <h2 style="text-align:center;font-size:12;">{TITLE}</h2>
                                        </td>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
                                        <td class="tableb">
                                                <h3 style="text-align:center;">{CAPTION}</h3>
                                        </td>
                                </tr>
<!-- END caption -->
                        </table>
                        </div>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
Title: Re: Scroll across screen
Post by: Halfhidden on February 06, 2008, 09:21:08 PM
Thanks Nibbler. I was reduced to using IE for a day... I think I nearly went mad.
Nibbler you are true salvation!  ;D
Regards,
and always grateful,
Steff