Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Dainos į straipsnius.

Parašė Dutis_· 2010 Bir. 20 13:06:00
#1

Sveiki,
Iskilo tokia problemele,
turiu dizaina, rodo naujausias bei populiariausias dainas, man reiktu pakeisti jog rodytu i naujausi bei populiariausi straipsniai,ar butu imanoma?
Stai tokie 2 failai yra viduje.

"nauji"
<?php
global $userdata, $aidlink, $locale, $db_prefix, $theme_width, $result;

openside_panel($locale['001']);
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table align='center' width='150' cellpadding='0' cellspacing='0'>";
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']."' style='color:#000;'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right' style='color:#000;'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
closeside_panel();
?>




ir
"pop"
<?php
global $userdata, $aidlink, $locale, $db_prefix, $theme_width, $result;

openside_panel($locale['001']);
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table align='center' width='150' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<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']."' style='color:#000;'>$itemsubject</a></td>\n
<td align='right' style='color:#000;'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside_panel();
?>



Parašė MaTrica· 2010 Bir. 20 13:06:58
#2

kokia tavo svetaine koks url?

Parašė Dutis_· 2010 Bir. 20 13:06:54
#3

www.tricking.lt
O sitas del per trumpos zinutes..