Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.