Parašė TiFo_remix13· 2007 Bal. 4 15:04:54
#6
galima ir paprasčiau, krc dėl jūsų parašysiu taigi pradedam. Atsidarom news.php(nauajusia versija)
susirandam
$news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_ext" => $data['news_extended'] ? "y" : "n",
"news_reads" => $data['news_reads'],
"news_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['news_id']."'"),
"news_allow_comments" => $data['news_allow_comments']
);
Tada tarp įrašykite
"user_id" => $data['user_id'],
"kategorija" => $data['news_cat_name'],
"user_name" => $data['user_name'],
Tada vėl news.php susirandate šią
$news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_date" => $data['news_datestamp'],
"news_ext" => "n",
"news_reads" => $data['news_reads'],
"news_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['news_id']."'"),
"news_allow_comments" => $data['news_allow_comments']
);
Tada tarp įrašykite
"user_id" => $data['user_id'],
"kategorija" => $data2['news_cat_name'],
"user_name" => $data['user_name'],
Dabar theme.php faile
galite bet kur įterpti šį kodą
".$info['kategorija']."
Tutorialas by
remix13
Kopinkit į valias:p
Be to spėju visi tingės , tai px tada prisegu ir patį news.php
Redagavo TiFo_remix13· 2007 Bal. 4 15:04:28