Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Gal kas zino kur rasti TOP dainu keleju moda?

Parašė sniuff· 2009 Vas. 4 15:02:02
#9

https://webdnd.com/forum/viewthr...ost_161534
administration/downloads.php faile 40eilutėje:
$result = dbquery("INSERT INTO ".$db_prefix."downloads (download_title, download_description, download_url, download_cat, download_license, download_os, download_version, download_filesize, download_datestamp, download_count) VALUES ('$download_title', '$download_description', '$download_url', '$download_cat', '$download_license', '$download_os', '$download_version', '$download_filesize', '".time()."', '0')");



keiti į:
$result = dbquery("INSERT INTO ".$db_prefix."downloads (download_title, download_description, download_url, download_cat, download_license, download_os, download_version, download_filesize, download_datestamp, download_count, user_added) VALUES ('$download_title', '$download_description', '$download_url', '$download_cat', '$download_license', '$download_os', '$download_version', '$download_filesize', '".time()."', '0', '".$userdata['user_id']."')");



tada atsidarai downloads.php faile 72eilutė rašai:
$resultx = dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id='".$data['user_added']."'");
while ($datax=dbarray($resultx)) {
$autorius = "<a href='".BASEDIR."profile.php?lookup=".$data['user_added']."'>".$datax['user_name']."</a>";
}




Tada kur nori, kad rodytų, kad įkėlė rašai: $autorius

O pridėtiniame puslapį rašom:
<?php
dbquery("ALTER TABLE `".$db_prefix."downloads` ADD `user_added` VARCHAR( 10 ) CHARACTER SET utf8 COLLATE utf8_lithuanian_ci NOT NULL DEFAULT '1' AFTER `download_count`");
?>




Manau turėtų veikti, nebandžiau.

O panelę pats manau pasidaryti.