coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: scifirocket21 on March 08, 2007, 07:00:06 AM

Title: remove link border (was frame)
Post by: scifirocket21 on March 08, 2007, 07:00:06 AM
how can i remove the link frame around the photo generated by cpmFetch?  im sure its a css thing, but I'm not sure what option to use or what css syntax to use.  any help you be great. 

here is the image: http://mydpnet.com/test.php

i want to remove the blue frame around the image.
Title: Re: remove link frame
Post by: vuud on March 08, 2007, 07:11:40 AM
Quote from: scifirocket21 on March 08, 2007, 07:00:06 AM
how can i remove the link frame around the photo generated by cpmFetch?  im sure its a css thing, but I'm not sure what option to use or what css syntax to use.  any help you be great. 

here is the image: http://mydpnet.com/test.php

i want to remove the blue frame around the image.

Don't look at it in Internet Explorer :D

Seriously though it is an IE specific thing.  But what you want to do is turn off the border on img tags in CSS.

I am too tired / weary of fielding posts today - but I have a page that could help:

http://www.fistfullofcode.com/projects/copperminefetch/tips.php

It does not show how to remove the border, but you should get the idea of how to manipulate the border / img in css and cpmfetch.

I am confident you will  be able to work it out from there...

If not, try

http://www.google.com/search?hl=en&q=css+removing+blue+border+from+images&btnG=Google+Search

G'luck



Title: Re: remove link border (was frame)
Post by: scifirocket21 on March 08, 2007, 07:21:12 AM
i figured it out.  i was using linkstyle instead of image style
Title: Re: remove link border (was frame)
Post by: Moumentai on April 20, 2007, 09:01:57 PM
Could you please explain how you solved this?
Title: Re: remove link border (was frame)
Post by: scifirocket21 on February 20, 2008, 06:53:38 AM
ok, its been almost a year, and i'm having problems with this again.

the following code should remove the blue hyperlink boarder around the image, should it now?
<style type="text/css">
teststyle {
border-style: none;
}
</style>
<?php
  
include "photos/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("photos/cpmfetch/cpmfetch_config.php");
$options = array("imageStyle" => "teststyle");
  
$objCpm->cpm_viewLastAddedMedia(1,4,$options);
  
$objCpm->cpm_close();
?>

Title: Re: remove link border (was frame)
Post by: Nibbler on February 20, 2008, 01:58:34 PM
No. The class name in the CSS needs to begin with a dot to indicate it's a class.


.teststyle {
border-style: none;
}
Title: Re: remove link border (was frame)
Post by: scifirocket21 on February 20, 2008, 10:41:23 PM
<style type="text/css">
.teststyle {
border-style: none;
}
</style>
<?php
  
include "photos/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("photos/cpmfetch/cpmfetch_config.php");
$options = array("imageStyle" => ".teststyle");
  
$objCpm->cpm_viewLastAddedMedia(1,4,$options);
  
$objCpm->cpm_close();
?>



that didn't work either.  i have tried other css styles other than just boarder formats, and they don't appear to work.  for some reason, I can't get my scrip to read the script files.
Title: Re: remove link border (was frame)
Post by: Nibbler on February 20, 2008, 10:58:17 PM
Only change what I told you to change. Nothing else.
Title: Re: remove link border (was frame)
Post by: scifirocket21 on February 20, 2008, 11:02:20 PM
fixed
Title: Re: remove link border (was frame)
Post by: scifirocket21 on February 21, 2008, 12:45:46 AM
one last question...
where can I find all the various functions for the options array that will describe the different functions that can be applied to things like the "subtitle" function and such?  i tried the documentation, but it didnt provide these specifics.
Title: Re: remove link border (was frame)
Post by: Joachim Müller on February 21, 2008, 07:43:52 AM
We have a strict "one question per thread" policy. You agreed to respect it when signing up.