Parašė andriussx· 2010 Bal. 2 19:04:36
#1
Ar galitė man padet?
Man reikia iš savo theme.php paimti news.php ir perdaryti į kita.
Mano tgheme.php kodas:
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' class='middle'><tr><td><table width='100%' border='0' cellspacing='1' cellpadding='3' class='bgcolor3'><tr><th><h2>$subject</h2></th></tr><tr><td class='bgcolor1'>$news<table width='100%' border='0' cellspacing='2' cellpadding='0'><tr><td width='1' height='1'></td></tr></table></td></tr><tr><td class='bgcolor1'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='50%' align='left'>".newsposter($info)."</td><td width='50%' align='right'>".openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id'])."</td></tr></table></td></tr></table></td></tr></table>";
O kito tjeme.php kodas:
<tr>
<form name='editnews1' method='post' action='administration/news.php&news_id=".$info['news_id']."'>
<td align='center' class='news-footer'><a href='naujienos.php?readmore=".$info['news_id']."'>Plaèiau</a> | Siuntesi: ".$info['news_reads']." | Komentarø: ".$info['news_comments']."</td>
</form>
Man reikia kad tiktu ant pirmos theme.php kuria aš jums parodžiau.
Ačiū;)
Parašė marqs· 2010 Bal. 4 20:04:18
#3
Gal bandyk:
function render_news($subject, $news, $info) {
global $locale;
echo "<tr>
<form name='editnews1' method='post' action='administration/news.php&news_id=".$info['news_id']."'>
<td align='center' class='news-footer'><a href='naujienos.php?readmore=".$info['news_id']."'>Plaèiau</a> | Siuntesi: ".$info['news_reads']." | Komentarø: ".$info['news_comments']."</td>
</form>";