BU SİTE PHP-NUKE SONLANINCA KAPANDI. İÇİNDE EMEK OLDUĞUNDAN AÇIK TUTULMAKTADIR.
GÜNCEL İÇERİK BLOG SAYFASINDADIR!
Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 1029
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 ME_Haber 2.3..
(125534 okuma, 145 yanıt)
 Resim Galerisi Modülü 2.0..
(139798 okuma, 173 yanıt)
 Ustalardan Bir Ricam Olac..
(15976 okuma, 6 yanıt)
 nukecode.com will close..
(13270 okuma, 5 yanıt)
 super youtube player a lo..
(7371 okuma, 1 yanıt)
 Need good PHP Haber port..
(6402 okuma, 0 yanıt)
 Forum Nasil Tam Sayfa Olu..
(39838 okuma, 40 yanıt)
 Php nuke Forumu Düzenleme..
(11252 okuma, 6 yanıt)
 Yeni Üyelik Aktivasyon Li..
(12348 okuma, 6 yanıt)
 Aşk Flashları Modülü..
(8006 okuma, 2 yanıt)
 resim galeri 2.0 da kateg..
(12969 okuma, 9 yanıt)
 Yeni iki modul: Merhumlar..
(37230 okuma, 36 yanıt)
 ürün tanıtım modülü..
(28412 okuma, 23 yanıt)
 PHP Nuke is out..
(17189 okuma, 13 yanıt)
 MSN Video Bing Video oldu..
(5914 okuma, 0 yanıt)
 haberhit.com..
(6579 okuma, 1 yanıt)
 Bilgi Yarışması 1.0 tama..
(59930 okuma, 72 yanıt)
 Musıc Box elinde olan var..
(7676 okuma, 2 yanıt)
 Online Okey , Batak , Tav..
(197817 okuma, 340 yanıt)
 Emlak Modül ve Blockları ..
(14021 okuma, 8 yanıt)
 WM who ist shampions..
(5728 okuma, 1 yanıt)
 coppermine resim galerisi..
(6849 okuma, 1 yanıt)
 Forumda Teşekkür Eklentis..
(10220 okuma, 7 yanıt)
 free wordpress themes..
(6361 okuma, 1 yanıt)
 JW image rotator for nsn ..
(8679 okuma, 4 yanıt)
 need Iletisim module..
(12666 okuma, 8 yanıt)
 Yeni modul: İletişim modu..
(31651 okuma, 33 yanıt)
 Başvuru Modulu ve Etkinli..
(6635 okuma, 1 yanıt)
 world cup flash..
(5719 okuma, 0 yanıt)
 ..:: Php Nuke FTP link Ha..
(5612 okuma, 0 yanıt)
 yeni phpnuke youtube 2.0..
(5864 okuma, 1 yanıt)
 Content Plus Önceki Konu ..
(5408 okuma, 0 yanıt)
 Php nuke Tickets Modülü..
(9126 okuma, 5 yanıt)
 need help to news time..
(5151 okuma, 0 yanıt)
 NSN News v3.0 new plugin..
(5445 okuma, 0 yanıt)
 how to save flash as imag..
(6865 okuma, 2 yanıt)
 Video Blok Yardım Lütfen...
(6785 okuma, 2 yanıt)
 gazete ara..
(10975 okuma, 5 yanıt)
 Bizim Yazarlar ve Bizim Ş..
(16975 okuma, 14 yanıt)
 Nuke Reflections v2 Türkç..
(16466 okuma, 14 yanıt)
 CNB Your Account 750 442 ..
(16384 okuma, 13 yanıt)
 Admin panelindeki simge ç..
(14134 okuma, 9 yanıt)
 Hosting Modülü..
(15950 okuma, 13 yanıt)
 Bizim şairler Modülü..
(5899 okuma, 1 yanıt)
 new plugin for nsn news v..
(5394 okuma, 1 yanıt)
 php nuke 8.0 türkce dil s..
(7900 okuma, 3 yanıt)
 Kan Bankası Modül istek..
(7021 okuma, 2 yanıt)
 Haber Konulari Sayfasinda..
(6530 okuma, 2 yanıt)
 Kan Bankası Modülünde İsi..
(8027 okuma, 3 yanıt)
 sonhaberler flash block ..
