Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
473
ME_Haber 2.3 ..(108706 okuma, 145 yanıt) Resim Galerisi Modülü 2.0 ..(121774 okuma, 173 yanıt) Ustalardan Bir Ricam Olac ..(13610 okuma, 6 yanıt) nukecode.com will close ..(11195 okuma, 5 yanıt) super youtube player a lo ..(6335 okuma, 1 yanıt) Need good PHP Haber port ..(5603 okuma, 0 yanıt) Forum Nasil Tam Sayfa Olu ..(35106 okuma, 40 yanıt) Php nuke Forumu Düzenleme ..(9932 okuma, 6 yanıt) Yeni Üyelik Aktivasyon Li ..(10975 okuma, 6 yanıt) Aşk Flashları Modülü ..(6977 okuma, 2 yanıt) resim galeri 2.0 da kateg ..(11413 okuma, 9 yanıt) Yeni iki modul: Merhumlar ..(32366 okuma, 36 yanıt) ürün tanıtım modülü ..(25220 okuma, 23 yanıt) PHP Nuke is out ..(14995 okuma, 13 yanıt) MSN Video Bing Video oldu ..(5194 okuma, 0 yanıt) haberhit.com ..(5785 okuma, 1 yanıt) Bilgi Yarışması 1.0 tama ..(51922 okuma, 72 yanıt) Musıc Box elinde olan var ..(6683 okuma, 2 yanıt) Online Okey , Batak , Tav ..(173166 okuma, 340 yanıt) Emlak Modül ve Blockları ..(12275 okuma, 8 yanıt) WM who ist shampions ..(5040 okuma, 1 yanıt) coppermine resim galerisi ..(5483 okuma, 1 yanıt) Forumda Teşekkür Eklentis ..(9064 okuma, 7 yanıt) free wordpress themes ..(5575 okuma, 1 yanıt) JW image rotator for nsn ..(7642 okuma, 4 yanıt) need Iletisim module ..(11003 okuma, 8 yanıt) Yeni modul: İletişim modu ..(27650 okuma, 33 yanıt) Başvuru Modulu ve Etkinli ..(5827 okuma, 1 yanıt) world cup flash ..(5040 okuma, 0 yanıt) ..:: Php Nuke FTP link Ha ..(4937 okuma, 0 yanıt) yeni phpnuke youtube 2.0 ..(5161 okuma, 1 yanıt) Content Plus Önceki Konu ..(4769 okuma, 0 yanıt) Php nuke Tickets Modülü ..(7972 okuma, 5 yanıt) need help to news time ..(4540 okuma, 0 yanıt) NSN News v3.0 new plugin ..(4828 okuma, 0 yanıt) how to save flash as imag ..(6037 okuma, 2 yanıt) Video Blok Yardım Lütfen. ..(5981 okuma, 2 yanıt) gazete ara ..(9785 okuma, 5 yanıt) Bizim Yazarlar ve Bizim Ş ..(14947 okuma, 14 yanıt) Nuke Reflections v2 Türkç ..(14534 okuma, 14 yanıt) CNB Your Account 750 442 ..(14222 okuma, 13 yanıt) Admin panelindeki simge ç ..(12324 okuma, 9 yanıt) Hosting Modülü ..(14009 okuma, 13 yanıt) Bizim şairler Modülü ..(5178 okuma, 1 yanıt) new plugin for nsn news v ..(4755 okuma, 1 yanıt) php nuke 8.0 türkce dil s ..(6917 okuma, 3 yanıt) Kan Bankası Modül istek ..(6130 okuma, 2 yanıt) Haber Konulari Sayfasinda ..(5753 okuma, 2 yanıt) Kan Bankası Modülünde İsi ..(7053 okuma, 3 yanıt) sonhaberler flash block ..(6619 okuma, 4 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - köşe yazıları
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
agakin Mesaj: 1000+
Kayıt: May 10, 2005 Mesajlar: 1207 Konum: midilisboro
Tarih: 2005-12-22, 00:20:51 Mesaj konusu: köşe yazıları
arkadaşlar köşe yazıları modülünde üye olmayanların yorum yapmasını nasıl engelleriz
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-05-18, 12:55:19 Mesaj konusu: Forum Arası Reklamlar
Başa dön
agakin Mesaj: 1000+
Kayıt: May 10, 2005 Mesajlar: 1207 Konum: midilisboro
Tarih: 2005-12-22, 00:50:27 Mesaj konusu:
neyse ben hallettim
Başa dön
Aliosman Teknik Yönetici
Kayıt: Jul 20, 2002 Mesajlar: 3836 Konum: Balıkesir
Başa dön
agakin Mesaj: 1000+
Kayıt: May 10, 2005 Mesajlar: 1207 Konum: midilisboro
Tarih: 2005-12-22, 02:16:06 Mesaj konusu:
evte bu zaten benim arkadaşım oda yazmış foruma ben hallettim haberi var :)))
Başa dön
amann Mesaj: 1+
Kayıt: Apr 23, 2006 Mesajlar: 2
Tarih: 2006-04-26, 07:02:02 Mesaj konusu:
peki nasil hallediliyor bu sorun.ayni seyi simdi bende yapmam gerek ama cözüm bulamadim
Başa dön
kanake Mesaj: 50+
Kayıt: Dec 04, 2002 Mesajlar: 90
Tarih: 2006-04-26, 12:26:12 Mesaj konusu:
evet anlatta millette bilsin nasil yaptigini.
Başa dön
EbuSeyF Mesaj: 100+
Kayıt: Oct 21, 2003 Mesajlar: 126 Konum: North Cyprus
Tarih: 2006-08-16, 13:44:23 Mesaj konusu:
eee sen hallettin biz ne edek nasıl halledecez ali osman usta yetiş imdat
Başa dön
melik Mesaj: 500+
Kayıt: Sep 06, 2005 Mesajlar: 944 Konum: Elazığ/Kovancılar
Tarih: 2006-08-17, 00:22:46 Mesaj konusu:
Arkadaşlar açıklasaydınız şunu keşke bizede lazım olabilirdi belki..
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-05-18, 12:55:19 Mesaj konusu: Forum Arası Reklamlar
Başa dön
KaaN Mesaj: 500+
Kayıt: Feb 09, 2005 Mesajlar: 971 Konum: Ankara/Keçiören
Tarih: 2006-08-17, 00:25:29 Mesaj konusu:
Ee abi herkes seni bekliyor
Gökhan Abi nete girince anlatır. Sanırım kodlarda; if user falan var. Orada bir rakam oynaması yaptı. 1,0 gibi. Öyle birşey olabilir.
Başa dön
melik Mesaj: 500+
Kayıt: Sep 06, 2005 Mesajlar: 944 Konum: Elazığ/Kovancılar
Tarih: 2006-08-17, 01:59:58 Mesaj konusu:
Agakin eğer bu forumu okuyorsan ve bilerek cevap yazmıyorsan sana verdiğim tüm emekleri haram ederim valla bak..
Başa dön
nightwish Mesaj: 50+
Kayıt: Aug 06, 2006 Mesajlar: 89 Konum: C:\WINDOWS\system32
Tarih: 2006-08-17, 02:23:12 Mesaj konusu:
valla bende bekliyorum.. :)
hayrına biri cewaplasın şu sorunu :)
Başa dön
solhanli Mesaj: 100+
Kayıt: Jul 07, 2005 Mesajlar: 105 Konum: Bingöl
Tarih: 2008-04-22, 01:19:47 Mesaj konusu:
agakin, sorunu hallettim diye başlık açmış ama o kadar çağrıya rağmen cevap vermemiş.
Olmadı be usta...
Dostlar, hayrınıza bu çözümü bir yazsanız seviniriz.
Başa dön
solhanli Mesaj: 100+
Kayıt: Jul 07, 2005 Mesajlar: 105 Konum: Bingöl
Tarih: 2008-04-23, 01:18:29 Mesaj konusu:
Arkadaşlar, yok mu çözüm sunan?
Kendimce biraz uğraştım ama olmadı.
if (!is_user($user)) {
...........
}
kodu işe yaramıyor. else kodu koyunca, if'ten sonraki ünlem işaretini kullandığımda başka çıkıyor, kullanmadığımda başka çıkıyor.
Anlayacağınız tuhaf bir durum, normalde yukarıdaki kodun çalışması lazım ama burada işe yaramıyor.
Bekliyorum Üstadlar...
Başa dön
ekizteki Mesaj: 200+
Kayıt: Sep 27, 2005 Mesajlar: 222 Konum: bursa
Tarih: 2008-04-24, 19:47:15 Mesaj konusu:
www.ahiskalilar.org sitesindeki gibi köşeyazıları modulunu nerden bulabilirim
modul v2 surumu olarak gözüküyor indirme adresi olarakda netopsiyon.com fakat
buradaki modulle o cok farklı yardımcı olursanız sevinirim.
Başa dön
solhanli Mesaj: 100+
Kayıt: Jul 07, 2005 Mesajlar: 105 Konum: Bingöl
Tarih: 2008-04-27, 00:47:37 Mesaj konusu: Re: köşe yazıları
Nihayet çözebildim. 1-2 saatimi aldı ama başarmanın verdiği duygu çok güzelmiş.
Şu şekilde düzenlenebilir.
Köşe Yazarları modülünde index.php'yi açıyoruz.
Kod:
<a href=\"modules.php?name=$module_name&op=postcomment&artid=$artid&title=$title\"><img onmouseover=high(this) style=\"FILTER: alpha(opacity=30); moz-opacity: 0.3\" onmouseout=low(this) src=\"modules/$module_name/images/yorum.gif\" border=\"0\" Alt=\"Yorum Ekle\" aling=\"absmiddle\"> Yorum Ekle</a>
kodlarını bulup silin ve bir alt satıra
Kod:
if (is_user($user)) {
echo "<br><br><center><a href=\"modules.php?name=$module_name&op=postcomment&artid=$artid&title=$title\"><img src=\"modules/$module_name/images/yorum.jpg\" border=\"0\" Alt=\"Yorum Ekle\" aling=\"absmiddle\"></a><br></center>";
} else {
echo "<br><br><center><b>Yorum yazmak için lütfen <a href=\"modules.php?name=Your_Account\"> üye girişi yapın...</a><br>Üye değilseniz eğer lütfen <a href=\"modules.php?name=Your_Account&op=new_user\">üye olun...</a></center></b><br>";
}
kodunu ekleyin.
function viewarticle($artid, $page) { satırını bulun ve altındaki global satırına $user değişkenini ekleyin.
İşlem tamamdır... En son solhanli tarafından 2008-04-29, 23:32:13 tarihinde değiştirildi, toplam 2 kere değiştirildi
Başa dön
ekizteki Mesaj: 200+
Kayıt: Sep 27, 2005 Mesajlar: 222 Konum: bursa
Tarih: 2008-04-28, 22:46:21 Mesaj konusu:
Tamamdır çalıştı sagol kardeş allah razı olsun kardeş.
Modulu yapanlar keşke bu özelliği baştan ekleseler.
Başa dön
solhanli Mesaj: 100+
Kayıt: Jul 07, 2005 Mesajlar: 105 Konum: Bingöl
Tarih: 2008-04-29, 00:05:12 Mesaj konusu:
Arkadaşlar, bir önceki düzenlemede köşe yazısına yorum eklenmemişse yorum ekle yazısı çıkmıyor. Bir önceki yazımdaki düzenlemeyi değiştirdim. Bu son düzenlemeyle hiçbir sorun çıkmaması lazım.
Başa dön
solhanli Mesaj: 100+
Kayıt: Jul 07, 2005 Mesajlar: 105 Konum: Bingöl
Tarih: 2008-04-29, 00:10:01 Mesaj konusu:
ekizteki :
Tamamdır çalıştı sagol kardeş allah razı olsun kardeş.
Modulu yapanlar keşke bu özelliği baştan ekleseler.
Önemli değil.
Bunu hazırlayan arkadaşa her zaman teşekkür borçluyuz. Ufak tefek eksiklikleri olabilir, o kadarını da biz yapalım.
Başa dön
ekizteki Mesaj: 200+
Kayıt: Sep 27, 2005 Mesajlar: 222 Konum: bursa
Tarih: 2008-04-29, 22:14:08 Mesaj konusu:
solhanli :
Arkadaşlar, bir önceki düzenlemede köşe yazısına yorum eklenmemişse yorum ekle yazısı çıkmıyor. Bir önceki yazımdaki düzenlemeyi değiştirdim. Bu son düzenlemeyle hiçbir sorun çıkmaması lazım.
Denedim malesef olmadı yorum yazılmadan yorum ekle kısmı cıkmıyor.
Başa dön
solhanli Mesaj: 100+
Kayıt: Jul 07, 2005 Mesajlar: 105 Konum: Bingöl
Tarih: 2008-04-29, 23:31:10 Mesaj konusu:
Önceki düzenlemeyle çıkmıyordu ama yukarıdaki son düzenlemeyle sorun olmaması lazım. Kendi sitemde o düzenlemeyi yaptım. Herhangi bir sorun yok...
Başa dön
ekizteki Mesaj: 200+
Kayıt: Sep 27, 2005 Mesajlar: 222 Konum: bursa
Tarih: 2008-04-30, 22:40:33 Mesaj konusu:
malesef olmuyor eskiden yorum yazılanlarda dahi üye girişi yaptığım halde şu hatayı veriyor
yorum
Yorum yazmak için lütfen üye girişi yapın...
Üye değilseniz eğer lütfen üye olun...
modulun index.php nin düzenlemiş halinin kodlarını aktarısmısın
Başa dön
solhanli Mesaj: 100+
Kayıt: Jul 07, 2005 Mesajlar: 105 Konum: Bingöl
Tarih: 2008-04-30, 22:59:29 Mesaj konusu: Re: köşe yazıları
Kendime göre başka değişiklikler de yaptım. İşine yararsa buyur:
Kod:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Complete Add-On */
/* Copyright (c) 2004 by Mutlu Edin */
/* http://www.bankaciyiz.biz */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
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\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center><br>";
CloseTable();
echo "<br>";
OpenTable();
echo "<center><font class=\"title\">"._SECWELCOME." $sitename.</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\" height='75' width='145' 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'> <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> </td</tr>";
}
echo "<td> </td>";
}
echo "</table></center>";
if (is_active("Search")) {
echo "<br><form action=\"modules.php?name=Search&type=sections#results\" method=\"post\">";
echo "<center><input type=\"name\" name=\"query\" size=\"30\"> ";
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\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center><br>";
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>"._FOLLOWINGART."</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=\"15%\"><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=\"15%\"><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\"> <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 "<a href=\"modules.php?name=$module_name&file=printpdf&artid=$artid\"><img src=\"images/pdf.gif\" border=\"0\" Alt=\"PDF\" width=\"20\" height=\"19\"></a>";
echo "<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
OpenTable();
echo "<center><b><a href=\"modules.php?name=$module_name&op=listfull&secid=$yazar\"title=\"Bütün Yazıları\"><img src=\"modules/$module_name/images/devam.gif\"border=\"0\" Alt=\"Bütün Yazıları\" aling=\"absmiddle\"> Bütün yazıları...</a></b></center>";
CloseTable();
//diğer yazılar
if (is_active("Search")) {
echo "<br><form action=\"modules.php?name=Search&type=sections#results\" method=\"post\">";
echo "<center><input type=\"name\" name=\"query\" size=\"30\"> ";
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 viewarticle($artid, $page) {
global $prefix, $user, $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\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center><br>";
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 .= " ";
}
$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 $next_page";
echo "</font>";
echo "</center>";
echo "<b>$secname<br><a href=\"mailto:$mail\">$mail</b></a><br><br>";
echo "[ Tüm yazılarına ulaşmak için <a href=\"modules.php?name=$module_name&op=listfull&secid=$secid\">tıklayın</a> ]<br><br><br><br>";
//echo "<center><br><br>"._READS2." <b>$counter</b> "._ANDHAS." <b>.</b> "."<br><br>";
OpenTable();
echo "<center><a href=\"modules.php?name=$module_name&op=printpage&artid=$artid\"><img onmouseover=high(this) style=\"FILTER: alpha(opacity=30); moz-opacity: 0.3\" onmouseout=low(this) src=\"modules/$module_name/images/print.gif\" border=\"0\" Alt=\"Yazdırılabilir Sayfa\" aling=\"absmiddle\"> Yazdırılabilir Sayfa</a> <a href=\"modules.php?name=$module_name&file=printpdf&artid=$artid\"><img onmouseover=high(this) style=\"FILTER: alpha(opacity=30); moz-opacity: 0.3\" onmouseout=low(this) src=\"modules/Kose_Yazilari/images/pdf.gif\" border=\"0\" Alt=\"Pdf Formatı\" aling=\"absmiddle\"> Pdf Formatı</a> <a href=\"modules.php?name=$module_name&file=friend&op=&artid=$artid\"><img onmouseover=high(this) style=\"FILTER: alpha(opacity=30); moz-opacity: 0.3\" onmouseout=low(this) src=\"modules/$module_name/images/mail.gif\" border=\"0\" Alt=\"Arkadaşına Gönder\" aling=\"absmiddle\"> Arkadaşına Gönder</a><br><br></center>";
if (is_user($user)) {
echo "<center><a href=\"modules.php?name=$module_name&op=postcomment&artid=$artid&title=$title\"><img src=\"modules/$module_name/images/yorum.jpg\" border=\"0\" Alt=\"Yorum Ekle\" aling=\"absmiddle\"></a><br></center>";
} else {
echo "<center><b>Yorum yazmak için lütfen <a href=\"modules.php?name=Your_Account\"> üye girişi yapın...</a><br>Üye değilseniz eğer lütfen <a href=\"modules.php?name=Your_Account&op=new_user\">üye olun...</a></center></b><br>";
}
CloseTable();
echo "</font></center><br><br>";
echo "<center>[ <a href=\"modules.php?name=$module_name&op=listarticles&secid=$secid\">"._BACKTO." $secname</a> ]"
." - [ <a href=\"modules.php?name=$module_name\">"._SECINDEX."</a> ]";
echo "</center>";
echo "<br>";
CloseTable();
//yorum
$title = urldecode($title);
if (($page == 1) OR ($page == "")) {
if (r_comments == 1)
OpenTable();
r_comments($artid, $title);
}
//yorum
//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&artid=$artid</a></font></center>
</td></tr></table>
</body>
</html>
";
}
//yorum
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\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center><br>";
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><br>";
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>"._FAIR."<br><br>";
echo "<b>"._YOURCOMMENT."</b><br>";
echo "<textarea name=comments rows=10 cols=70></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%\"> </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\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center><br>";
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, $user, $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) {
OpenTable();
echo "<center><font class=\"title\">YORUMLAR</font></center><br>";
//if (is_user($user)) {
//echo "<center><a href=\"modules.php?name=$module_name&op=postcomment&artid=$artid&title=$title\"><img src=\"modules/$module_name/images/yorum.jpg\" border=\"0\" Alt=\"Yorum Ekle\" aling=\"absmiddle\"></a><br></center>";
//} else {
//echo "<center><b>Yorum yazmak için lütfen <a href=\"modules.php?name=Your_Account\"> üye girişi yapın...</a><br>Üye değilseniz eğer lütfen <a href=\"modules.php?name=Your_Account&op=new_user\">üye olun...</a></center></b><br>";
//}
CloseTable();
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";
}
}
//Yorum
//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\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center><br>";
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>"._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=\"15%\"><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=\"15%\"><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\"> <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 "<a href=\"modules.php?name=$module_name&file=printpdf&artid=$artid\"><img src=\"images/pdf.gif\" border=\"0\" Alt=\"PDF\" width=\"20\" height=\"19\"></a>";
echo "<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&type=sections#results\" method=\"post\">";
echo "<center><input type=\"name\" name=\"query\" size=\"30\"> ";
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;
}
?>
Başa dön
ekizteki Mesaj: 200+
Kayıt: Sep 27, 2005 Mesajlar: 222 Konum: bursa
Tarih: 2008-04-30, 23:15:56 Mesaj konusu: Re: köşe yazıları
benim index
Kod:
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* Complete Add-On */
/* Copyright (c) 2004 by Mutlu Edin */
/* http://www.bankaciyiz.biz */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
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\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center><br>";
CloseTable();
echo "<br>";
OpenTable();
echo "<center><font class=\"title\">"._SECWELCOME." $sitename.</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\" height='112' width='86' 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'> <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> </td</tr>";
}
echo "<td> </td>";
}
echo "</table></center>";
if (is_active("Search")) {
echo "<br><form action=\"modules.php?name=Search&type=sections#results\" method=\"post\">";
echo "<center><input type=\"name\" name=\"query\" size=\"30\"> ";
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\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center><br>";
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>"._FOLLOWINGART."</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=\"15%\"><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=\"15%\"><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\"> <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 "<a href=\"modules.php?name=$module_name&file=printpdf&artid=$artid\"><img src=\"images/pdf.gif\" border=\"0\" Alt=\"PDF\" width=\"20\" height=\"19\"></a>";
echo "<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
OpenTable();
echo "<center><b><a href=\"modules.php?name=$module_name&op=listfull&secid=$yazar\"title=\"Bütün Yazıları\"><img src=\"modules/$module_name/images/devam.gif\"border=\"0\" Alt=\"Bütün Yazıları\" aling=\"absmiddle\"> Bütün yazıları...</a></b></center>";
CloseTable();
//diğer yazılar
if (is_active("Search")) {
echo "<br><form action=\"modules.php?name=Search&type=sections#results\" method=\"post\">";
echo "<center><input type=\"name\" name=\"query\" size=\"30\"> ";
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 viewarticle($artid, $page) {
global $prefix,$user, $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\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center><br>";
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 .= " ";
}
$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 $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." <b>$words</b> "._TOTALWORDS2."<br><br>";
OpenTable();
echo "<center><a href=\"modules.php?name=$module_name&op=printpage&artid=$artid\"><img onmouseover=high(this) style=\"FILTER: alpha(opacity=30); moz-opacity: 0.3\" onmouseout=low(this) src=\"modules/$module_name/images/print.gif\" border=\"0\" Alt=\"Yazdırılabilir Sayfa\" aling=\"absmiddle\"> Yazdırılabilir Sayfa</a> if (is_user($user)) {
echo "<br><br><center><a href=\"modules.php?name=$module_name&op=postcomment&artid=$artid&title=$title\"><img src=\"modules/$module_name/images/yorum.jpg\" border=\"0\" Alt=\"Yorum Ekle\" aling=\"absmiddle\"></a><br></center>";
} else {
echo "<br><br><center><b>Yorum yazmak için lütfen <a href=\"modules.php?name=Your_Account\"> üye girişi yapın...</a><br>Üye değilseniz eğer lütfen <a href=\"modules.php?name=Your_Account&op=new_user\">üye olun...</a></center></b><br>";
}<?php <a href=\"modules.php?name=$module_name&file=friend&op=&artid=$artid\"><img onmouseover=high(this) style=\"FILTER: alpha(opacity=30); moz-opacity: 0.3\" onmouseout=low(this) 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\">"._BACKTO." $secname</a> ]"
." - [ <a href=\"modules.php?name=$module_name\">"._SECINDEX."</a> ]";
echo "</center>";
echo "<br>";
CloseTable();
//yorum
$title = urldecode($title);
if (($page == 1) OR ($page == "")) {
if (r_comments == 1)
OpenTable();
r_comments($artid, $title);
}
//yorum
//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&artid=$artid</a></font></center>
</td></tr></table>
</body>
</html>
";
}
//yorum
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\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center><br>";
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><br>";
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>"._FAIR."<br><br>";
echo "<b>"._YOURCOMMENT."</b><br>";
echo "<textarea name=comments rows=10 cols=70></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%\"> </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\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center><br>";
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) {
OpenTable();
echo "<center><font class=\"title\">"._COMMENTS."</font></center>";
CloseTable();
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";
}
}
//Yorum
//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\" border=0 vspace=2 title=\"Köşe Yazıları\"></a></center><br>";
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>"._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=\"15%\"><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=\"15%\"><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\"> <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 "<a href=\"modules.php?name=$module_name&file=printpdf&artid=$artid\"><img src=\"images/pdf.gif\" border=\"0\" Alt=\"PDF\" width=\"20\" height=\"19\"></a>";
echo "<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&type=sections#results\" method=\"post\">";
echo "<center><input type=\"name\" name=\"query\" size=\"30\"> ";
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;
}
?>
yine olmadi teşekkür ederim ilgilendiğin için.
Başa dön
solhanli Mesaj: 100+
Kayıt: Jul 07, 2005 Mesajlar: 105 Konum: Bingöl
Tarih: 2008-05-01, 00:02:36 Mesaj konusu:
Benim indexi denesene, kodları yanlış yerleştirmişsin.
if (is_user($user)) { ile başlayan kodu, sildiğin yere değil bir alt satıra ekleyeceksin.
Ayrıca $user değişkenini eklerken bir önceki değişkenle arasına boşluk bırakmamışsın, o da etkileyebilir.
Başa dön
ekizteki Mesaj: 200+
Kayıt: Sep 27, 2005 Mesajlar: 222 Konum: bursa
Tarih: 2008-05-01, 15:53:51 Mesaj konusu:
şuan düzeldi tekrar teşekkür ederim allah razı olsun kardeş.
Başa dön
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