Jump to content

[SOLVED] Help in removing thumbnail border


littlebeagle

Recommended Posts

Hi, I downloaded the free version of Freeze Greetings, but I can't seem to remove the border from around the thumbnails. 

-- go here http://writtenonmyheart.com/ecards/index.php 

-- and then enter into the category "Shabbat Shalom" for example.

Once in that category, you'll see there's a border around the thumbnail.  Anywhere in the script (there are only three  .php files) that says border=1, I have changed to border=0, but it doesn't make any difference.  So I'm thinking I need to insert something somewhere.  Any ideas? 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/73088-solved-help-in-removing-thumbnail-border/
Share on other sites

Find from the script that creates the line below and add border="0" to the img tag.

 

<a href='?action=detail&category=Shabbat Shalom&id=1192254819'><img src='images/th-sendingshalom.jpg' alt=''></a>

 

to

 

<a href='?action=detail&category=Shabbat Shalom&id=1192254819'><img src='images/th-sendingshalom.jpg' alt='' border="0"></a>

I've seen that in the "view source" before... but that script just does not exist in the .php files I have on my server.  So something is being generated somehow.  I'm not sure how to fix it.

 

i'm attaching the original files I downloaded.

 

[attachment deleted by admin]

Thanks, AndyB...  The only place I see reference to detail&category is this:

 

echo " <a href='?action=detail&category=$category&id=$p[5]'><img src='$p[1]' alt='$val'></a> ";
}
}
$pages=$s/$listings_per_page;
$pages1=round($pages, 2);
$p= explode(".", $pages1);
$pcount=count($p);
$ext=$p[$pcount-2];
if ($ext!=0) {
$num=$p[0]+1;
}

else {
$num=$p[0];
}

 

and

 

$filename = "file.txt";
$ecard_path = str_replace ("\n","<br>", $ecard_path);
$ecard_path = str_replace (";", ",", $ecard_path);
$ecard_path = stripslashes ($ecard_path);
$thumbnail = str_replace ("<",",", $thumbnail);
$thumbnail = str_replace (";",",", $thumbnail);
$category = str_replace (";", ",", $category);
$cat = str_replace (";", ",", $cat);
$cat = stripslashes ($cat);
$thumbnail = stripslashes ($thumbnail);
$category = stripslashes ($category);
$copyright = "www.scriptsez.net";
if($action == "detail" && "cat" && "id"){
$user = file("file.txt");
if(strlen($id) <= 0){

 

Both of these references are in the main.php file.  There aren't any detail&categories references in any of the other files.

 

There are only 3 php files included with this. I'm used to there being many more files.

This only has main.php, index.php, and category.php .... then some .txt files.

 

 

You can either change the line:

 

echo " <a href='?action=detail&category=$category&id=$p[5]'><img src='$p[1]' alt='$val'></a> ";

 

To

 

echo " <a href='?action=detail&category=$category&id=$p[5]'><img src='$p[1]' alt='$val' border='0'></a> ";

 

Or, you could simply add the following definition in the CSS part:

 

a img { border: 0px; }

Yay!!  Thanks!!!  :D

 

This worked:

 

Changing:

echo " <a href='?action=detail&category=$category&id=$p[5]'><img src='$p[1]' alt='$val' border='0'></a> ";

 

to

 

echo " <a href='?action=detail&category=$category&id=$p[5]'><img src='$p[1]' alt='$val' border='0'></a> ";

 

Thanks again, everyone!!!!!!!!!!  ;D

sorry- error in my last post.  accidentally copy/paseted same code 2x.

 

here's the fix:

 

Yay!!  Thanks!!!  Cheesy

 

This worked:

 

Changing:

Code:

 

echo " <a href='?action=detail&category=$category&id=$p[5]'><img src='$p[1]' alt='$val'></a> ";

 

 

to

 

echo " <a href='?action=detail&category=$category&id=$p[5]'><img src='$p[1]' alt='$val' border='0'></a> ";

 

 

Thanks again, everyone!!!!!!!!!!  Grin

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.