littlebeagle Posted October 13, 2007 Share Posted October 13, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/73088-solved-help-in-removing-thumbnail-border/ Share on other sites More sharing options...
esukf Posted October 13, 2007 Share Posted October 13, 2007 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> Quote Link to comment https://forums.phpfreaks.com/topic/73088-solved-help-in-removing-thumbnail-border/#findComment-368602 Share on other sites More sharing options...
littlebeagle Posted October 13, 2007 Author Share Posted October 13, 2007 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] Quote Link to comment https://forums.phpfreaks.com/topic/73088-solved-help-in-removing-thumbnail-border/#findComment-368604 Share on other sites More sharing options...
AndyB Posted October 13, 2007 Share Posted October 13, 2007 Look through the php scripts to find action=detail&category and that's where the problem html line is being generated. Adjust to suit. Quote Link to comment https://forums.phpfreaks.com/topic/73088-solved-help-in-removing-thumbnail-border/#findComment-368606 Share on other sites More sharing options...
littlebeagle Posted October 13, 2007 Author Share Posted October 13, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/73088-solved-help-in-removing-thumbnail-border/#findComment-368614 Share on other sites More sharing options...
Rithiur Posted October 13, 2007 Share Posted October 13, 2007 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; } Quote Link to comment https://forums.phpfreaks.com/topic/73088-solved-help-in-removing-thumbnail-border/#findComment-368625 Share on other sites More sharing options...
lighton Posted October 13, 2007 Share Posted October 13, 2007 or just do <img ...... style="border:none;" /> Quote Link to comment https://forums.phpfreaks.com/topic/73088-solved-help-in-removing-thumbnail-border/#findComment-368643 Share on other sites More sharing options...
littlebeagle Posted October 13, 2007 Author Share Posted October 13, 2007 Yay!! Thanks!!! 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!!!!!!!!!! Quote Link to comment https://forums.phpfreaks.com/topic/73088-solved-help-in-removing-thumbnail-border/#findComment-368653 Share on other sites More sharing options...
littlebeagle Posted October 14, 2007 Author Share Posted October 14, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/73088-solved-help-in-removing-thumbnail-border/#findComment-369242 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.