Seditio ve Ldu hakkında sınırsız arama yapın
 
 
> 1 <

Etiketler: acil yardım dosyalar dökümanlar

Author Message

Sender

Members


Online status

334 posts

Location: Turkey
Occupation:
Age:

#6342   2007-09-13 14:15 GMT      

Son dosyalar ve dökümanlarda takıldığım yerler var.Şimdi td içine almak istiyorum ama yapamadım.Yani şu son forum konularındaki gibi tablo içine almak istedim olmadı.


Yardım ederseniz sevinirim.
Code:
<?PHP

/* ====================
LDU - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_LDU]
File=plugins/extended/sonsayfalar/sonsayfalar.php
Version=102+ (110 - 120 - 121)
Updated=2007-may-09
Type=Plugin
Author=Dvdbil
Description=
[END_LDU]

[BEGIN_LDU_EXTPLUGIN]
Code=sonsayfalar
Part=main
File=sonsayfalar
Hooks=index.tags
Tags=index.tpl:{INDEX_DOKUMANLAR},{INDEX_DOSYALAR}
Minlevel=0
Order=10
[END_LDU_EXTPLUGIN]

==================== */

if ( !defined('LDU_CODE') ) { die("Wrong URL."); }

if (!$dokumanlar){$sql = ldu_query("SELECT page_id, page_alias, page_ownerid, page_title, page_date, page_author, page_count FROM $db_pages WHERE page_state=0 AND page_file=0 ORDER by ".$cfg["plugin"]["sonsayfalar"]["dokumanorder"]." DESC LIMIT ".$cfg["plugin"]["sonsayfalar"]["dokumanlimit"]."");
$dokumanlar = "<h4>Son Eklenen Dökümanlar</h4>";$dokumanlar .= "$dokumanlar .= "<td class=\"coltop\">Döküman Adı</td>";$dokumanlar .= "<td class=\"coltop\">Eklenme Tarihi</td>";$dokumanlar .= "<td class=\"coltop\">Hit</td>";$dokumanlar .= "<td class=\"coltop\">Gönderen</td></tr>";
while ($row = ldu_fetch_array($sql)) {$sqluser = ldu_query("SELECT user_id, user_name FROM $db_users WHERE user_id='".$row['page_ownerid']."' LIMIT 1"); $rowuser = ldu_fetch_array($sqluser); $row['page_pageurl'] = (empty($row['page_alias'])) ? "page.php?id=".$row['page_id'] : "page.php?al=".$row['page_alias'];
$dokumanlar .= "<tr><td><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /> <a href=\"page.php?id=".$row['page_id']."\">".ldu_cc(ldu_cutstring(stripslashes($row['page_title']), $cfg["plugin"]["sonsayfalar"]["dokumanbaslik"]))."</a></td>";$dokumanlar .= "<td>".date($cfg['dateformat'], $row['page_date'] + $usr['timezone'] * 3600)."</a></td>";
$dokumanlar .= "<td style=\"text-align:center;\">".$row['page_count']."</td>";$dokumanlar .= "<td style=\"text-align:center;\">".ldu_build_user($rowuser['user_id'], ldu_cc(stripslashes($rowuser['user_name'])))."</td></tr>";}$dokumanlar .= "</table>";ldu_cache_store('dokumanlar', $dokumanlar, $cfg["plugin"]["sonsayfalar"]["dokumancache"]);
}if (!$dosyalar){$sql = ldu_query("SELECT page_id, page_alias, page_ownerid, page_title, page_date, page_author, page_count FROM $db_pages WHERE page_state=0 AND page_file=1 ORDER by ".$cfg["plugin"]["sonsayfalar"]["dosyaorder"]." DESC LIMIT ".$cfg["plugin"]["sonsayfalar"]["dosyalimit"]."");$dosyalar = "<h4>Son Eklenen Dosyalar</h4>";
$dosyalar .= <table class=\"cells\"><tr>";$dosyalar .= "<td class=\"coltop\">Dosya Adı</td>";$dosyalar .= "<td class=\"coltop\">İnidirilme</td>";$dosyalar .= "<td class=\"coltop\">Eklenme Tarihi</td>";$dosyalar .= "<td class=\"coltop\">Gönderen</td></tr>";while ($row = ldu_fetch_array($sql))
{$sqluser = ldu_query("SELECT user_id, user_name FROM $db_users WHERE user_id='".$row['page_ownerid']."' LIMIT 1");$rowuser = ldu_fetch_array($sqluser);$row['page_pageurl'] = (empty($row['page_alias'])) ? "page.php?id=".$row['page_id'] : "dosya.php?al=".$row['page_alias'];$dosyalar .= "<tr><td><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /> <a href=\"page.php?id=".$row['page_id']."\">".ldu_cc(ldu_cutstring(stripslashes($row['page_title']), $cfg["plugin"]["sonsayfalar"]["dosyabaslik"]))."</a></td>";
$dosyalar .= "<td style=\"text-align:center;\">".$row['page_count']."</td>";$dosyalar .= "<td>".date($cfg['dateformat'], $row['page_date'] + $usr['timezone'] * 3600)."</a></td>";$dosyalar .= "<td style=\"text-align:center;\">".ldu_build_user($rowuser['user_id'], ldu_cc(stripslashes($rowuser['user_name'])))."</td></tr>";}$dosyalar .= "</table>";
ldu_cache_store('dosyalar', $dosyalar, $cfg["plugin"]["sonsayfalar"]["dosyacache"]);}$t->assign(array("INDEX_DOKUMANLAR" => $dokumanlar,"INDEX_DOSYALAR" => $dosyalar,));
?>

Kaan

Moderators


Online status

2,014 posts
http://www.ntka.org
Pagerank: 3

Location: Turkey
Occupation: Destek
Age: 25

#6362   2007-09-14 19:13 GMT      
onlar zaten tablo içerisinde şeklini bozduysan bilmem.

ldu_cache_store bunuda ldu_cstore olarak degiştir yoksa çalışmaz.

This post was edited by Kaan (2007-09-14 19:24 GMT, 350 Gün ago)

Dvdbil

Administrator


Online status

2,178 posts
http://www.seditio-tr.com
Pagerank: 3

Location: Turkey istanbul
Occupation: Web Site(ler) İşletmeciliği :)
Age: 28

#6364   2007-09-14 19:17 GMT      

Aynen, tablo içerisinde.. sen tam olarak ne yapmak istiyorsun ?
> 1 <

Benzer konular (Similar topics) #BETA

Keywords (beta):

Forum Arşiv (beta):

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186] [187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199] [200] [201] [202] [203] [204] [205]