Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Problema del paskutiniai komentarai

Parašė newlifeboy· 2009 Sau. 11 13:01:13
#1

Sveiki idėjau panele paskutiniai komentarai ir ji man labai išsitampo ir nežinau kaip padaryt kad neišsitampytu va img




Redagavo newlifeboy· 2009 Sau. 11 13:01:57

Parašė ex-it· 2009 Sau. 11 13:01:26
#2

width pasidaryk, kokio reikia.

Parašė newlifeboy· 2009 Sau. 11 14:01:43
#3

nustatau ji bet jis tokio pat dydzio lieka issiplietes tik langeliai sumazeja

Parašė ex-it· 2009 Sau. 11 14:01:03
#4

pametek koda.

Parašė newlifeboy· 2009 Sau. 11 14:01:41
#5

opentable("Paskutiniai Komentarai");
$limit = 10;
$result = dbquery("SELECT * FROM ".$db_prefix."comments LEFT JOIN ".$db_prefix."users ON comment_name = user_id ORDER BY comment_datestamp DESC LIMIT 0,$limit");
if (dbrows($result)) {
while ($data = dbarray($result)) {
if ($data['comment_type'] == "U") {
$place = BASEDIR."profile.php?lookup=".$data['comment_item_id'];
} elseif ($data['comment_type'] == "N") {
$place = BASEDIR."news.php?readmore=".$data['comment_item_id'];
} elseif ($data['comment_type'] == "A") {
$place = BASEDIR."readarticle.php?article_id=".$data['comment_item_id'];
} elseif ($data['comment_type'] == "P") {
$place = BASEDIR."photogallery.php?photo_id=".$data['comment_item_id'];
} elseif ($data['comment_type'] == "C") {
$place = BASEDIR."viewpage.php?page_id=".$data['comment_item_id'];
}
echo "<table style='border:1px solid #000;' width='100%'>
<tr>
<td><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a> ".(iADMIN && eregi("C",$userdata['user_rights']) ? " <b>IP:</b> ".$data['comment_ip'] : "")."</td>
</tr>
<tr>
<td>".($data['comment_smileys'] == "1" ? parseubb(parsesmileys(nl2br($data['comment_message']))) : parseubb(nl2br($data['comment_message'])))."</td>
</tr>
<tr>
<td>".(iADMIN && eregi("C",$userdata['user_rights']) ? "<a href='".ADMIN."comments.php$aidlink&step=delete&comment_id=".$data['comment_id']."&ctype=".$data['comment_type']."&cid=".$data['comment_item_id']."'>Trinti</a> - <a href='".ADMIN."comments.php$aidlink&step=edit&comment_id=".$data['comment_id']."&ctype=".$data['comment_type']."&cid=".$data['comment_item_id']."'>Keisti</a> - " : "")."<a href='$place'>Žiūrėti</a></td>
</tr>
</table><br>\n";
}
} else {
echo "<center>Komentarų nėra</center>\n";
}
closetable();

Parašė newlifeboy· 2009 Sau. 11 14:01:34
#6

opentable("Paskutiniai Komentarai");
$limit = 10;
$result = dbquery("SELECT * FROM ".$db_prefix."comments LEFT JOIN ".$db_prefix."users ON comment_name = user_id ORDER BY comment_datestamp DESC LIMIT 0,$limit");
if (dbrows($result)) {
while ($data = dbarray($result)) {
if ($data['comment_type'] == "U") {
$place = BASEDIR."profile.php?lookup=".$data['comment_item_id'];
} elseif ($data['comment_type'] == "N") {
$place = BASEDIR."news.php?readmore=".$data['comment_item_id'];
} elseif ($data['comment_type'] == "A") {
$place = BASEDIR."readarticle.php?article_id=".$data['comment_item_id'];
} elseif ($data['comment_type'] == "P") {
$place = BASEDIR."photogallery.php?photo_id=".$data['comment_item_id'];
} elseif ($data['comment_type'] == "C") {
$place = BASEDIR."viewpage.php?page_id=".$data['comment_item_id'];
}
echo "<table style='border:1px solid #000;' width='50%'>
<tr>
<td><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a> ".(iADMIN && eregi("C",$userdata['user_rights']) ? " <b>IP:</b> ".$data['comment_ip'] : "")."</td>
</tr>
<tr>
<td>".($data['comment_smileys'] == "1" ? parseubb(parsesmileys(nl2br($data['comment_message']))) : parseubb(nl2br($data['comment_message'])))."</td>
</tr>
<tr>
<td>".(iADMIN && eregi("C",$userdata['user_rights']) ? "<a href='".ADMIN."comments.php$aidlink&step=delete&comment_id=".$data['comment_id']."&ctype=".$data['comment_type']."&cid=".$data['comment_item_id']."'>Trinti</a> - <a href='".ADMIN."comments.php$aidlink&step=edit&comment_id=".$data['comment_id']."&ctype=".$data['comment_type']."&cid=".$data['comment_item_id']."'>Keisti</a> - " : "")."<a href='$place'>Žiūrėti</a></td>
</tr>
</table><br>\n";
}
} else {
echo "<center>Komentarų nėra</center>\n";
}
closetable();




Parašė ex-it· 2009 Sau. 11 14:01:04
#7

Prieš opentable("Paskutiniai Komentarai");
echo "<table width='50%'>";

Po closetable();
echo "</table>";

Parašė newlifeboy· 2009 Sau. 11 14:01:33
#8

db isvis visa puslapi istampe :|

Parašė ex-it· 2009 Sau. 11 14:01:56
#9

Nezinau, tada..

Parašė newlifeboy· 2009 Sau. 11 15:01:04
#10

na dekui kad stengiais ;)

Parašė ex-it· 2009 Sau. 11 15:01:52
#11

Man asmeniskai niekas neissitampo ir normaliai viska rodo ;)

Parašė Niger· 2009 Sau. 11 15:01:47
#12

ex-it parašė:
Man asmeniskai niekas neissitampo ir normaliai viska rodo ;)


Pas mane ta patibeda, bet tingiu tvarkyt :D