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: How to set the table cell width  (Read 11190 times)

0 Members and 1 Guest are viewing this topic.

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
How to set the table cell width
« on: August 26, 2006, 11:15:47 pm »

if I had more control over the positioning of say 6 images of different sizes I could make drop shadows or frames around images as a background image.

Is this something that CpmFetch 2.0 will have...so say one images is really thin it will still have to occupy a space of say 50 pixels in width regardless of how thin/wide it is?

This might be possible with CpmFetch 1 but I havent figured it out.

You can see here at the bottom I have used cpmfetch a lot.

http://www.amateurillustrator.com/

Cheers

Nick
« Last Edit: August 27, 2006, 09:12:07 pm by vuud »
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
How to set the table cell width
« Reply #1 on: August 27, 2006, 02:55:48 am »

if I had more control over the positioning of say 6 images of different sizes I could make drop shadows or frames around images as a background image.

Is this something that CpmFetch 2.0 will have...so say one images is really thin it will still have to occupy a space of say 50 pixels in width regardless of how thin/wide it is?

This might be possible with CpmFetch 1 but I havent figured it out.

You can see here at the bottom I have used cpmfetch a lot.

http://www.amateurillustrator.com/

Cheers

Nick

Do you mean to stretch the image to all be the same width?  Or just force the "cell" it occupies to be that wide?

Your site rocks!  I have seen some really cool sites using cpmfetch in the past few days... I should be writing them down!

Vuud

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
How to set the table cell width
« Reply #2 on: August 27, 2006, 04:39:35 am »

Hi I mean to force the cell to be a certain width and height actually, is there a way to do this?

Thanks for the nice words about my site :)
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
How to set the table cell width
« Reply #3 on: August 27, 2006, 06:27:50 am »

Hi I mean to force the cell to be a certain width and height actually, is there a way to do this?

Thanks for the nice words about my site :)

I believe you can in the new and old versions by passing the cellattribute via the options array...

Here is an example...

Code: [Select]
$styleguide = array(
"linkstyle" => "photoclip",
"alttag" => "Rated: %V",
"subtitle" => "Rated: %V",
"imagestyle" => "photoclip",
"imagesize" => 'thumb',
"cellattributes" => array('align' => 'right','width' => '200'));

$objCpm->cpm_viewRandomTopRatedMediaFrom ("", 1, 5, $styleguide);

Don't feel bad, I am not sure I ever documented it as a feature.  Silly me.

Anything stuffed in the cellattributes will be inserted into each <TD> tag

Hope that works out for you.

Vuud

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
How to set the table cell width
« Reply #4 on: August 27, 2006, 03:33:51 pm »

cheers

thats working great

is there any way to have the text adjusted seperately from the image....so say the image vertically adjusts to the center while the text adjusts to the bottom.

Cheers

Nick
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
How to set the table cell width
« Reply #5 on: August 27, 2006, 04:21:40 pm »

cheers

thats working great

is there any way to have the text adjusted seperately from the image....so say the image vertically adjusts to the center while the text adjusts to the bottom.

Cheers

Nick

that one I don't know - if you tell the image to align to the top and the text to the bottom?  Maybe something in CSS?  Got no idea on that one.  They are both inside the same <TD> so that puts a damper on things I'd say. 
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
How to set the table cell width
« Reply #6 on: August 27, 2006, 07:06:33 pm »

yeah I gave up trying to change the text seperately.

I have updated the homepage with the cell attributes stuff:

check it out

http://www.amateurillustrator.com/

thanks for the help  ;D
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
How to set the table cell width
« Reply #7 on: August 27, 2006, 09:11:10 pm »

yeah I gave up trying to change the text seperately.

I have updated the homepage with the cell attributes stuff:

check it out

http://www.amateurillustrator.com/

thanks for the help  ;D

That actually looks much much better!  Nice job!
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: How to set the table cell width
« Reply #8 on: August 28, 2006, 02:58:25 am »

cheers,

it took a lot of trial and error getting images to align with my background images...so many different image sizes and slightly unpredictable positioning....but worth the effort in the end because it looks a lot more professional.

best,

Nick
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: How to set the table cell width
« Reply #9 on: August 28, 2006, 03:49:18 am »

cheers,

it took a lot of trial and error getting images to align with my background images...so many different image sizes and slightly unpredictable positioning....but worth the effort in the end because it looks a lot more professional.

best,

Nick

I find it sometimes helps to normalize the image width when they get displayed...  set the images to all scale to say 100px.  But yours looks fine as it is :D
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 19 queries.