Scroll across screen Scroll across screen
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Scroll across screen

Started by Halfhidden, February 05, 2008, 01:32:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Halfhidden

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

phill104

It shows fine for me in FF and IE down to 800*600
It is a mistake to think you can solve any major problems just with potatoes.

Halfhidden

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

SaWey

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?

Halfhidden

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 :)

SaWey

Me neither, I don't have the time to look deeper in the code atm, I hope someone else has?

Halfhidden

I understand... SaWey thanks anyway :)

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.

Halfhidden

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

Nibbler

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;

Halfhidden

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