Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Siuntiniai headeryje.
Parašė SpekT· 2008 Lap. 8 18:11:22
#1
Sveiki, ka gi, paskaiciau vienoje temo kaip isideti siuntiniu i headery, Taigi pameginau, ir gavosi va sitaip
Ka man reike kode pakesiti, kad kur top siuntiniai butu, top iun tiniai, o ne nauji. Stai Kodas
echo"<td width='40%'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</td><td width='60%' style='padding-left:80px;' >";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</tr>
</table>";
echo "</td></tr>
<tr></tr>
<tr><td height=31></td></tr>
</table>
";
Dekui uz pagalba ;)
Redagavo MaFetas· 2008 Lap. 9 17:11:33
Parašė ---· 2008 Lap. 8 18:11:58
#2
LOL tai ir dek viena pop kita naujausiu siuntiniu panele :]
Parašė SpekT· 2008 Lap. 8 18:11:57
#3
Tj tu nesupranti? Tj sakau. va ten buvo toks kodas pateiktas, ka jame pakoreguot kad butu nauji siuntiniai ir top siuntiniai? :)
Parašė SpekT· 2008 Lap. 8 21:11:55
#4
Atsakymo nesulauksiu kogero :/:?
Parašė SpekT· 2008 Lap. 9 14:11:40
#5
Jau antra diena atsakymo negaunu :? ;D
Parašė Ginciuss· 2008 Lap. 9 14:11:55
#6
Nu tai vienam perdaryk į TOP, o ne į abi naujausios.
Ir nefloodink :)
Parašė viva· 2008 Lap. 9 14:11:20
#7
jis ziuriu nesigaudo :D
Parašė SpekT· 2008 Lap. 9 17:11:17
#8
Gincius, Tai ir as kalusiu, kaip padaryti kad butu top o ne New?:?
Parašė MaFetas· 2008 Lap. 9 17:11:12
#9
echo"<td width='40%'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</td><td width='60%' style='padding-left:80px;' >";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</tr>
</table>";
echo "</td></tr>
<tr></tr>
<tr><td height=31></td></tr>
</table>
";
Nėr už ką :)
Parašė SpekT· 2008 Lap. 9 20:11:41
#10
O, labai padejau :) Dekui :** ;D