Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
1176
ME_Haber 2.3 ..(109060 okuma, 145 yanıt) Resim Galerisi Modülü 2.0 ..(122299 okuma, 173 yanıt) Ustalardan Bir Ricam Olac ..(13662 okuma, 6 yanıt) nukecode.com will close ..(11224 okuma, 5 yanıt) super youtube player a lo ..(6350 okuma, 1 yanıt) Need good PHP Haber port ..(5617 okuma, 0 yanıt) Forum Nasil Tam Sayfa Olu ..(35239 okuma, 40 yanıt) Php nuke Forumu Düzenleme ..(9963 okuma, 6 yanıt) Yeni Üyelik Aktivasyon Li ..(11004 okuma, 6 yanıt) Aşk Flashları Modülü ..(7000 okuma, 2 yanıt) resim galeri 2.0 da kateg ..(11442 okuma, 9 yanıt) Yeni iki modul: Merhumlar ..(32445 okuma, 36 yanıt) ürün tanıtım modülü ..(25275 okuma, 23 yanıt) PHP Nuke is out ..(15072 okuma, 13 yanıt) MSN Video Bing Video oldu ..(5208 okuma, 0 yanıt) haberhit.com ..(5801 okuma, 1 yanıt) Bilgi Yarışması 1.0 tama ..(52124 okuma, 72 yanıt) Musıc Box elinde olan var ..(6704 okuma, 2 yanıt) Online Okey , Batak , Tav ..(173706 okuma, 340 yanıt) Emlak Modül ve Blockları ..(12325 okuma, 8 yanıt) WM who ist shampions ..(5055 okuma, 1 yanıt) coppermine resim galerisi ..(5498 okuma, 1 yanıt) Forumda Teşekkür Eklentis ..(9101 okuma, 7 yanıt) free wordpress themes ..(5589 okuma, 1 yanıt) JW image rotator for nsn ..(7668 okuma, 4 yanıt) need Iletisim module ..(11045 okuma, 8 yanıt) Yeni modul: İletişim modu ..(27722 okuma, 33 yanıt) Başvuru Modulu ve Etkinli ..(5843 okuma, 1 yanıt) world cup flash ..(5053 okuma, 0 yanıt) ..:: Php Nuke FTP link Ha ..(4949 okuma, 0 yanıt) yeni phpnuke youtube 2.0 ..(5172 okuma, 1 yanıt) Content Plus Önceki Konu ..(4782 okuma, 0 yanıt) Php nuke Tickets Modülü ..(7993 okuma, 5 yanıt) need help to news time ..(4556 okuma, 0 yanıt) NSN News v3.0 new plugin ..(4844 okuma, 0 yanıt) how to save flash as imag ..(6068 okuma, 2 yanıt) Video Blok Yardım Lütfen. ..(6002 okuma, 2 yanıt) gazete ara ..(9808 okuma, 5 yanıt) Bizim Yazarlar ve Bizim Ş ..(14990 okuma, 14 yanıt) Nuke Reflections v2 Türkç ..(14596 okuma, 14 yanıt) CNB Your Account 750 442 ..(14293 okuma, 13 yanıt) Admin panelindeki simge ç ..(12384 okuma, 9 yanıt) Hosting Modülü ..(14051 okuma, 13 yanıt) Bizim şairler Modülü ..(5191 okuma, 1 yanıt) new plugin for nsn news v ..(4769 okuma, 1 yanıt) php nuke 8.0 türkce dil s ..(6937 okuma, 3 yanıt) Kan Bankası Modül istek ..(6150 okuma, 2 yanıt) Haber Konulari Sayfasinda ..(5769 okuma, 2 yanıt) Kan Bankası Modülünde İsi ..(7077 okuma, 3 yanıt) sonhaberler flash block ..(6636 okuma, 4 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - köşe yazılarına FCK editörü eklemek
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
berzankocak Mesaj: 300+
Kayıt: May 26, 2007 Mesajlar: 468
Tarih: 2008-05-12, 17:32:31 Mesaj konusu: köşe yazılarına FCK editörü eklemek
arkadaşlar siteme köşe yazıları ekledim ama eklediğim yazılar sürekli bitişi oluyor nasıl düzeltebilirim yada sitemde FCK editörü ekli ama ben bunu köşe yazılarınada eklemek istiyorum nasıl yapbilirim YARDIM bekliyorum
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-06-01, 11:45:00 Mesaj konusu: Forum Arası Reklamlar
Başa dön
berzankocak Mesaj: 300+
Kayıt: May 26, 2007 Mesajlar: 468
Tarih: 2008-05-13, 09:10:46 Mesaj konusu:
cevap yokmu kimseden YARDIM bekliyorum
Başa dön
Bankocu Editör
Kayıt: Jun 02, 2003 Mesajlar: 1842 Konum: Istanbul
Tarih: 2008-05-13, 10:11:40 Mesaj konusu: Re: köşe yazılarına FCK editörü eklemek
Kose_Yazilari\index.php de satır 388 civarındaki kodu:
Kod:
echo "<strong>"._YOURCOMMENT."</strong><br />";
echo "";
//** <textarea name=comments rows=20 cols=70></textarea><br />";
// wysiwyg_textarea("comments", "", "NukeUser", "70", "20");
if (function_exists('Make_TextArea')) {
Make_TextArea('comments', $text, 'postnews');
} else if(function_exists('wysiwyg_textarea')){
wysiwyg_textarea("comments", "", "NukeUser", "70", "20");
} else {
echo "<textarea name=\"comments\" cols=\"70\" rows=\"20\"></textarea>\n";
}
haline çevirirseniz, yorumlar alanı FCKeditöre kavuşur.
Buna benzer kodlamayı textarea geçen her yerde kullanarak her istediğiniz yeri FCKeditor destekli hale getirebilirsiniz.
Yukarıda IF ile başlayan bölümün açıklaması şu şekilde.
Make_TextArea Nuke Evonun wysiwyg fonksiyonunu kontrol ettiği bölümdür. Sitenizde Evo kurulu ise burası çalışır ve sisteminizdeki görsel editör devreye girer.
Eğer Evo yoksa;
} else if( bölümü sorgulanır. (Sizde büyük ihtimal bu var)
wysiwyg_textarea fonksiyonu tanımlıysa görsel editör devreye girer.
Eğer wysiwyg_textarea fonksiyonu da tanımlı değilse standart textarea fonksiyonu çalışacaktır.
Bu kodun avantajı sizin için şu.
Yarın öbür gün FCKeditörü silseniz bile Köşe yazıları modülü standart editörle çalışmaya devam eder, FCKeditör standart Nukeye eklendiğinde otomatik görsel editör devreye girer, eğer sitenizi Evo'ya geçirirseniz de bu sefer Make_TextArea tanımlanmış olacağından Evo'daki dahili tanımlı görsel editör devreye girecektir.
Ayrıca tüm bu IF kontrolunun içine admin olma, üye olma veya Ziyaretçi olma kontrollerini de eklerseniz, admine FCKeditor, Misafire standart text kutusu göstermek gibi çeşitlemeler yapabilirsiniz.
Başa dön
berzankocak Mesaj: 300+
Kayıt: May 26, 2007 Mesajlar: 468
Tarih: 2008-05-13, 12:40:31 Mesaj konusu: Re: köşe yazılarına FCK editörü eklemek
Bankocu :
Kose_Yazilari\index.php de satır 388 civarındaki kodu:
Kod:
echo "<strong>"._YOURCOMMENT."</strong><br />";
echo "";
//** <textarea name=comments rows=20 cols=70></textarea><br />";
// wysiwyg_textarea("comments", "", "NukeUser", "70", "20");
if (function_exists('Make_TextArea')) {
Make_TextArea('comments', $text, 'postnews');
} else if(function_exists('wysiwyg_textarea')){
wysiwyg_textarea("comments", "", "NukeUser", "70", "20");
} else {
echo "<textarea name=\"comments\" cols=\"70\" rows=\"20\"></textarea>\n";
}
haline çevirirseniz, yorumlar alanı FCKeditöre kavuşur.
Buna benzer kodlamayı textarea geçen her yerde kullanarak her istediğiniz yeri FCKeditor destekli hale getirebilirsiniz.
Yukarıda IF ile başlayan bölümün açıklaması şu şekilde.
Make_TextArea Nuke Evonun wysiwyg fonksiyonunu kontrol ettiği bölümdür. Sitenizde Evo kurulu ise burası çalışır ve sisteminizdeki görsel editör devreye girer.
Eğer Evo yoksa;
} else if( bölümü sorgulanır. (Sizde büyük ihtimal bu var)
wysiwyg_textarea fonksiyonu tanımlıysa görsel editör devreye girer.
Eğer wysiwyg_textarea fonksiyonu da tanımlı değilse standart textarea fonksiyonu çalışacaktır.
Bu kodun avantajı sizin için şu.
Yarın öbür gün FCKeditörü silseniz bile Köşe yazıları modülü standart editörle çalışmaya devam eder, FCKeditör standart Nukeye eklendiğinde otomatik görsel editör devreye girer, eğer sitenizi Evo'ya geçirirseniz de bu sefer Make_TextArea tanımlanmış olacağından Evo'daki dahili tanımlı görsel editör devreye girecektir.
Ayrıca tüm bu IF kontrolunun içine admin olma, üye olma veya Ziyaretçi olma kontrollerini de eklerseniz, admine FCKeditor, Misafire standart text kutusu göstermek gibi çeşitlemeler yapabilirsiniz.
arkadaşım ben yapamadım sana Kose_Yazilari\index.php kodlarını buraya ekliyorum siz ekliyip veriseniz çok sevinirim
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 (!eregi("modules.php", $PHP_SELF)) {
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ı";
$index = 0;
$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, $dbi, $module_name, $sectionrow;
include ('header.php');
$result = sql_query("select secid, secname, image, mail, active from ".$prefix."_sections WHERE active='1' order by secname", $dbi);
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) = sql_fetch_row($result, $dbi)) {
//başla
$cresult = sql_query("select artid, title from ".$prefix."_seccont WHERE secid=$secid ORDER BY artid DESC limit 1", $dbi);
while (list($artid, $title) = sql_fetch_row($cresult, $dbi))
//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 = sql_query("select artid, title, tarih from ".$prefix."_seccont WHERE secid=$secid ORDER BY artid DESC limit 1", $dbi);
while (list($artid, $title, $tarih) = sql_fetch_row($cresult, $dbi))
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, $dbi, $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 = sql_query("select secname from ".$prefix."_sections where secid=$secid", $dbi);
list($secname) = sql_fetch_row($result, $dbi);
$result = sql_query("select artid, secid, title, content, counter, tarih from ".$prefix."_seccont where secid=$secid ORDER BY artid DESC LIMIT 0,5", $dbi);
$yazar =$secid;
OpenTable();
$result2 = sql_query("select image, mail from ".$prefix."_sections where secid=$secid", $dbi);
list($image, $mail) = sql_fetch_row($result2, $dbi);
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) = sql_fetch_row($result, $dbi)) {
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, $dbi, $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 == "")) {
sql_query("update ".$prefix."_seccont set counter=counter+1 where artid='$artid'", $dbi);
}
$result = sql_query("select artid, secid, title, content, counter, tarih from ".$prefix."_seccont where artid=$artid", $dbi);
list($artid, $secid, $title, $content, $counter, $tarih) = sql_fetch_row($result, $dbi);
$result2 = sql_query("select secid, secname, image, mail from ".$prefix."_sections where secid=$secid", $dbi);
list($secid, $secname, $image, $mail) = sql_fetch_row($result2, $dbi);
$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> <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&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> <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, $dbi, $module_name, $theme;
$result = sql_query("select secid, title, content, tarih from ".$prefix."_seccont where artid=$artid", $dbi);
list($secid, $title, $content, $tarih) = sql_fetch_row($result, $dbi);
$result2 = sql_query("select secname from ".$prefix."_sections where secid=$secid", $dbi);
list($secname) = sql_fetch_row($result2, $dbi);
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, $dbi, $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)));
sql_query("insert into ".$prefix."_sections_comments values (NULL, '$artid', '$uname', now(), '$comments', '$score')", $dbi);
Header("Location: modules.php?name=$module_name&op=viewarticle&artid=$artid#$artid");
}
}
function r_comments($artid, $title) {
global $admin, $prefix, $dbi, $module_name, $num, $artid;
$result = sql_query("select cid, userid, date, comments, score from ".$prefix."_sections_comments where rid='$artid' ORDER BY date DESC", $dbi);
while(list($cid, $uname, $date, $comments, $score) = sql_fetch_row($result, $dbi)) {
$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, $dbi, $module_name;
if (is_admin($admin)) {
sql_query("delete from ".$prefix."_sections_comments where cid='$cid'", $dbi);
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, $dbi, $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 = sql_query("select secname from ".$prefix."_sections where secid=$secid", $dbi);
list($secname) = sql_fetch_row($result, $dbi);
$result = sql_query("select artid, secid, title, content, counter, tarih from ".$prefix."_seccont where secid=$secid ORDER BY artid DESC", $dbi);
OpenTable();
$result2 = sql_query("select image, mail from ".$prefix."_sections where secid=$secid", $dbi);
list($image, $mail) = sql_fetch_row($result2, $dbi);
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) = sql_fetch_row($result, $dbi)) {
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
Bankocu Editör
Kayıt: Jun 02, 2003 Mesajlar: 1842 Konum: Istanbul
Tarih: 2008-05-13, 13:03:47 Mesaj konusu: Re: köşe yazılarına FCK editörü eklemek
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 (!eregi("modules.php", $PHP_SELF)) {
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ı";
$index = 0;
$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, $dbi, $module_name, $sectionrow;
include ('header.php');
$result = sql_query("select secid, secname, image, mail, active from ".$prefix."_sections WHERE active='1' order by secname", $dbi);
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) = sql_fetch_row($result, $dbi)) {
//başla
$cresult = sql_query("select artid, title from ".$prefix."_seccont WHERE secid=$secid ORDER BY artid DESC limit 1", $dbi);
while (list($artid, $title) = sql_fetch_row($cresult, $dbi))
//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 = sql_query("select artid, title, tarih from ".$prefix."_seccont WHERE secid=$secid ORDER BY artid DESC limit 1", $dbi);
while (list($artid, $title, $tarih) = sql_fetch_row($cresult, $dbi))
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, $dbi, $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 = sql_query("select secname from ".$prefix."_sections where secid=$secid", $dbi);
list($secname) = sql_fetch_row($result, $dbi);
$result = sql_query("select artid, secid, title, content, counter, tarih from ".$prefix."_seccont where secid=$secid ORDER BY artid DESC LIMIT 0,5", $dbi);
$yazar =$secid;
OpenTable();
$result2 = sql_query("select image, mail from ".$prefix."_sections where secid=$secid", $dbi);
list($image, $mail) = sql_fetch_row($result2, $dbi);
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) = sql_fetch_row($result, $dbi)) {
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, $dbi, $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 == "")) {
sql_query("update ".$prefix."_seccont set counter=counter+1 where artid='$artid'", $dbi);
}
$result = sql_query("select artid, secid, title, content, counter, tarih from ".$prefix."_seccont where artid=$artid", $dbi);
list($artid, $secid, $title, $content, $counter, $tarih) = sql_fetch_row($result, $dbi);
$result2 = sql_query("select secid, secname, image, mail from ".$prefix."_sections where secid=$secid", $dbi);
list($secid, $secname, $image, $mail) = sql_fetch_row($result2, $dbi);
$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> <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&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> <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, $dbi, $module_name, $theme;
$result = sql_query("select secid, title, content, tarih from ".$prefix."_seccont where artid=$artid", $dbi);
list($secid, $title, $content, $tarih) = sql_fetch_row($result, $dbi);
$result2 = sql_query("select secname from ".$prefix."_sections where secid=$secid", $dbi);
list($secname) = sql_fetch_row($result2, $dbi);
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>";
// *********************** Değişen yerler burada *************
if (function_exists('Make_TextArea')) {
Make_TextArea('comments', $text, 'postnews');
} else if(function_exists('wysiwyg_textarea')){
wysiwyg_textarea("comments", "", "Default", "70", "20");
// wysiwyg_textarea("comments", "", "NukeUser", "70", "20"); // Default toolbar yoksa bunu kullanın.
} else {
echo "<textarea name=\"comments\" cols=\"70\" rows=\"20\"></textarea>\n";
}
// *********************** Değişen yerler burada *************
echo "<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, $dbi, $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)));
sql_query("insert into ".$prefix."_sections_comments values (NULL, '$artid', '$uname', now(), '$comments', '$score')", $dbi);
Header("Location: modules.php?name=$module_name&op=viewarticle&artid=$artid#$artid");
}
}
function r_comments($artid, $title) {
global $admin, $prefix, $dbi, $module_name, $num, $artid;
$result = sql_query("select cid, userid, date, comments, score from ".$prefix."_sections_comments where rid='$artid' ORDER BY date DESC", $dbi);
while(list($cid, $uname, $date, $comments, $score) = sql_fetch_row($result, $dbi)) {
$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, $dbi, $module_name;
if (is_admin($admin)) {
sql_query("delete from ".$prefix."_sections_comments where cid='$cid'", $dbi);
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, $dbi, $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 = sql_query("select secname from ".$prefix."_sections where secid=$secid", $dbi);
list($secname) = sql_fetch_row($result, $dbi);
$result = sql_query("select artid, secid, title, content, counter, tarih from ".$prefix."_seccont where secid=$secid ORDER BY artid DESC", $dbi);
OpenTable();
$result2 = sql_query("select image, mail from ".$prefix."_sections where secid=$secid", $dbi);
list($image, $mail) = sql_fetch_row($result2, $dbi);
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) = sql_fetch_row($result, $dbi)) {
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;
}
?>
Default toolbar yoksa yorum içine aldığım NukeUser toolbarı olan satırı kullanın.
Başa dön
sima19 Mesaj: 1000+
Kayıt: Oct 07, 2006 Mesajlar: 1856 Konum: Dünya'nın Bi Yerinden
Tarih: 2008-05-13, 13:16:03 Mesaj konusu: Re: köşe yazılarına FCK editörü eklemek
tinymce_ajax editör(resim ve video uploadLı)
http://www.phpturk.de/dosya/view_file/4.html
Bu adresten indirip 1 dakikada kurabilirsin.
köşeyazarları, mesajlar,block ekleme, vb modullerde çıkıyor...
Başa dön
berzankocak Mesaj: 300+
Kayıt: May 26, 2007 Mesajlar: 468
Tarih: 2008-05-13, 14:58:55 Mesaj konusu: Re: köşe yazılarına FCK editörü eklemek
Bankocu :
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 (!eregi("modules.php", $PHP_SELF)) {
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ı";
$index = 0;
$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, $dbi, $module_name, $sectionrow;
include ('header.php');
$result = sql_query("select secid, secname, image, mail, active from ".$prefix."_sections WHERE active='1' order by secname", $dbi);
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) = sql_fetch_row($result, $dbi)) {
//başla
$cresult = sql_query("select artid, title from ".$prefix."_seccont WHERE secid=$secid ORDER BY artid DESC limit 1", $dbi);
while (list($artid, $title) = sql_fetch_row($cresult, $dbi))
//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 = sql_query("select artid, title, tarih from ".$prefix."_seccont WHERE secid=$secid ORDER BY artid DESC limit 1", $dbi);
while (list($artid, $title, $tarih) = sql_fetch_row($cresult, $dbi))
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, $dbi, $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 = sql_query("select secname from ".$prefix."_sections where secid=$secid", $dbi);
list($secname) = sql_fetch_row($result, $dbi);
$result = sql_query("select artid, secid, title, content, counter, tarih from ".$prefix."_seccont where secid=$secid ORDER BY artid DESC LIMIT 0,5", $dbi);
$yazar =$secid;
OpenTable();
$result2 = sql_query("select image, mail from ".$prefix."_sections where secid=$secid", $dbi);
list($image, $mail) = sql_fetch_row($result2, $dbi);
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) = sql_fetch_row($result, $dbi)) {
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, $dbi, $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 == "")) {
sql_query("update ".$prefix."_seccont set counter=counter+1 where artid='$artid'", $dbi);
}
$result = sql_query("select artid, secid, title, content, counter, tarih from ".$prefix."_seccont where artid=$artid", $dbi);
list($artid, $secid, $title, $content, $counter, $tarih) = sql_fetch_row($result, $dbi);
$result2 = sql_query("select secid, secname, image, mail from ".$prefix."_sections where secid=$secid", $dbi);
list($secid, $secname, $image, $mail) = sql_fetch_row($result2, $dbi);
$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> <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&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> <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, $dbi, $module_name, $theme;
$result = sql_query("select secid, title, content, tarih from ".$prefix."_seccont where artid=$artid", $dbi);
list($secid, $title, $content, $tarih) = sql_fetch_row($result, $dbi);
$result2 = sql_query("select secname from ".$prefix."_sections where secid=$secid", $dbi);
list($secname) = sql_fetch_row($result2, $dbi);
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>";
// *********************** Değişen yerler burada *************
if (function_exists('Make_TextArea')) {
Make_TextArea('comments', $text, 'postnews');
} else if(function_exists('wysiwyg_textarea')){
wysiwyg_textarea("comments", "", "Default", "70", "20");
// wysiwyg_textarea("comments", "", "NukeUser", "70", "20"); // Default toolbar yoksa bunu kullanın.
} else {
echo "<textarea name=\"comments\" cols=\"70\" rows=\"20\"></textarea>\n";
}
// *********************** Değişen yerler burada *************
echo "<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, $dbi, $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)));
sql_query("insert into ".$prefix."_sections_comments values (NULL, '$artid', '$uname', now(), '$comments', '$score')", $dbi);
Header("Location: modules.php?name=$module_name&op=viewarticle&artid=$artid#$artid");
}
}
function r_comments($artid, $title) {
global $admin, $prefix, $dbi, $module_name, $num, $artid;
$result = sql_query("select cid, userid, date, comments, score from ".$prefix."_sections_comments where rid='$artid' ORDER BY date DESC", $dbi);
while(list($cid, $uname, $date, $comments, $score) = sql_fetch_row($result, $dbi)) {
$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, $dbi, $module_name;
if (is_admin($admin)) {
sql_query("delete from ".$prefix."_sections_comments where cid='$cid'", $dbi);
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, $dbi, $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 = sql_query("select secname from ".$prefix."_sections where secid=$secid", $dbi);
list($secname) = sql_fetch_row($result, $dbi);
$result = sql_query("select artid, secid, title, content, counter, tarih from ".$prefix."_seccont where secid=$secid ORDER BY artid DESC", $dbi);
OpenTable();
$result2 = sql_query("select image, mail from ".$prefix."_sections where secid=$secid", $dbi);
list($image, $mail) = sql_fetch_row($result2, $dbi);
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) = sql_fetch_row($result, $dbi)) {
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;
}
?>
Default toolbar yoksa yorum içine aldığım NukeUser toolbarı olan satırı kullanın.
ya ben senin eklediğin kodu index.php yapıp atım ama bu seferde köşe yazilarına girmek için tıkladığımda boş sayfa çıkıyor
Başa dön
Bankocu Editör
Kayıt: Jun 02, 2003 Mesajlar: 1842 Konum: Istanbul
Tarih: 2008-05-13, 16:21:05 Mesaj konusu: Re: köşe yazılarına FCK editörü eklemek
Kodun içinde sadece benim eklediğim kısmı alsanız iyi olur çünkü netopsiyondaki güvenlik programı orjinal kodu biraz değiştiriyor. Aynen alıp yapıştırmayın.
Yoksa kodunuzda böyle;
Kod:
global $user, $c o o k i e, $text, $score, $AllowableHTML, $anonymous, $module_name, $button_image, $module_name;
gibi arası boşluklu değişken isimleri çıkar.
Ben eklediğim yeri zaten,
*********************** Değişen yerler burada *************
kod bölgesi
*********************** Değişen yerler burada *************
diye işaretledim.
Sadece oranın içini alsanız yeter.
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-06-01, 11:45:01 Mesaj konusu: Forum Arası Reklamlar
Başa dön
sima19 Mesaj: 1000+
Kayıt: Oct 07, 2006 Mesajlar: 1856 Konum: Dünya'nın Bi Yerinden
Tarih: 2008-05-13, 18:40:19 Mesaj konusu: Re: köşe yazılarına FCK editörü eklemek
Arkadaşlar uzun kodlamaları alıntı şeklince tekrar konu içerisinde dahil etmezseniz seviniriz.Çünkü aynı kodlamalar 1 sayfada 3 kere alıntı olmuş.Çok karışıyor haliyle.
Kolay Gelsin En son sima19 tarafından 2008-05-13, 19:27:21 tarihinde değiştirildi, toplam 1 kere değiştirildi
Başa dön
berzankocak Mesaj: 300+
Kayıt: May 26, 2007 Mesajlar: 468
Tarih: 2008-05-13, 18:48:33 Mesaj konusu: Re: köşe yazılarına FCK editörü eklemek
Bankocu :
Kodun içinde sadece benim eklediğim kısmı alsanız iyi olur çünkü netopsiyondaki güvenlik programı orjinal kodu biraz değiştiriyor. Aynen alıp yapıştırmayın.
Yoksa kodunuzda böyle;
Kod:
global $user, $c o o k i e, $text, $score, $AllowableHTML, $anonymous, $module_name, $button_image, $module_name;
gibi arası boşluklu değişken isimleri çıkar.
Ben eklediğim yeri zaten,
*********************** Değişen yerler burada *************
kod bölgesi
*********************** Değişen yerler burada *************
diye işaretledim.
Sadece oranın içini alsanız yeter.
arkadaşım dediğin gibi yaptım yine olmadı busefer köşe yazılarına girebiliyorum ama yazılar yine bitişik dağişeb birşey olmadı
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