Table Width Table Width
 

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

Table Width

Started by digitalravi, August 23, 2006, 12:18:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

digitalravi

How do I change the width for the screen which shows individual pictures:

http://www.ravijaundoo.com/swami_album/displayimage.php?album=1&pos=0

And also the screen for login:

http://www.ravijaundoo.com/swami_album/displayimage.php?album=1&pos=0


For some reason the "URL:" displays "http://coppermine.sourceforge.net/displayimage.php?pos=-2" under the image infomration

Nibbler

Please take a look at your config page and review the manual.

digitalravi

#2
I have modified the width in the Config section, and I am still faced with the same issue..

Joachim Müller

What needs to be wider or narrower?
You have 6 Blocks there:
  • breadcrumb
  • image navigation
  • intermediate pic
  • film strip
  • rating box
  • pic info

When setting the with of all items to be ridiculously narrow in config, the content of the tables takes up the minimum width that is absolutely necessary to display the tables's content. That's what you did - your content width setting is too narrow. Chose 100% instead and wrap the {GALLERY}-token in themes/yourtheme/theme.php into a div with a narrow width attribute., like this:<div style="width:200px">
    {GALLERY}
</div>

This is not an inherent issue to coppermine, but to how browsers handle tables. Imagine a code like this:<table border="1">
  <tr>
    <td width="100">
      <img src="some/pic/with/wider/dimensions.jpg" border="0" alt="" width="200" height="200" />
    </td>
  </tr>
</table>
Although the width of the table cell is set to 100 pixels only, the content of the table (in this example, a pic that is 200 pixels wide) stretches the actual cell width to 200 pixels. This is expected behaviour.

Additionally, when doing as I suggested above, you may want to remove some info from the pic info section that makes the bottom pic info table so wide. There's a plugin available that will determine what is being displayed in the pic info section: "Filter & Sort File Information Fields on Image Display Page". Alternatively, you could of course edit Coppermine's core code that composes the pic info data.

digitalravi

#4
How can I adjust the width of the "Rate this file" and "Add your comment section"


Also is it possible to resize the table for "Report to administrator"

Joachim Müller

Quote from: digitalravi on August 23, 2006, 04:10:11 PM
How can I adjust the width of the "Rate this file"
Obviously, the width is determined by the width and number of star images. Reduce the width of those images (by creating custom star icons) and subsequently your table cells will get narrower.

Quote from: digitalravi on August 23, 2006, 04:10:11 PM
How can I adjust the [...] "Add your comment section"
Same thing as above: reduce the size of those smilies, or turn smilies off completely. Allowing comments by anonymous visitors isn't recommended anyway...

Quote from: digitalravi on August 23, 2006, 04:10:11 PMAlso is it possible to resize the table for "Report to administrator"
We have a "one question per thread" that you agreed to respect when signing up. Start a separate thread for this question.

digitalravi