FAP CUSTOMIZATION - Trying To Get Rid Of The Border Around My Thumbs


Subject: FAP CUSTOMIZATION - Trying To Get Rid Of The Border Around My Thumbs
With some help, I was able to display some random photos from my photo album onto my home page outside of the phpbb root dir. I have a slight problem with the blue border that surrounds the thumbnails, and I need some help removing the border. I was told that I need to insert
Code: [Download] [Hide]
  1. border="0" 

into the code but I don't know exactly where to place it. My code looks like this
Code: [Download] [Hide]
  1. <?  
  2.  
  3. if(!defined('IN_PHPBB'))  
  4. {  
  5. define('IN_PHPBB', true);  
  6. $phpbb_root_path = './phpbb/'; //set your path  
  7. $album_root_path = $phpbb_root_path . 'album_mod/';  
  8. include($phpbb_root_path . 'extension.inc');  
  9. include($phpbb_root_path . 'common.'.$phpEx);  
  10. }  
  11. else  
  12. {  
  13. $album_root_path = $phpbb_root_path . 'album_mod/';  
  14. }  
  15.  
  16.  
  17. $language = $board_config['default_lang'];  
  18.  
  19. if ( !file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_album_main.'.$phpEx) )  
  20. {  
  21. $language = 'english'; // set your default language  
  22. }  
  23.  
  24. include($phpbb_root_path . 'language/lang_' . $language . '/lang_album_main.' . $phpEx);  
  25.  
  26.  
  27. print "<table align=center>";  
  28. print "<tr><th align='center' colspan='3'>". $lang['Random_Pics'] ."</th></tr>";  
  29. print "<tr>";  
  30.  
  31. for ($i=0;$i<3;$i++) //set number of pictures for the displayed line  
  32. {  
  33. while ($cat['cat_view_level'] != '-1')  
  34. {  
  35. $sql = "SELECT pic_id, pic_desc, pic_cat_id FROM ". ALBUM_TABLE ." ORDER BY RAND() LIMIT 1";  
  36. $result = $db->sql_query($sql) or die ("SQL Error");  
  37. $row = $db->sql_fetchrow($result);  
  38. $sql = "SELECT * FROM ". ALBUM_CAT_TABLE ." WHERE cat_id = '". $row['pic_cat_id'] ."'";  
  39. $result = $db->sql_query($sql) or die ("SQL Error");  
  40. $cat = $db->sql_fetchrow($result);  
  41. }  
  42. $cat['cat_view_level'] = '0';  
  43. print "<td valign='top'><table><tr><td align='center'>" . $row['pic_title'] . "<br /></td></tr><tr><td align='center'><a href='". append_sid($phpbb_root_path ."album_showpage.". $phpEx ."?pic_id=" . $row['pic_id']) ."'><img alt='" . $row['pic_desc'] . "' src='". $phpbb_root_path ."album_thumbnail.". $phpEx ."?pic_id=" . $row['pic_id'] . "'></a></td></tr></table></td>";  
  44. }  
  45.  
  46. print "</tr>";  
  47. print "</table>";  
  48.  
  49. print "<table align=center>";  
  50.  
  51. print "<tr>";  
  52.  
  53. for ($i=0;$i<3;$i++) //set number of pictures for the displayed line  
  54. {  
  55. while ($cat['cat_view_level'] != '-1')  
  56. {  
  57. $sql = "SELECT pic_id, pic_desc, pic_cat_id FROM ". ALBUM_TABLE ." ORDER BY RAND() LIMIT 1";  
  58. $result = $db->sql_query($sql) or die ("SQL Error");  
  59. $row = $db->sql_fetchrow($result);  
  60. $sql = "SELECT * FROM ". ALBUM_CAT_TABLE ." WHERE cat_id = '". $row['pic_cat_id'] ."'";  
  61. $result = $db->sql_query($sql) or die ("SQL Error");  
  62. $cat = $db->sql_fetchrow($result);  
  63. }  
  64. $cat['cat_view_level'] = '0';  
  65. print "<td valign='top'><table><tr><td align='center'>" . $row['pic_title'] . "<br /></td></tr><tr><td align='center'><a href='". append_sid($phpbb_root_path ."album_showpage.". $phpEx ."?pic_id=" . $row['pic_id']) ."'><img alt='" . $row['pic_desc'] . "' src='". $phpbb_root_path ."album_thumbnail.". $phpEx ."?pic_id=" . $row['pic_id'] . "'></a></td></tr></table></td>";  
  66. }  
  67.  
  68. print "</tr>";  
  69. print "</table>";  
  70. ?>  
  71.  


I would greatly appreciate any help solving this problem.
Thank you

Profile PM  
Subject: Re: Trying To Get Rid Of The Border Around My Thumbs
Add this to your css:
Code: [Download] [Hide]
  1. img {border:0px;} 

Subject: Re: Trying To Get Rid Of The Border Around My Thumbs
Thank you very much, it worked!

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.3987s (PHP: 4% SQL: 96%)
SQL queries: 10 - Debug Off - GZIP Enabled