Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: rodymas, kas ikele siuntini
Parašė LeBro· 2008 Bir. 22 13:06:06
#1
sveiki, redagavausi savo downloads.php faila pagal snapso sukurta downloads.php , kuriame rodo, kas ikele siuntini ir susiduriau su tokia problema :
uzejus i bendra siuntiniu kategorija, pvz.:
http://www.mp3s.lt/downloads.php... , viskas tvarkoj - prie siuntiniu rodo kas juos ikele, o "ilindus" i dainos vidu ( pvz.:
http://www.mp3s.lt/downloads.php... ) jau neberodo, kas ikele viena ar kita siuntini...
vieta, kuria reikai redaguoti :
echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border'>\n";
echo "<tr>
<td colspan='5' class='forum-caption'>
<table style='border-collapse: collapse;' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td> <a href='".FUSION_SELF."' class='small' title='Dainos'><b>Dainos</b></a> >> <a href='".FUSION_SELF."?cat_id=".$data['download_cat']."' class='small' title='Siuntinio Kategorija'><b>$kat</b></a> > <a class='small' href='".FUSION_SELF."?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='Atsisiøsti dainà'><b>".$data['download_title']."</b></a> </td>
<td align='right'><span class='small2'><b>Pridëtas:</b> $laikas</span></td>
</tr></table></td>
</tr>\n";
if ($data['download_description'] != "") echo "<tr>\n
<td colspan='5' class='tbl1'>".nl2br(stripslashes($data['download_description']))."</td>\n</tr>\n";
echo "<tr><br><br>\n
<td rowspan='2' class='tbl1' align='center' valign='middle' width='1%'><a class='small' href='".FUSION_SELF."?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='Atsisiøsti Failà' style='font-weight: bold;'><img src='".IMAGES."download.png' alt='Atsisiøsti Failà' border='0'></a></td>\n";
echo "<td width='30%' class='tbl2'><b>Ádëjo:</b> <a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a></td>\n";
$kom = dbquery("SELECT count(comment_id) FROM ".$db_prefix."comments WHERE comment_type='D' AND comment_item_id='$id'");
$kon = dbresult($kom, 0);
if ($kon == 0) { $komentarai = 0; } else { $komentarai = $kon; }
lentele, rodanti autoriu
download_author
Redagavo Enzo· 2008 Bir. 22 13:06:50
Parašė Enzo· 2008 Bir. 22 14:06:15
#2
koks kintamasis apibrėžia kas įkėlė?
Parašė LeBro· 2008 Bir. 23 11:06:20
#3
seip nelabai as su tais kintamaisiais gaudausi, bet kazkas, aks su autorium susije, yra sitoj eilutej :
result = dbquery("SELECT td.*, tu.user_id,user_name FROM ".$db_prefix."downloads td
LEFT JOIN ".$db_prefix."users tu ON tu.user_id=td.download_author
WHERE td.download_cat='$cat_id' AND td.download_status!='inactive' ORDER BY ".$cdata['download_cat_sorting']." LIMIT $rowstart,25");
Parašė bruzgis· 2008 Bir. 23 12:06:26
#4
echo "<td width='30%' class='tbl2'><b>Ádëjo:</b> <a href='profile.php?lookup=
".$data['user_id']."'>".
$data['user_name']."</a></td>\n";
tokio kaip user-id nera downloade nurodoma...author eina id ar namas?
Parašė LeBro· 2008 Bir. 23 12:06:36
#5
name atrodo
Redagavo LeBro· 2008 Bir. 23 12:06:18
Parašė ramon· 2008 Bir. 23 13:06:05
#6
Priseg visa downloads.php faila - sutvarkisiu. :)
Parašė LeBro· 2008 Bir. 25 12:06:52
#7
nera zinanciu ?
Parašė bad_user· 2008 Bir. 25 13:06:14
#8
Priseg visa downloads.php faila :|