PhpNukeTurkiye.Com (F)  >> PNT Nuke ve Php-Nuke (F)  >> Php Nuke (F)  >> Blocklar (F)
DSolu Görünüm İçin Tıklayın "Haber Blokunu Nasıl Düzenleye biliriz"

hafiz: Haber Blokunu Nasıl Düzenleye biliriz (2015/02/11 - 12:27)

aşağıda ki kodu nasıl çıkarta biliriz yaptım olmadı


<php>sql_query("SELECT sid, title, topic, haberresim, hometext FROM ".$prefix."_stories WHERE topic='1' ORDER BY sid DESC LIMIT 20");
while ($row = $db->sql_fetchrow($result)) {
$sid = intval($row['sid']);
$title = stripslashes($row['title']);
$title2 = substr($title,0,$habermetni);
$hometext = stripslashes($row['hometext']);
$hometext2 = substr($hometext,0,120);
$resim = stripslashes($row['resim']);
$content .="<div><a href='modules.php?name=News&op=NEArticle&amp;sid=".$sid."'><img src=\"$haberresim\" class=\"rsm\" width=\"260\" height=\"180\" border=\"0\" align=\"left\"><font><b>$title2</b></font><br></a><br><font><b>$hometext</b></font></div> ";
$a1++;
}

$content .="</td>";

$content .="</tr><tr><td>";
$content .=" <table><tr>";

$i = 1;
$a = 0;
$result = $db->sql_query("SELECT sid, title, topic, resim, hometext FROM ".$prefix."_stories WHERE topic='1' ORDER BY sid DESC LIMIT 20");
while ($row = $db->sql_fetchrow($result)) {
$sid = intval($row['sid']);
$resim = stripslashes($row['resim']);
$content .="<td><a href='modules.php?name=News&op=NEArticle&amp;sid=$sid'><font><b>$i</b></font></a></td>";
$a++;
$i++;
}

$content .="</tr></table>";
$content .="</td></tr></table>";
$content .="<s>";
$content .="var i=0;";
$content .="var eski=0;";
$content .="var tmp=0;";
$content .="";
$content .="function durgoster(jj)";
$content .="{";
$content .="e v a l(\"mansetyeri\"+eski).style.display= \"none\";";
$content .="e v a l(\"mansetyeri\"+jj).style.display= \"\"; ";
$content .="e v a l(\"pattlink\"+eski+\"\").style.color=\"\";";
$content .="e v a l(\"patt\"+eski+\"\").className=\"mansetdiv\";";
$content .="e v a l(\"pattlink\"+jj+\"\").style.color=\"#d60000\";";
$content .="e v a l(\"patt\"+jj+\"\").className=\"mansetdiv2\";";
$content .="eski=jj;";
$content .="}";
$content .=" function ucc(kk)";
$content .="{";
$content .="kk=eski+kk;";
$content .="if(kk > 9) kk=0;";
$content .="if(kk < 0) kk=9;";
$content .="e v a l(\"mansetyeri\"+eski).style.display= \"none\";";
$content .="e v a l(\"mansetyeri\"+kk).style.display= \"\"; ";
$content .="e v a l(\"pattlink\"+eski+\"\").style.color=\"\";";
$content .="e v a l(\"patt\"+eski+\"\").className=\"mansetdiv\";";
$content .="e v a l(\"pattlink\"+kk+\"\").style.color=\"#d60000\";";
$content .="e v a l(\"patt\"+kk+\"\").className=\"mansetdiv2\";";
$content .="eski=kk;";
$content .="}";
$content .=" durgoster(0);";
$content .=" //floatgo=true;";
$content .=" </s>";




?>

bl3v3: Re: Haber Blokunu Nasıl Düzenleye biliriz (2015/02/14 - 20:23)

hafız aşağıdaki kodu çıkarabiliriz ile kastın nedir ?

hafiz: Re: Haber Blokunu Nasıl Düzenleye biliriz (2015/02/15 - 20:22)

hafız aşağıdaki kodu çıkarabiliriz ile kastın nedir ?
,,özür dilerim kardeş bu blok kodlarını bir yerden aldım
blok olarak nasıl yapa biliriz diyecektim