(7552 okuma, 4 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - nerede hata yapıyorum????
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


nerede hata yapıyorum????

 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> Php Nuke Modülleri
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
Melizz
Mesaj: 1+
Mesaj: 1+





Kayıt: Jan 30, 2008
Mesajlar: 4

MesajTarih: 2008-01-30, 04:34:14    Mesaj konusu: nerede hata yapıyorum???? Alıntıyla Cevap Gönder

merhaba arkadaslar, sitenize yeni uye oldum, benim bi sorum olacakti,
Kod:
<?php

if (!defined('MODULE_FILE')) {
    die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = "- Köşe Yazıları";
define('INDEX_FILE', true);
$theme = get_theme();


////////////////////////////////////////
//                                    //
// Sayfa başına sütun sayısını seçin  //

$sectionrow = 2;

//                                    //
////////////////////////////////////////

function display_score($score) {
    $image = "<img src=\"images/blue.gif\" title=\"\">";
    $halfimage = "<img src=\"images/bluehalf.gif\" title=\"\">";
    $full = "<img src=\"images/star.gif\" title=\"\">";

    if ($score == 10) {
        for ($i=0; $i < 5; $i++)
            echo "$full";
    } else if ($score % 2) {
        $score -= 1;
        $score /= 2;
        for ($i=0; $i < $score; $i++)
            echo "$image";
            echo "$halfimage";
    } else {
        $score /= 2;
        for ($i=0; $i < $score; $i++)
            echo "$image";
    }
}

function listsections() {
    global $sitename, $prefix, $db, $module_name, $sectionrow;
    include ('header.php');
    $result = $db->sql_query("select secid, secname, image, mail, active from ".$prefix."_sections WHERE active='1' order by secname");
    OpenTable();
  //echo "<center><font class=\"title\"><b>"._SPECIALSECTIONS."</b></font></center>";
    echo "<center><a href=\"modules.php?name=$module_name\"><img src=\"modules/$module_name/images/koseyazilari.png\" height=\"35\" width=\"314\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center>";
    CloseTable();
    echo "<br>";
    OpenTable();
    echo "<center><font class=\"title\">"._SECWELCOME."</font></center>";
    echo "<br><br><center>"._YOUCANFIND."</center><br><br>";
    echo "<table cellpadding=\"0\" cellspacing=\"5\" border=\"0\" align=\"center\">";
    $count = 0;
    while (list($secid, $secname, $image, $mail, $active) = $db->sql_fetchrow($result)) {
//başla
$cresult = $db->sql_query("select artid, title from ".$prefix."_seccont WHERE secid=$secid ORDER BY artid DESC limit 1");
while (list($artid, $title) = $db->sql_fetchrow($cresult))
//bitiş
        if ($count==$sectionrow) {
        echo "<tr>";
        $count = 0;
        }

        echo "<td align=\"center\"><a href=\"modules.php?name=$module_name&op=listarticles&secid=$secid\"><img src=\"images/sections/$image\" border=\"0\" title=\"$secname\" hspace=\"10\"><br>$secname</a>";
        $cresult = $db->sql_query("select artid, title, tarih from ".$prefix."_seccont WHERE secid=$secid ORDER BY artid DESC limit 1");
        while (list($artid, $title, $tarih) = $db->sql_fetchrow($cresult))
        echo "<br><img border=\"0\" src='modules/$module_name/images/nok2.gif' valign=\"absmiddle\" height='11' width='10'>&nbsp;<a href=\"modules.php?name=$module_name&op=viewarticle&artid=$artid\"><i>$title</i></a> ($tarih)</td>";
        $count++;
        if ($count==$sectionrow) {
        echo "</tr><tr><td>&nbsp;</td</tr>";
        }
        echo "<td>&nbsp;&nbsp;&nbsp;</td>";
    }
    echo "</table></center>";
        if (is_active("Search")) {
        echo "<br><form action=\"modules.php?name=Search&amp;type=sections#results\" method=\"post\">";
        echo "<center><input type=\"name\" name=\"query\" size=\"30\">&nbsp;&nbsp;";
    echo "<input type=\"submit\" name=\"submit\" value=\""._SEARCH."\">";
    echo "</center>";
        echo "</form>";
        echo "<center>[ <a href=\"modules.php?name=Search&type=sections\">"._ADVANCEDSEARCH."</a> ]</center><br>";
}
    CloseTable();
    //include('modules/Kose_Yazilari/kitap.php');
    include ('footer.php');
}

function listarticles($secid) {
    global $prefix, $multilingual, $currentlang, $db, $module_name, $bgcolor1, $bgcolor2, $textcolor1, $textcolor2;
    if ($multilingual == 1) {
    $querylang = "AND slanguage='$currentlang'";
    } else {
    $querylang = "";
    }
    include ('header.php');
OpenTable();
    echo "<center><a href=\"modules.php?name=$module_name\"><img src=\"modules/$module_name/images/koseyazilari.png\" height=\"35\" width=\"314\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center>";
    CloseTable();
    echo "<br>";
    $result = $db->sql_query("select secname from ".$prefix."_sections where secid=$secid");
    list($secname) = $db->sql_fetchrow($result);
    $result = $db->sql_query("select artid, secid, title, content, counter, tarih from ".$prefix."_seccont where secid=$secid ORDER BY artid DESC LIMIT 0,5");
    $yazar =$secid;
OpenTable();
    $result2 = $db->sql_query("select image, mail from ".$prefix."_sections where secid=$secid");
    list($image, $mail) = $db->sql_fetchrow($result2);

OpenTable2();
    echo "<center><img src=\"images/sections/$image\" border=\"0\" alt=\"$secname\"><br><br>";
    echo "<font class=\"option\">";
    echo "Yazar : <b>$secname</b><br>";
    echo "E-Posta : <b><a href=\"mailto:$mail\">$mail</b></a>";
CloseTable2();
    echo "<br><center>"._FOLLOWINGART."</font></center><br><br>";
    echo "<table width=\"99%\" cellpadding=\"3\" cellspacing=\"1\" border=\"0\" align=\"center\"><tr>";
    echo "<td align=\"center\" bgcolor=\"$bgcolor1\" width=\"70%\"><font color=\"$textcolor1\"><b>"._ARTICLETITLE."</b></font></td>";
    echo "<td align=\"center\" bgcolor=\"$bgcolor1\" width=\"25%\"><font color=\"$textcolor1\"><b>Tarih</b></font></td>";
    echo "<td align=\"center\" bgcolor=\"$bgcolor1\" width=\"15%\"><font color=\"$textcolor1\"><b>"._ARTICLEVIEWS."</b></font></td>";
    echo "<td align=\"center\" bgcolor=\"$bgcolor1\" width=\"10%\"><font color=\"$textcolor1\"><b>"._ARTICLEOPTIONS."</b></font></td>";
    echo "</tr>";
    while (list($artid, $secid, $title, $content, $counter, $tarih) = $db->sql_fetchrow($result)) {
    echo "<tr>";
    echo "<td bgcolor=\"$bgcolor2\">&nbsp;&nbsp;<b>•</b> <a href=\"modules.php?name=$module_name&op=viewarticle&artid=$artid\">$title</a></td>";
    echo "<td align=\"center\" bgcolor=\"$bgcolor2\"><font class=\"content\">$tarih</td>";
    echo "<td align=\"center\" bgcolor=\"$bgcolor2\"><font class=\"content\"><b>$counter</b> "._READS."</td>";
    echo "<td align=\"center\" bgcolor=\"$bgcolor2\"><a href=\"modules.php?name=$module_name&op=printpage&artid=$artid\"><img src=\"images/print.gif\" border=\"0\" Alt=\""._PRINTER."\"></a>";
    echo "&nbsp;&nbsp;<a href=\"modules.php?name=$module_name&file=friend&op=&artid=$artid\"><img src=\"modules/$module_name/images/mail.gif\" border=\"0\" Alt=\"Arkadaşına Gönder\" aling=\"absmiddle\"></a>";
    echo "</td></tr>";
    }
    echo "</table><br>";
   
    //diğer yazılar

        if (is_active("Search")) {
        echo "<br><form action=\"modules.php?name=Search&amp;type=sections#results\" method=\"post\">";
        echo "<center><input type=\"name\" name=\"query\" size=\"30\">&nbsp;&nbsp;";
    echo "<input type=\"submit\" name=\"submit\" value=\""._SEARCH."\">";
    echo "</center>";
        echo "</form>";
}
        echo "<br>";
    echo "<center>[ <a href=\"modules.php?name=$module_name\">Yazarlar Sayfasına Dön</a> - <a href=\"modules.php?name=$module_name&op=listfull&secid=$yazar\"title=\"Yazarın Bütün Yazıları\"><Alt=\"Bütün Yazıları\" aling=\"absmiddle\"> Yazarın Bütün Yazıları</a> ]</center>";
    echo "<br>";
    CloseTable();
    //include('modules/Kose_Yazilari/kitap.php');
    include ('footer.php');
}

function viewarticle($artid, $page) {
    global $prefix, $db, $module_name;
    include("header.php");
        echo "<a name=\"articlestart\">";
    OpenTable();
    echo "<center><a href=\"modules.php?name=$module_name\"><img src=\"modules/$module_name/images/koseyazilari.png\" height=\"35\" width=\"314\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center>";
    CloseTable();
    echo "<br>";
    if (($page == 1) OR ($page == "")) {
    $db->sql_query("update ".$prefix."_seccont set counter=counter+1 where artid='$artid'");
    }
    $result = $db->sql_query("select artid, secid, title, content, counter, tarih from ".$prefix."_seccont where artid=$artid");
    list($artid, $secid, $title, $content, $counter, $tarih) = $db->sql_fetchrow($result);
    $result2 = $db->sql_query("select secid, secname, image, mail from ".$prefix."_sections where secid=$secid");
    list($secid, $secname, $image, $mail) = $db->sql_fetchrow($result2);
    $words = sizeof(explode(" ", $content));
        OpenTable();
    $contentpages = explode( "<!--pagebreak-->", $content );
    $pageno = count($contentpages);
        if ( $page=="" || $page < 1 )
        $page = 1;
        if ( $page > $pageno )
        $page = $pageno;
    $arrayelement = (int)$page;
    $arrayelement --;
        echo "<center><font class=\"option\"><b>$title</b></font></center>";
      echo "<a href=\"modules.php?name=$module_name&op=listarticles&secid=$secid\"><img src=\"images/sections/$image\" alt=\"$secname\" border=0 vspace=3></a><br><a href=\"modules.php?name=$module_name&op=listarticles&secid=$secid\">$secname</a>";
      $tarih = tarih_format($tarih); 
      echo "<br><br><b>Tarih</b>: $tarih<br>";
      echo "<br><center><font class=\"content\">";
            if ($pageno > 1) {
        echo ""._PAGE.": <b>$page</b> "._OF." $pageno<br>";
            }
        echo "</center><br>";
        echo "<div align=\"justify\">$contentpages[$arrayelement]</div><br><br>";
    if($page >= $pageno) {
          $next_page = "";
    } else {
        $next_pagenumber = $page + 1;
        if ($page != 1) {
            $next_page .= " &nbsp;&nbsp; ";
        }
        $next_page .= "<a href=\"modules.php?name=$module_name&op=viewarticle&artid=$artid&page=$next_pagenumber#articlestart\"><img src=\"images/buttons/next.gif\" border=\"0\" title=\""._NEXT."\"></a>";
    }
    if($page <= 1) {
        $previous_page = "";
    } else {
        $previous_pagenumber = $page - 1;
        $previous_page = "<a href=\"modules.php?name=$module_name&op=viewarticle&artid=$artid&page=$previous_pagenumber#articlestart\"><img src=\"images/buttons/previous.gif\" border=\"0\" title=\""._PREVIOUS."\"></a>";
    }
    echo "<center>"
        ."$previous_page &nbsp;&nbsp; $next_page";
    echo "</font>";
    echo "</center>";
    echo "<b>$secname<br><a href=\"mailto:$mail\">$mail</b></a><br><br>";
    echo "<center><br><br>"._READS2." <b>$counter</b> "._ANDHAS." <br><br>";
    OpenTable();
    echo "<center><a href=\"modules.php?name=$module_name&op=printpage&artid=$artid\"><img  src=\"modules/$module_name/images/print.gif\" border=\"0\" Alt=\"Yazdırılabilir Sayfa\" aling=\"absmiddle\"> Yazdırılabilir Sayfa</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"modules.php?name=$module_name&op=postcomment&artid=$artid&title=$title\"><img  src=\"modules/$module_name/images/yorum.gif\" border=\"0\" Alt=\"Yorum Ekle\" aling=\"absmiddle\"> Yorum Ekle</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"modules.php?name=$module_name&file=friend&op=&artid=$artid\"><img  src=\"modules/$module_name/images/mail.gif\" border=\"0\" Alt=\"Arkadaşına Gönder\" aling=\"absmiddle\"> Arkadaşına Gönder</a></center>";
    CloseTable();
    echo "</font></center><br><br>";
    echo "<center>[ <a href=\"modules.php?name=$module_name&op=listarticles&secid=$secid\">$secname</a> ]"
        ." - [ <a href=\"modules.php?name=$module_name\">"._SECINDEX."</a> ]";
        echo "</center>";
        echo "<br>";
    CloseTable();

//Yorumlar
$title = urldecode($title);
    if (($page == 1) OR ($page == "")) {
        if (r_comments == 1)

    OpenTable();
        r_comments($artid, $title);
    }
//Yorumlar

    //include('modules/Kose_Yazilari/kitap.php');
    include ('footer.php');
}

function PrintSecPage($artid) {

    global $site_logo, $nukeurl, $sitename, $datetime, $prefix, $db, $module_name, $theme;
    $result = $db->sql_query("select secid, title, content, tarih from ".$prefix."_seccont where artid=$artid");
    list($secid, $title, $content, $tarih) = $db->sql_fetchrow($result);
    $result2 = $db->sql_query("select secname from ".$prefix."_sections where secid=$secid");
    list($secname) = $db->sql_fetchrow($result2);
    echo "
    <html>
    <head><title>$sitename</title>
<LINK REL=\"StyleSheet\" HREF=\"themes/$theme/style/style.css\" TYPE=\"text/css\">
</head>
    <body bgcolor=\"#FFFFFF\" text=\"#000000\">
    <table border=\"0\" align=\"center\"><tr><td>
    <table border=\"0\" width=\"640\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#000000\"><tr><td>
    <table border=\"0\" width=\"640\" cellpadding=\"20\" cellspacing=\"1\" bgcolor=\"#FFFFFF\"><tr><td>
    <center>
    <img src=\"images/$site_logo\" border=\"0\" alt=\"\"><br><br>
    <font class=\"content\">
    <b>$title</b></font><br>
    </center><font class=\"content\">
    $content<br>Yazar: <b>$secname</b><br>Tarih: <b>$tarih</b><br>";
    echo "</td></tr></table></td></tr></table>
    <br><br><center>
    <font class=\"content\">
    Bu Köşe Yazısının yer aldığı yer: $sitename<br>
    <a href=\"$nukeurl\">$nukeurl</a><br><br>
    Bu Köşe Yazısı için adres:<br>
    <a href=\"$nukeurl/modules.php?name=$module_name&op=viewarticle&artid=$artid\">$nukeurl/modules.php?name=$module_name&op=viewarticle&amp;artid=$artid</a></font></center>
    </td></tr></table>
    </body>
    </html>
    ";
}

//Yorumlar
function postcomment($artid, $title) {
    global $user, $c o o k i e, $text, $score, $AllowableHTML, $anonymous, $module_name, $button_image, $module_name;
    include("header.php");
OpenTable();
    echo "<center><a href=\"modules.php?name=$module_name\"><img src=\"modules/$module_name/images/koseyazilari.png\" height=\"35\" width=\"314\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center>";
    CloseTable();
    c o o k i edecode($user);
    $title = htmlspecialchars(urldecode($title));
    $text = stripslashes(check_html($text, ""));
    OpenTable();
    echo "<center><font class=\"title\">"._POSTCOMMENT."</font></center>";
    CloseTable();
    Opentable();
    OpenTable2();
    echo "<center><font class=\"title\">"._REVIEWCOMMENT." $title</font></center>";
    CloseTable2();
    echo "<form action=modules.php?name=$module_name method=post>";
    echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td>";
    if (!is_user($user)) {
    echo "<b>"._YOURNICK."</b> $anonymous [ "._RCREATEACCOUNT." ]<br><br>";
    $uname = $anonymous;
    } else {
    echo "<b>"._YOURNICK."</b> $c o o k i e[1]<br>";
    echo "<input type=checkbox name=xanonpost> <span style=\"vertical-align=23%\">"._POSTANON."</span><br><br>";
        $uname = $c o o k i e[1];
    }
    echo "<b>"._YOURSCORE." :</b>&nbsp;";
    echo "<input type=hidden name=uname value=$uname>";
    echo "<input type=hidden name=artid value=$artid>";
    echo "<select name=score>";
    echo "<option name=score value=null>Seçiniz</option>";
    echo "<option name=score value=10>10</option>";
    echo "<option name=score value=9>9</option>";
    echo "<option name=score value=8>8</option>";
    echo "<option name=score value=7>7</option>";
    echo "<option name=score value=6>6</option>";
    echo "<option name=score value=5>5</option>";
    echo "<option name=score value=4>4</option>";
    echo "<option name=score value=3>3</option>";
    echo "<option name=score value=2>2</option>";
    echo "<option name=score value=1>1</option>";
    echo "</select><br><br>"._FAIR."<br><br>";
    echo "<b>"._YOURCOMMENT."</b><br>";
    echo "<textarea name=comments rows=10 cols=65></textarea><br>";
        echo "<br><br></td></tr><tr><td align=\"center\" width=\"50%\">";
        echo "<input type=hidden name=op value=savecomment>";
    echo "<input type=\"submit\" name=\"submit\" value=\""._SUBMIT."\">";
        echo "</td><td width=\"50%\">&nbsp;</td></tr></table></form>";
    Closetable();
    include("footer.php");
}

function savecomment($xanonpost, $uname, $artid, $score, $comments) {
    global $anonymous, $user, $c o o k i e, $prefix, $db, $module_name, $score;
    include ('header.php');
OpenTable();
    echo "<center><a href=\"modules.php?name=$module_name\"><img src=\"modules/$module_name/images/koseyazilari.png\" height=\"35\" width=\"314\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center>";
    CloseTable();
    OpenTable();
    echo "<center><font class=\"title\">"._REVIEWS."</font></center>";
    CloseTable();
OpenTable();
    echo "<br>";
    if ($comments == "") {
            $error = 1;
        echo "<b>"._CINVALIDTEXT."</b><br>";
    }
    if (($score < 1) || ($score > 10)) {
        $error = 1;
        echo "<b>"._CINVALIDSCORE."</b><br>";
    }
        if ($error == 1){
            echo "<br><center>"._GOBACK."</center>";
CloseTable();
    include("footer.php");
} else {
    if ($xanonpost) {
        $uname = $anonymous;
    }
    $comments = stripslashes(FixQuotes(check_html($comments)));
    $db->sql_query("insert into ".$prefix."_sections_comments values (NULL, '$artid', '$uname', now(), '$comments', '$score')");
    Header("Location: modules.php?name=$module_name&op=viewarticle&artid=$artid#$artid");
  }
}
function r_comments($artid, $title) {
    global $admin, $prefix, $db, $module_name, $num, $artid;
    $result = $db->sql_query("select cid, userid, date, comments, score from ".$prefix."_sections_comments where rid='$artid' ORDER BY date DESC");
    while(list($cid, $uname, $date, $comments, $score) = $db->sql_fetchrow($result)) {
$num = $num + 1;
if ($num < 2) {
    echo "<br><br><img src=\"modules/Kose_Yazilari/images/yorumlar.gif\">";
        echo "<a name=\"$artid\">";
        Opentable();
        $title = urldecode($title);
        echo "<b>$title</b><br>";
        if ($uname == "Anonymous") {
            echo ""._POSTEDBY." $uname "._ON." $date<br>";
        } else {
            echo ""._POSTEDBY." <a href=\"modules.php?name=Your_Account&op=userinfo&uname=$uname\">$uname</a> "._ON." $date<br>";
        }
        echo ""._MYSCORE."<span style=\"vertical-align=-33%\">";
        display_score($score);
        echo "</span>";
        if (is_admin($admin)) {
            echo "<br><b>"._ADMINOPTIONS.":</b> [ <a href=\"modules.php?name=$module_name&op=del_comment&cid=$cid&artid=$artid\">"._DELETE."</a> ]</font>";
        } else {
            echo "</font><br>";
        }
        $comments = FixQuotes(nl2br(filter_text($comments)));
        echo "<br><br><div align=\"justify\">$comments</div><br>";
        Closetable();
        } else {
        Opentable();
        $title = urldecode($title);
        echo "<b>$title</b><br>";
        if ($uname == "Anonymous") {
            echo ""._POSTEDBY." $uname "._ON." $date<br>";
        } else {
            echo ""._POSTEDBY." <a href=\"modules.php?name=Your_Account&op=userinfo&uname=$uname\">$uname</a> "._ON." $date<br>";
        }
        echo ""._MYSCORE."<span style=\"vertical-align=-33%\">";
        display_score($score);
        echo "</span>";
        if (is_admin($admin)) {
            echo "<br><b>"._ADMINOPTIONS.":</b> [ <a href=\"modules.php?name=$module_name&op=del_comment&cid=$cid&artid=$artid\">"._DELETE."</a> ]</font>";
        } else {
            echo "</font><br>";
        }
        $comments = FixQuotes(nl2br(filter_text($comments)));
        echo "<br><br><div align=\"justify\">$comments</div><br>";
        Closetable();
}
    }
}
function del_comment($cid, $artid) {
    global $admin, $prefix, $db, $module_name;
    if (is_admin($admin)) {
        $db->sql_query("delete from ".$prefix."_sections_comments where cid='$cid'");
        Header("Location: modules.php?name=$module_name&op=viewarticle&artid=$artid");
    } else {
        echo "ACCESS DENIED";
    }
}
//Yorumlar

//tüm yazılar
function listfull($secid) {
    global $prefix, $multilingual, $currentlang, $db, $module_name, $bgcolor1, $bgcolor2, $textcolor1, $textcolor2;
    if ($multilingual == 1) {
    $querylang = "AND slanguage='$currentlang'";
    } else {
    $querylang = "";
    }
    include ('header.php');
OpenTable();
    echo "<center><a href=\"modules.php?name=$module_name\"><img src=\"modules/$module_name/images/koseyazilari.png\" height=\"35\" width=\"314\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center>";
    CloseTable();
    echo "<br>";
    $result = $db->sql_query("select secname from ".$prefix."_sections where secid=$secid");
    list($secname) = $db->sql_fetchrow($result);
    $result = $db->sql_query("select artid, secid, title, content, counter, tarih from ".$prefix."_seccont where secid=$secid ORDER BY artid DESC");
    OpenTable();
    $result2 = $db->sql_query("select image, mail from ".$prefix."_sections where secid=$secid");
    list($image, $mail) = $db->sql_fetchrow($result2);

OpenTable2();
    echo "<center><img src=\"images/sections/$image\" border=\"0\" alt=\"$secname\"><br><br>";
    echo "<font class=\"option\">";
    echo "Yazar: <b>$secname</b><br>";
    echo "E-Posta: <b><a href=\"mailto:$mail\">$mail</b></a>";
CloseTable2();
    echo "<br><center>"._FOLLOWINGART1."</font></center><br><br>";
    echo "<table width=\"95%\" cellpadding=\"3\" cellspacing=\"1\" border=\"0\" align=\"center\"><tr>";
    echo "<td align=\"center\" bgcolor=\"$bgcolor1\" width=\"70%\"><font color=\"$textcolor1\"><b>"._ARTICLETITLE."</b></font></td>";
    echo "<td align=\"center\" bgcolor=\"$bgcolor1\" width=\"25%\"><font color=\"$textcolor1\"><b>Tarih</b></font></td>";   
echo "<td align=\"center\" bgcolor=\"$bgcolor1\" width=\"15%\"><font color=\"$textcolor1\"><b>"._ARTICLEVIEWS."</b></font></td>";
    echo "<td align=\"center\" bgcolor=\"$bgcolor1\" width=\"10%\"><font color=\"$textcolor1\"><b>"._ARTICLEOPTIONS."</b></font></td>";
    echo "</tr>";
    while (list($artid, $secid, $title, $content, $counter, $tarih) = $db->sql_fetchrow($result )) {
    echo "<tr>";
    echo "<td bgcolor=\"$bgcolor2\">&nbsp;&nbsp;<b>•</b> <a href=\"modules.php?name=$module_name&op=viewarticle&artid=$artid\">$title</a></td>";
    echo "<td align=\"center\" bgcolor=\"$bgcolor2\"><font class=\"content\">$tarih</td>";   
echo "<td align=\"center\" bgcolor=\"$bgcolor2\"><font class=\"content\"><b>$counter</b> "._READS."</td>";
    echo "<td align=\"center\" bgcolor=\"$bgcolor2\"><a href=\"modules.php?name=$module_name&op=printpage&artid=$artid\"><img src=\"images/print.gif\" border=\"0\" Alt=\""._PRINTER."\"></a>";
    echo "&nbsp;&nbsp;<a href=\"modules.php?name=$module_name&file=friend&op=&artid=$artid\"><img src=\"modules/$module_name/images/mail.gif\" border=\"0\" Alt=\"Arkadaşına Gönder\" aling=\"absmiddle\"></a>";
    echo "</td></tr>";
    }
    echo "</table><br>";
        if (is_active("Search")) {
        echo "<br><form action=\"modules.php?name=Search&amp;type=sections#results\" method=\"post\">";
        echo "<center><input type=\"name\" name=\"query\" size=\"30\">&nbsp;&nbsp;";
    echo "<input type=\"submit\" name=\"submit\" value=\""._SEARCH."\">";
    echo "</center>";
        echo "</form>";
}
        echo "<br>";
    echo "<center>[ <a href=\"modules.php?name=$module_name\">"._SECRETURN."</a> ]</center>";
    echo "<br>";
    CloseTable();
    //include('modules/Kose_Yazilari/kitap.php');
    include ('footer.php');
}

function tarih_format($tarih)
{
        if ($tarih) {
                $yil = substr($tarih,0,4);
                $ay = substr($tarih,5,2);
                $gun = substr($tarih,8,2);
                $tarihs = mktime(0,0,0,$ay,$gun,$yil);
                $days = array(_IO_SUNDAY,_IO_MONDAY,_IO_TUESDAY,_IO_WEDNESDAY,_IO_THURSDAY,_IO_FRIDAY,_IO_SATURDAY);
                $months = array(_JANUARY,_FEBRUARY,_MARCH,_APRIL,_MAY,_JUNE,_JULY,_AUGUST,_SEPTEMBER,_OCTOBER,_NOVERMBER,_DECEMBER);
                $buay = date("n", $tarihs) - 1;
                $bugun = date("w", $tarihs);
                $bugun1 = date("j", $tarihs);
                $son = $bugun1 . " " . $months[$buay] . " " . $yil . " " . $days[$bugun];
                return $son;
        } else {
                return 0;
        }
}


switch($op) {

    case "viewarticle":
    viewarticle($artid, $page);
    break;

    case "listarticles":
    listarticles($secid);
    break;

    case "printpage":
    PrintSecPage($artid);
    break;

    default:
    listsections();
    break;

    case "postcomment":
        postcomment($artid, $title, $tur, $izdin);
        break;

        case "savecomment":
        savecomment($xanonpost, $uname, $artid, $score, $comments);
        break;

        case "del_comment":
        del_comment($cid, $artid);
        break;
       
    case "listfull":
    listfull($secid);
    break;
   
case "tarih_format":
    tarih_format($tarih);
    break;


}

?>


bu sayfada
Kod:
    OpenTable();
    echo "<center><a href=\"modules.php?name=$module_name&op=printpage&artid=$artid\"><img  src=\"modules/$module_name/images/print.gif\" border=\"0\" Alt=\"Yazdırılabilir Sayfa\" aling=\"absmiddle\"> Yazdırılabilir Sayfa</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"modules.php?name=$module_name&op=postcomment&artid=$artid&title=$title\"><img  src=\"modules/$module_name/images/yorum.gif\" border=\"0\" Alt=\"Yorum Ekle\" aling=\"absmiddle\"> Yorum Ekle</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"modules.php?name=$module_name&file=friend&op=&artid=$artid\"><img  src=\"modules/$module_name/images/mail.gif\" border=\"0\" Alt=\"Arkadaşına Gönder\" aling=\"absmiddle\"> Arkadaşına Gönder</a></center>";
    CloseTable();

kısmını sadece üyelerin görmesini istiyorum.

Kod:
    if (!is_user($user)) {
OpenTable();
    echo "<center><a href=\"modules.php?name=$module_name&op=printpage&artid=$artid\"><img  src=\"modules/$module_name/images/print.gif\" border=\"0\" Alt=\"Yazdırılabilir Sayfa\" aling=\"absmiddle\"> Yazdırılabilir Sayfa</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"modules.php?name=$module_name&op=postcomment&artid=$artid&title=$title\"><img  src=\"modules/$module_name/images/yorum.gif\" border=\"0\" Alt=\"Yorum Ekle\" aling=\"absmiddle\"> Yorum Ekle</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"modules.php?name=$module_name&file=friend&op=&artid=$artid\"><img  src=\"modules/$module_name/images/mail.gif\" border=\"0\" Alt=\"Arkadaşına Gönder\" aling=\"absmiddle\"> Arkadaşına Gönder</a></center>";
    CloseTable();
}
yapıyorum ama o tabloyu üye olanlarda görebiliyor misafirlerde. tam olarak nerede hata yapıyorum ben ?
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2025-07-05, 21:59:47    Mesaj konusu: Forum Arası Reklamlar


Başa dön
mekansiz52
Mesaj: 50+
Mesaj: 50+





Kayıt: Dec 26, 2007
Mesajlar: 74

MesajTarih: 2008-01-30, 15:34:30    Mesaj konusu: Alıntıyla Cevap Gönder

bende de aynı sorun var ama cevap vermiyorlar
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> Php Nuke Modülleri Tüm zamanlar GMT + 3 Saat
1. sayfa (Toplam 1 sayfa)

 
Geçiş Yap:  
Bu forumda yeni başlıklar açamazsınız
Bu forumdaki başlıklara cevap veremezsiniz
Bu forumdaki mesajlarınızı değiştiremezsiniz
Bu forumdaki mesajlarınızı silemezsiniz
Bu forumdaki anketlerde oy kullanamazsınız

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok php hata yardım lüffen wepibo Php Nuke Sorunlarınız 2 2010-07-21, 14:37:43 Son Mesajı Görüntüle
Yeni mesaj yok sql hata veriyor avara1984 Php Nuke Sorunlarınız 0 2010-07-16, 15:35:28 Son Mesajı Görüntüle
Yeni mesaj yok Avatar yüklemede hata veriyor avara1984 Php Nuke Sorunlarınız 1 2010-07-16, 05:23:29 Son Mesajı Görüntüle
Yeni mesaj yok Forum konularına girince hata veriyor avara1984 Php Nuke Sorunlarınız 2 2010-06-19, 00:55:41 Son Mesajı Görüntüle
Yeni mesaj yok Yeni iki modul: Merhumlar ve Kim Nere... kayserili Php Nuke Modülleri 36 2010-06-15, 23:44:02 Son Mesajı Görüntüle

Copyright © 2002-2025 Ali Osman KAHRAMAN - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
netopsiyon®, Ali Osman KAHRAMAN' a ait tescilli bir markadır. İzinsiz kullanılamaz!
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright