coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: digitalravi on August 23, 2006, 12:18:01 AM

Title: Table Width
Post by: digitalravi on August 23, 2006, 12:18:01 AM
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
Title: Re: Table Width
Post by: Nibbler on August 23, 2006, 12:19:36 AM
Please take a look at your config page and review the manual.
Title: Re: Table Width
Post by: digitalravi on August 23, 2006, 02:29:07 AM
I have modified the width in the Config section, and I am still faced with the same issue..
Title: Re: Table Width
Post by: Joachim Müller on August 23, 2006, 04:53:05 AM
What needs to be wider or narrower?
You have 6 Blocks there:

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 (http://forum.coppermine-gallery.net/index.php?topic=27407.0)". Alternatively, you could of course edit Coppermine's core code that composes the pic info data.
Title: Re: Table Width
Post by: digitalravi on August 23, 2006, 04:10:11 PM
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"
Title: Re: Table Width
Post by: Joachim Müller on August 23, 2006, 07:08:22 PM
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.
Title: Re: Table Width
Post by: digitalravi on August 23, 2006, 07:27:50 PM
Thank you...