Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Intermediate pictures display is different for guests  (Read 5021 times)

0 Members and 1 Guest are viewing this topic.

majay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Intermediate pictures display is different for guests
« on: August 21, 2006, 06:37:37 pm »

Hello,

I've just noticed this slight problem with the display of the imageborder around intermediate pics in my gallery.

In Firefox:
When users are logged in, it looks fine, like this:
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg237.imageshack.us%2Fimg237%2F1769%2Fiborderloggedinwz4.jpg&hash=96a7e2abf51a31c853508b137086a5346c98e309)

But when guests view intermediate pictures, the left and right borders are uneven, like this:
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg237.imageshack.us%2Fimg237%2F1923%2Fiboderguestft7.jpg&hash=a4e556cfaf6fe53e8abc6e066dd09bc9914227ab)

In IE the problem differs slightly for guests, as it's only the bottom border that is too thick. But the border display is normal for logged in users.

This has been happening ever since I added a new custom theme to my gallery. However, the same problem occurs with all of my themes (I used the Classic skin for this example), although I'm sure I didn't edit any files other than those in my new theme folder.

Does anyone have an idea of how to fix this, please?

Thank you.
« Last Edit: August 24, 2006, 04:35:48 pm by Brek »
Logged

Nibbler

  • Guest
Re: Intermediate pictures display is different for guests
« Reply #1 on: August 21, 2006, 08:11:22 pm »

Post a link.
Logged

majay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Intermediate pictures display is different for guests
« Reply #2 on: August 21, 2006, 11:29:52 pm »

I am sorry, there is currently a MySql connection problem on my server, so there's no way to view the gallery at this time.
What I can do in the meantime is post the code from files that you think might be relevant.
Logged

majay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Intermediate pictures display is different for guests
« Reply #3 on: August 22, 2006, 02:11:14 am »

After deleting my gallery's cookie it seemed the problem had been fixed, but now it's back again. I also optimized my database tables, in case it might have something to do with it.
« Last Edit: August 24, 2006, 04:34:52 pm by Brek »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Intermediate pictures display is different for guests
« Reply #4 on: August 22, 2006, 07:47:38 am »

you have extra br tag after image , do you have any plugin or mod installed?

Update:
br tag will show when you are login , it seems that you have installed something like control fullsize plugin
« Last Edit: August 22, 2006, 02:06:49 pm by bmossavari »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Intermediate pictures display is different for guests
« Reply #5 on: August 22, 2006, 01:54:25 pm »

I found something strange with the nowrap="nowarp" property in your source code. While it should be and cause no issue, in your case it seems to be problematic. As bmossavari asked, do you have any plugins or mods inistalled? What about editing the photos after you uploaded them? In any case, try this and see if it doesn't solve your problem.

If the below code isn't in your theme.php, copy it from the sample=>theme.php and paste it in.
Code: [Select]
// HTML template for intermediate image display
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2px" cellpadding="0px" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

                                        </td>
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2px" cellpadding="0px" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->
                        <table cellpadding="0px" cellspacing="0px" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
                                        </b></center></td>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;

Remove the nowrap="nowrap" property from this line
Code: [Select]
                <td align="center" class="display_media" nowrap="nowrap">
to give only
Code: [Select]
                <td align="center" class="display_media">
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

majay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Intermediate pictures display is different for guests
« Reply #6 on: August 22, 2006, 02:43:35 pm »

Yes I have control fullsize and onlinstats plugins. But as far as I know control fullsize didn't cause any problem before. At least I had never noticed anything similar to this.

I have applied what you told me Gizmo and it seems to work absolutely fine in Firefox, I've checked many intermediate pictures in both of my themes, logged in and out, and it all seems great! Thanks a lot for your help! In IE though there is still this thicker bottom border for guests. I personally only use Firefox but I know most of the visitors use IE.

I've had a look at the control fullsize files, but I couldn't find any code pertaining to display_image.
Do you reckon the extra br tag bmossavari told me about is causing trouble? If so in what file could I remove it?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Intermediate pictures display is different for guests
« Reply #7 on: August 22, 2006, 02:54:38 pm »

forget the br tag it should be there ;) it was my mistake ...

@gizmo: you rock :)
Logged
‍I don't answer to PM with support question
Please post your issue to related board

majay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Intermediate pictures display is different for guests
« Reply #8 on: August 22, 2006, 03:51:54 pm »

Oh ok then, thank you!

But about this IE border problem, do you think that can be fixed by editing one of my files or is that just due to one of IE's many flaws?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Intermediate pictures display is different for guests
« Reply #9 on: August 22, 2006, 05:26:58 pm »

:)
this time you need to add br tag to control fullsize plugin ...
I'm working on that ....
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Intermediate pictures display is different for guests
« Reply #10 on: August 22, 2006, 06:01:04 pm »

 :D once again br tag was innocent
here is the problem :
You need to remove title properties of a tag (I mean this <a href=...) that generated by fullsize access plugin , but in this way you will lose the hint (on mouse over hint)
to remove it you should open up plugins/control_fullsize/codebase.php
and change this (line 134)
Code: [Select]
$cpicdata['html'] = preg_replace('/alt=\".*\"/i','alt="'.$alt_text.'" title="'.$alt_text.'"',$cpicdata['html']);
with this
Code: [Select]
$cpicdata['html'] = preg_replace('/alt=\".*\"/i','alt="'.$alt_text.'"',$cpicdata['html']);
At the end this is not a template issue any more ::)
« Last Edit: August 22, 2006, 06:06:27 pm by bmossavari »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

majay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Intermediate pictures display is different for guests
« Reply #11 on: August 23, 2006, 12:36:25 am »

Thank you bmossavari, but it doesn't seem to work in IE. I've deleted the cache, cookies and rebooted my comp but there still is this border problem and the ALT message is there too. In Firefox however, the ALT message is gone.

That thick bottom border problem doesn't matter that much though, people probably haven't even noticed! Anyway thanks again for your help!
« Last Edit: August 24, 2006, 04:32:09 pm by Brek »
Logged
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 20 queries.