Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Klausimėlis dėl tarpo ;D

Parašė DJFainulka· 2009 Lap. 21 15:11:23
#1

Sveiki, turiu klausimėlį. Gal kas galės padėti ;D

1.Turiu bėdą. Nuo cellpic'o lieka tarpas iki linijos, pvz: http://i50.tinypic.com/302bcb7.jpg
Kaip panaikinu eilutę
<td class='contentcell'>


, nebelieka to tarpo, bet ir nebelieka linijos tos kuri eina aplink. Gal galima pakeisti kažkaip, kad neliktų to tarpo?

Parašė nuken· 2009 Lap. 21 15:11:04
#2

Rašyk visą kodą. :)

Parašė blist· 2009 Lap. 21 15:11:45
#3

nėra jokio <iframe> ?
1500 post`as :D

Redagavo blist· 2009 Lap. 21 15:11:16

Parašė DJFainulka· 2009 Lap. 21 15:11:19
#4

iframe nėra.
Visas kodas:
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%' class='bluemodule'>
<tr>
<td>
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".IMAGES."blue_smallheader_left.png' alt='icon_forum.png'/></td>
<td class='header' width='35'><img src='".IMAGES."icon_forum.png'/></td>
<td class='header' width='100%'>Forumai</td>
<td><img src='".IMAGES."blue_smallheader_right.png'/></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='contentcell'>
<table width='100%' border='0' cellpadding='0' cellspacing='2' class='frame'>
<tr>
<td width='100%'>
<table width='100%' border='0' cellpadding='0' cellspacing='0' class='forum'>
<tr>
<td class='navigationbar'>
<a href='pradzia.html' class='forum'>Forumai</a> /
<a href='".FORUM."viewforum.php?forum_id=".$fdata['forum_id']."' class='forum'>".$fdata['forum_name']."</a> / ".parsesmileys($tdata['thread_subject'])."&nbsp;";if ($tdata['thread_vip_sticky']) { echo "<img src='".IMAGES."badge_vip.png' title='Tema lipni!'>&nbsp;"; } if ($tdata['thread_sticky']) { echo "<img src='".THEME."forum/stickythread.gif' title='Tema lipni!'>&nbsp;"; }  if ($tdata['thread_locked']) { echo "<img src='".THEME."forum/folderlock.gif' title='Tema užrakinta!'>&nbsp;"; }  echo"
</td>
</tr>
</table> ";
 echo"
<table width='100%' border='0' cellpadding='3' cellspacing='0' class='forum'>
<tr>
<td width='80' rowspan='4' class='post'>
<b><a href='".BASEDIR."".$data['user_name']."-".$data['user_id']."' class='pagrindinis'>".$data['user_name']."</a></b><br>
<span class='userstatus'>";    
   


echo"</span><br>";
if ($data['user_avatar'] != "") {
      echo "<a href='".BASEDIR."".$data['user_name']."-".$data['user_id']."'><img src='".IMAGES."avatars/".$data['user_avatar']."' class='image' alt='' width='77' height='77'></a>\n";
} else {
echo"<a href='".BASEDIR."".$data['user_name']."-".$data['user_id']."'><img src='".IMAGES."noimage2.png' class='image' alt='' width='77' height='77'></a>";
} echo"<br>
</td>
<td colspan='4' class='post' height='37'>
<strong>".showdate("%d.%m.%Y %H:%M:%S",$data['post_datestamp'])."</strong>
</td>
</tr>
<tr>
<td colspan='4' height='83' class='firstpostcontent'>$message</td>
</tr>
<tr>
<td colspan='4' class='firstpostcontent'>".$data['user_sig']."
</td>
</tr>
<tr> ";


if (iMODERATORIUS) {

if($tdata['thread_sticky'] == 1){

echo"<td class='firstpostcontent'>
<div id=''>
<table border='0' cellspacing='0' cellpadding='0' width=''>
<tr>
<td width='20'><img src='/images/submitbutton_left_star.png' width='20' height='20' alt='submitbutton_left_locked.png'></td>
<td class='submitbuttoncell'>
<a href='".FUSION_SELF."?step=nonsticky&forum_id=$forum_id&amp;thread_id=$thread_id' class='pagrindinis'>Nelipni </a>
</td>
<td width='4'><img src='/images/submitbutton_right.png' width='4' height='20' alt=''></td>
</tr>
</table>
</div>
</td>";

}else{


echo"<td class='firstpostcontent'>
<div id=''>
<table border='0' cellspacing='0' cellpadding='0' width=''>
<tr>
<td width='20'><img src='/images/submitbutton_left_star.png' width='20' height='20' alt='submitbutton_left_locked.png'></td>
<td class='submitbuttoncell'>
<a href='".FUSION_SELF."?step=sticky&forum_id=$forum_id&amp;thread_id=$thread_id' class='pagrindinis'>Lipni </a>
</td>
<td width='4'><img src='/images/submitbutton_right.png' width='4' height='20' alt=''></td>
</tr>
</table>
</div>
</td>";
}
if($tdata['thread_locked'] == 1){

echo"<td class='firstpostcontent'>
<div id=''>
<table border='0' cellspacing='0' cellpadding='0' width=''>
<tr>
<td width='20'><img src='/images/submitbutton_left_locked.png' width='20' height='20' alt='submitbutton_left_locked.png'></td>
<td class='submitbuttoncell'>
<a href='".FUSION_SELF."?step=unlock&forum_id=$forum_id&amp;thread_id=$thread_id' class='pagrindinis'>Atrakinti </a>
</td>
<td width='4'><img src='/images/submitbutton_right.png' width='4' height='20' alt=''></td>
</tr>
</table>
</div>
</td>";

}else{


echo"<td class='firstpostcontent'>
<div id=''>
<table border='0' cellspacing='0' cellpadding='0' width=''>
<tr>
<td width='20'><img src='/images/submitbutton_left_locked.png' width='20' height='20' alt='submitbutton_left_locked.png'></td>
<td class='submitbuttoncell'>
<a href='".FUSION_SELF."?step=lock&forum_id=$forum_id&amp;thread_id=$thread_id' class='pagrindinis'>Užrakinti </a>
</td>
<td width='4'><img src='/images/submitbutton_right.png' width='4' height='20' alt=''></td>
</tr>
</table>
</div>
</td>";
}

}
if (($userdata['user_id'] == $data['post_author'] && $can_edit) || iMODERATORIUS) {
?>
<td class='firstpostcontent' height='10%'>
<div id=''>
<table border='0' cellspacing='0' cellpadding='0' width=''>
<tr>
<td width='20'><img src='/images/submitbutton_left_edit.png' width='20' height='20' alt='submitbutton_left_edit.png'></td>
<td class='submitbuttoncell'>
<? echo"<a href='".FORUM."post.php?action=edit&amp;forum_id=$forum_id&amp;thread_id=".$data['thread_id']."&amp;post_id=".$data['post_id']."' class='pagrindinis'>Redaguoti žinutę </a>"; ?>
</td>
<td width='4'><img src='/images/submitbutton_right.png' width='4' height='20' alt=''></td>
</tr>
</table>
</div>
</td>
<?
}
if (iMODERATORIUS) {
?>
<td class='firstpostcontent'><div align='right'>
<div id=''>
<table border='0' cellspacing='0' cellpadding='0' width=''>
<tr>
<td width='20'><img src='/images/submitbutton_left_delete.png' width='20' height='20' alt='submitbutton_left_delete.png'></td>
<td class='submitbuttoncell'>
<? echo"<a href='".FUSION_SELF."?step=delete&amp;forum_id=$forum_id&amp;thread_id=".$data['thread_id']."&amp;post_id=".$data['post_id']."' class='pagrindinis'>Trinti </a>"; ?>
</td>
<td width='4'><img src='/images/submitbutton_right.png' width='4' height='20' alt=''></td>
</tr>
</table>
</div>
</div>
</td>

</tr>
<?
 echo"<form name='moveform' method='post' action='".FUSION_SELF."?step=move&forum_id=$forum_id&amp;thread_id=$thread_id'>
     

    <tr>
        <td class='firstpostcontent'>&nbsp;</td>
        <td class='firstpostcontent' colspan='4'>
            <table cellpadding='0' cellspacing='0' border='0'>
            <tr>
                <td>
             
                   
                 
</td>
               "; ?>

<td>&nbsp;</td>
<td>
<?
echo"<table border='0' cellspacing='0' cellpadding='0' >
<tr>
<td><img src='/images/submitbutton_left_arrowright.png' width='20' height='20' alt='/images/submitbutton_left_arrowright.png'></td>
<td class='submitbuttoncell'>

<a href='/forumas/options.php?step=move&forum_id=$forum_id&amp;thread_id=$thread_id' class='pagrindinis'>Perkelti</a>
</td>
<td><img src='/images/submitbutton_right.png' width='4' height='20' alt=''></td>
</tr>
</table>
</td>
";
?>
<?
if($tdata['thread_vip_sticky'] == 1) {
echo"<td>&nbsp;</td>
<td>

<table border='0' cellspacing='0' cellpadding='0' width=''>
<tr>
<td width='20'><img src='/images/submitbutton_left_star.png' width='20' height='20' alt='submitbutton_left_locked.png'></td>
<td class='submitbuttoncell'>
<a href='".FUSION_SELF."?step=nonstickyVIP&forum_id=$forum_id&amp;thread_id=$thread_id' class='pagrindinis'>Nelipni VIP </a>
</td>
<td width='4'><img src='/images/submitbutton_right.png' width='4' height='20' alt=''></td>
</tr>
</table>
</td>

";
}else{
echo"<td>&nbsp;</td>
<td>

<table border='0' cellspacing='0' cellpadding='0' width=''>
<tr>
<td width='20'><img src='/images/submitbutton_left_star.png' width='20' height='20' alt='submitbutton_left_locked.png'></td>
<td class='submitbuttoncell'>
<a href='".FUSION_SELF."?step=stickyVIP&forum_id=$forum_id&amp;thread_id=$thread_id' class='pagrindinis'>Lipni VIP </a>
</td>
<td width='4'><img src='/images/submitbutton_right.png' width='4' height='20' alt=''></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</form>

";
}}
?>
<tr>
</tr>
</table>
<?
}else{
echo "<table width='100%' border='0' cellpadding='3' cellspacing='0' class='forum'>
<tr>
<td width='80' rowspan='4' class='postinfo'>
<b><a href='".BASEDIR."".$data['user_name']."-".$data['user_id']."' class='pagrindinis'>".$data['user_name']."</a></b><br>
<span class='userstatus'>";    
         $rangas = $data['user_level'];




echo"</span><br>";
if ($data['user_avatar'] != "") {
   echo "<a href='".BASEDIR."".$data['user_name']."-".$data['user_id']."'><img src='".IMAGES."avatars/".$data['user_avatar']."' class='image' alt='' width='77' height='77'></a>\n";
} else {
echo"<a href='".BASEDIR."".$data['user_name']."-".$data['user_id']."'><img src='".IMAGES."noimage2.png' class='image' alt='' width='77' height='77'></a>";
} echo"<br>
</td>
<td colspan='4' class='postinfo' height='37'>
<strong>".showdate("%d.%m.%Y %H:%M:%S",$data['post_datestamp'])."</strong>
</td>
</tr>
<tr>
<td colspan='4' height='83' class='postcontent'>$message</td>
</tr>
<tr>
<td colspan='4' class='postcontent'>".$data['user_sig']."
</td>
</tr>";
      

            if (($userdata['user_id'] == $data['post_author'] && $can_edit) || iMODERATORIUS) {
?>
<tr>
<td class='postcontent' height='10%'>
<div id=''>
<table border='0' cellspacing='0' cellpadding='0' width=''>
<tr>
<td width='20'><img src='/images/submitbutton_left_edit.png' width='20' height='20' alt='submitbutton_left_edit.png'></td>
<td class='submitbuttoncell'>
<? echo"<a href='".FORUM."post.php?action=edit&amp;forum_id=$forum_id&amp;thread_id=".$data['thread_id']."&amp;post_id=".$data['post_id']."' class='pagrindinis'>Redaguoti žinutę </a>"; ?>
</td>
<td width='4'><img src='/images/submitbutton_right.png' width='4' height='20' alt=''></td>

</tr>
</table>
</div>
</td>
<?
}
if (($userdata['user_id'] == $data['post_author']) || iMODERATORIUS){
?><td class='postcontent'><div align='right'>
<div id=''>
<table border='0' cellspacing='0' cellpadding='0' width=''>
<tr>
<td width='20'><img src='/images/submitbutton_left_delete.png' width='20' height='20' alt='submitbutton_left_delete.png'></td>
<td class='submitbuttoncell'>
<? echo"<a href='".FUSION_SELF."?step=deletep&amp;forum_id=$forum_id&amp;thread_id=".$data['thread_id']."&amp;post_id=".$data['post_id']."' class='pagrindinis'>Trinti </a>"; ?>
</td>
<td width='4'><img src='/images/submitbutton_right.png' width='4' height='20' alt=''></td>
</tr>
</table>
</div>
</div>
</td><?
} }}}}
echo"</tr>

</td>
</tr> ";
if (!$tdata['thread_locked'] && iMEMBER) {
echo"<tr>
<td>
<table cellpadding='2' width='100%'>
<tr>
<td>";


echo"<a href='/forumas/post.php?action=reply&amp;forum_id=$forum_id&amp;thread_id=$thread_id'><img src='/themes/ScFanai_2009/forum/reply.gif' alt='Atsakyti' style='border:0px;'></a>";
 
echo"</td>
</tr>
</table>
</td>
</tr>";
}
echo"</table>
</td>
</tr>
</table>
 ";




Kode pratryniau užklausas visokias, kad būtų trumpesnis.

Redagavo DJFainulka· 2009 Lap. 21 15:11:01

Parašė Impossibru· 2009 Lap. 21 16:11:14
#5

Geriau iš styles.css įdėk kodo dali šita td class='contentcell'

Parašė DJFainulka· 2009 Lap. 21 16:11:36
#6

.contentcell {
padding: 2px;
}


Ir dar vienas dalykas, kaip rašo postus, tas tarpas vis mažėja ir po to visai išnyksta ir pasidaro normaliai viskas.

Redagavo DJFainulka· 2009 Lap. 21 16:11:47