coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: D2K on March 06, 2008, 02:01:11 PM

Title: cpmfetch image border
Post by: D2K on March 06, 2008, 02:01:11 PM
Hello guys,

first of all, thank you for this wonderful mod/hack or whatever you call it :p It just works perfectly.
However, im stuck with ONE small issue:

There is a border around the images...

Now don't think I just saw it and start complaining..I searched this forums and I tried hard to remove it..(for 1h now).
But no matter what I do, there still is that annoying border.

So let me give you the code im using to include cpmfetch, and the CSS code:

<?php
  
include "./../gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./../gallery/cpmfetch/cpmfetch_config.php");
  
$options = array("imagesize" => "int""imagelink" => "int""imageheight" => "145""imagewidth"=>"190""imageStyle" => "cpmimage""alttag"=> "{{pTitle}}""tablestyle" => "cpmimage");
  
$objCpm->cpm_viewRandomMediaFrom("",13$options);
  
$objCpm->cpm_close();
?>


and the css

.cpmimage{
border: none;
}
a img {
border: none;
}


I tried it all, but nothing seems to work. I hope you can help me out.

PS: Normally, when I add links to my pictures on my website, there is no border (without me doing anything).
Title: Re: cpmfetch image border
Post by: Nibbler on March 06, 2008, 02:09:03 PM
Post a link to where you are using it.
Title: Re: cpmfetch image border
Post by: D2K on March 06, 2008, 02:28:48 PM
OK, I found the problem haha. I just removed an "id=" tag which I thought wouldn't change anything, but then it did :D

anyways, now one last problem: how can I add 1 or 2 extra space between the images?

and thank you nibbler for the fast reply. Very appreciated.
Title: Re: cpmfetch image border
Post by: Nibbler on March 06, 2008, 02:29:54 PM
Add some padding. If you want details post a link.
Title: Re: cpmfetch image border
Post by: D2K on March 06, 2008, 02:51:09 PM
And where should I add paddings? And how to do this...I just use MS Frontpage to realize things I do. So I'm really clueless. Could give me a bit more details please?
And don't want to post a link right now as I'm still building my site and want to keep users away til the "Grand Opening".

But once again, thanks for the quick reply; just could you be a bit more specific? Sorry for being so demanding. Thank You :)
Title: Re: cpmfetch image border
Post by: Nibbler on March 06, 2008, 02:57:40 PM
Something like this:


.cpmimage{
padding: 5px;
}
Title: Re: cpmfetch image border
Post by: D2K on March 06, 2008, 03:10:51 PM
hey, i added the padding to my css under cpmimage, but nothing seems to be changing. there is still the same amount of space between the images, no matter to what value i change it too. what am i doing wrong..?
Title: Re: cpmfetch image border
Post by: Nibbler on March 06, 2008, 03:32:45 PM
Can't tell without seeing the code, sorry.
Title: Re: cpmfetch image border
Post by: D2K on March 06, 2008, 03:40:05 PM
ok so here is my html (with cpmfetch) and css code:

HTML:
<table border="0" cellpadding="0" cellspacing="0" width="630">
<tr>
<td width="14" bgcolor="#EEEEEE">&nbsp;</td>
<td width="601" bgcolor="#EEEEEE" valign="top">
<p align="center"><?php
  
include "./../gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./../gallery/cpmfetch/cpmfetch_config.php");
  
$options = array("imagesize" => "int""imagelink" => "int""imageheight" => "145""imagewidth"=>"190""imageStyle" => "cpmimage""alttag"=> "{{pTitle}}""tablestyle" => "cpmimage""cellstyle" => "cpmimage");
  
$objCpm->cpm_viewRandomMediaFrom("",13$options);
  
$objCpm->cpm_close();
?>
</td>
<td class="content" width="15" bgcolor="#EEEEEE" valign="top" align="right">

&nbsp;</td>
</tr>
</table>


and my css code:
.cpmimage{
border: none;
padding: 15px;
}


hope this helps and hope you can find the problem. thanks a lot nibbler.
Title: Re: cpmfetch image border
Post by: Nibbler on March 06, 2008, 03:58:53 PM
I need the output, not the source.