if ($nuke_editor == 1) {
if (is_admin($admin) AND $name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR')) {
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"basic\",
language : \"$lang\",
$edtcss
force_p_newlines: \"false\",
force_br_newlines: \"true\"
});
</script>
<!-- /tinyMCE -->";
} elseif ($name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR')) {
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"default\",
language : \"$lang\",
$edtcss
force_p_newlines: \"false\",
force_br_newlines: \"true\"
});
</script>
<!-- /tinyMCE -->";
}
}
karşına bu geliyor. Yani basit haliyle gösterim. Daha gelişmiş kullanmak istiyorsan basit birşey söyleyeyim.
php-nuke 7.7 indir ve onun içindeki j a v a s c r i p t.php dosyası ile tiny_mce klasörünü includes içine yükle yeter.
Yada gelişmişin kodu şu şekilde.
Kod:
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"advanced\",
language : \"$lang\",
force_p_newlines: \"false\",
force_br_newlines: \"true\",
plugins : \"table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print\",
theme_advanced_buttons1_add : \"fontselect,fontsizeselect\",
theme_advanced_buttons2_add : \"separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor\",
theme_advanced_buttons2_add_before: \"cut,copy,paste,separator,search,replace,separator\",
theme_advanced_buttons3_add_before : \"tablecontrols,separator\",
theme_advanced_buttons3_add : \"emotions,iespell,flash,advhr,separator,print\",
theme_advanced_toolbar_location : \"top\",
theme_advanced_toolbar_align : \"left\",
theme_advanced_path_location : \"bottom\",
$edtcss
plugin_insertdate_dateFormat : \"%Y-%m-%d\",
plugin_insertdate_timeFormat : \"%H:%M:%S\",
extended_valid_elements : \"a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]\",
external_link_list_url : \"example_link_list.js\",
external_image_list_url : \"example_image_list.js\",
flash_external_list_url : \"example_flash_list.js\",
file_browser_callback : \"fileBrowserCallBack\"
});
function fileBrowserCallBack(field_name, url, type) {
// This is where you insert your custom filebrowser logic
a l e r t(\"Filebrowser callback: \" + field_name + \",\" + url + \",\" + type);
} </script>
<!-- /tinyMCE -->";
if ($nuke_editor == 1) {
if (is_admin($admin) AND $name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR')) {
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"basic\",
language : \"$lang\",
$edtcss
force_p_newlines: \"false\",
force_br_newlines: \"true\"
});
</script>
<!-- /tinyMCE -->";
} elseif ($name != "Private_Messages" AND $name != "Forums" AND !defined('NO_EDITOR')) {
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"default\",
language : \"$lang\",
$edtcss
force_p_newlines: \"false\",
force_br_newlines: \"true\"
});
</script>
<!-- /tinyMCE -->";
}
}
karşına bu geliyor. Yani basit haliyle gösterim. Daha gelişmiş kullanmak istiyorsan basit birşey söyleyeyim.
php-nuke 7.7 indir ve onun içindeki j a v a s c r i p t.php dosyası ile tiny_mce klasörünü includes içine yükle yeter.
Yada gelişmişin kodu şu şekilde.
Kod:
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"advanced\",
language : \"$lang\",
force_p_newlines: \"false\",
force_br_newlines: \"true\",
plugins : \"table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print\",
theme_advanced_buttons1_add : \"fontselect,fontsizeselect\",
theme_advanced_buttons2_add : \"separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor\",
theme_advanced_buttons2_add_before: \"cut,copy,paste,separator,search,replace,separator\",
theme_advanced_buttons3_add_before : \"tablecontrols,separator\",
theme_advanced_buttons3_add : \"emotions,iespell,flash,advhr,separator,print\",
theme_advanced_toolbar_location : \"top\",
theme_advanced_toolbar_align : \"left\",
theme_advanced_path_location : \"bottom\",
$edtcss
plugin_insertdate_dateFormat : \"%Y-%m-%d\",
plugin_insertdate_timeFormat : \"%H:%M:%S\",
extended_valid_elements : \"a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]\",
external_link_list_url : \"example_link_list.js\",
external_image_list_url : \"example_image_list.js\",
flash_external_list_url : \"example_flash_list.js\",
file_browser_callback : \"fileBrowserCallBack\"
});
function fileBrowserCallBack(field_name, url, type) {
// This is where you insert your custom filebrowser logic
a l e r t(\"Filebrowser callback: \" + field_name + \",\" + url + \",\" + type);
} </script>
<!-- /tinyMCE -->";
Dediklerinizi yaptım ama gelişmiş haber editörü olmadı
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2005 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* 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("j a v a s c r i p t.php",$_SERVER['PHP_SELF'])) {
Header("Location: ../index.php");
die();
}
##################################################
# Include for some common javascripts functions #
##################################################
global $module, $name, $admin, $advanced_editor, $lang;
if (is_admin($admin) AND defined('ADMIN_FILE') AND $advanced_editor == 1) {
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"advanced\",
language : \"$lang\",
force_p_newlines: \"false\",
force_br_newlines: \"true\",
plugins : \"table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print\",
theme_advanced_buttons1_add : \"fontselect,fontsizeselect\",
theme_advanced_buttons2_add : \"separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor\",
theme_advanced_buttons2_add_before: \"cut,copy,paste,separator,search,replace,separator\",
theme_advanced_buttons3_add_before : \"tablecontrols,separator\",
theme_advanced_buttons3_add : \"emotions,iespell,flash,advhr,separator,print\",
theme_advanced_toolbar_location : \"top\",
theme_advanced_toolbar_align : \"left\",
theme_advanced_path_location : \"bottom\",
$edtcss
plugin_insertdate_dateFormat : \"%Y-%m-%d\",
plugin_insertdate_timeFormat : \"%H:%M:%S\",
extended_valid_elements : \"a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]\",
external_link_list_url : \"example_link_list.js\",
external_image_list_url : \"example_image_list.js\",
flash_external_list_url : \"example_flash_list.js\",
file_browser_callback : \"fileBrowserCallBack\"
});
function fileBrowserCallBack(field_name, url, type) {
// This is where you insert your custom filebrowser logic
a l e r t(\"Filebrowser callback: \" + field_name + \",\" + url + \",\" + type);
} </script>
<!-- /tinyMCE -->";
} elseif (is_admin($admin) AND $advanced_editor != 1 AND $name != "Private_Messages") {
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"basic\",
language : \"$lang\",
$edtcss
force_p_newlines: \"false\",
force_br_newlines: \"true\"
});
</script>
<!-- /tinyMCE -->";
} elseif ($name != "Private_Messages" AND $name != "Forums") {
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"default\",
language : \"$lang\",
$edtcss
force_p_newlines: \"false\",
force_br_newlines: \"true\"
});
</script>
<!-- /tinyMCE -->";
}
if ($userpage == 1) {
echo "<script type=\"text/j a v a s c r i p t\">\n";
echo "<!--\n";
echo "function showimage() {\n";
echo "if (!document.images)\n";
echo "return\n";
echo "document.images.avatar.src=\n";
echo "'$nukeurl/modules/Forums/images/avatars/gallery/' + document.Register.user_avatar.options[document.Register.user_avatar.selectedIndex].value\n";
echo "}\n";
echo "//-->\n";
echo "</script>\n\n";
}
if ($module == 1 AND file_exists("modules/$name/copyright.php")) {
echo "<script type=\"text/j a v a s c r i p t\">\n";
echo "<!--\n";
echo "function openwindow(){\n";
echo " window.open (\"modules/$name/copyright.php\",\"Copyright\",\"toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=200\");\n";
echo "}\n";
echo "//-->\n";
echo "</script>\n\n";
}
?>
bendeki j a v a s c r i p t.php dosyası bu ben 7.7 kullanıyorum ve mice klasoru ve j a v a s c r i p t.php includes içinde zaten.
Kayıt: Jul 20, 2002 Mesajlar: 3836 Konum: Balıkesir
Tarih: 2007-08-08, 10:28:40 Mesaj konusu:
if (is_admin($admin) AND defined('ADMIN_FILE') AND $advanced_editor == 1) {
burada diyor ki config.php de $advanced_editor alanı 1 yazıyorsa ve adminseniz gelişmişi göster değilse basit olanı göster. Yani config.php yi kontrol edin.
beyler tiny mce yi kurdum..7.6 + 3.3 patch kullanıyorum ama bi türlü gelişmiş yapamadım..j a v a s c r i p t.php im şu şekilde :
Kod:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* 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 (stristr(htmlentities($_SERVER['PHP_SELF']), "j a v a s c r i p t.php")) {
Header("Location: ../index.php");
die();
}
##################################################
# Include for some common javascripts functions #
##################################################
global $module, $name, $admin, $default_editor, $lang;
if (is_admin($admin) AND defined('ADMIN_FILE') AND $default_editor == 1) {
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"default\",
language : \"$lang\",
force_p_newlines: \"false\",
force_br_newlines: \"true\",
plugins : \"table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print\",
theme_default_buttons1_add : \"fontselect,fontsizeselect\",
theme_default_buttons2_add : \"separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor\",
theme_default_buttons2_add_before: \"cut,copy,paste,separator,search,replace,separator\",
theme_default_buttons3_add_before : \"tablecontrols,separator\",
theme_default_buttons3_add : \"emotions,iespell,flash,advhr,separator,print\",
theme_default_toolbar_location : \"top\",
theme_default_toolbar_align : \"left\",
theme_default_path_location : \"bottom\",
$edtcss
plugin_insertdate_dateFormat : \"%Y-%m-%d\",
plugin_insertdate_timeFormat : \"%H:%M:%S\",
extended_valid_elements : \"a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]\",
external_link_list_url : \"example_link_list.js\",
external_image_list_url : \"example_image_list.js\",
flash_external_list_url : \"example_flash_list.js\",
file_browser_callback : \"fileBrowserCallBack\"
});
function fileBrowserCallBack(field_name, url, type) {
// This is where you insert your custom filebrowser logic
a l e r t(\"Filebrowser callback: \" + field_name + \",\" + url + \",\" + type);
} </script>
<!-- /tinyMCE -->";
} elseif (is_admin($admin) AND $default_editor != 1 AND ($name != "Private_Messages" AND $name != "Forums")) {
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"basic\",
language : \"$lang\",
$edtcss
force_p_newlines: \"false\",
force_br_newlines: \"true\"
});
</script>
<!-- /tinyMCE -->";
} elseif ($name != "Private_Messages" AND $name != "Forums") {
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"default\",
language : \"$lang\",
$edtcss
force_p_newlines: \"false\",
force_br_newlines: \"true\"
});
</script>
<!-- /tinyMCE -->";
}
if ($userpage == 1) {
echo "<script type=\"text/j a v a s c r i p t\">\n";
echo "<!--\n";
echo "function showimage() {\n";
echo "if (!document.images)\n";
echo "return\n";
echo "document.images.avatar.src=\n";
echo "'$nukeurl/modules/Forums/images/avatars/gallery/' + document.Register.user_avatar.options[document.Register.user_avatar.selectedIndex].value\n";
echo "}\n";
echo "//-->\n";
echo "</script>\n\n";
}
global $name;
if (defined('MODULE_FILE') AND file_exists("modules/".$name."/copyright.php")) {
echo "<script type=\"text/j a v a s c r i p t\">\n";
echo "<!--\n";
echo "function openwindow(){\n";
echo " window.open (\"modules/".$name."/copyright.php\",\"Copyright\",\"toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=200\");\n";
echo "}\n";
echo "//-->\n";
echo "</script>\n\n";
}
?>
1-config.php imde ise $advanced_editor diye bi satır yok..bunu kendim ekledim ve 1 e eşitledim..gene bi sonuç alamadım..şu anda basit haliyle çalışıyor ama gelişmişe çevirmem lazım..
2-bu editörde resim ekleme yaparken browse ettiğimizde bilgisayarda bulunan bi dosyayı direk atamıyo muyuz illa ftp ile önce atmamız mı gerekiyor?eğer öyleyse direk bilgisayardan browse yapabileceğimiz başka editörler var mı ?
Kayıt: Jul 20, 2002 Mesajlar: 3836 Konum: Balıkesir
Tarih: 2007-08-19, 12:00:55 Mesaj konusu:
1.cisi config.php de $advanced_editor olmayacak, $default_editor olacak. İsmini düzelt gelmiş hali çıkar.
2.cisi bu editörde resim yükleme eklentisi var ancak kurmanız gerekli. Güzel bir eklentisi var. Bu plugin ve kurulumu hakkında bilgi için
if (file_exists("themes/$ThemeSel/style/editor.css")) {
satırının üzerine;
$default_editor=1;
ekle.
yine hiçbir$ey deği$miyor..def. editoru 1 e eşitlemeyi config.php ye de ekledim ilk msg da dedigin gibi..bunu da j a v a s c r i p t.php ye ekledim..gene aynen basic mode duruyor hocam..
Kayıt: Oct 29, 2006 Mesajlar: 196 Konum: Uzak Bir Yer!
Tarih: 2007-08-19, 18:22:07 Mesaj konusu:
Aliosman :
İMKANSIZ! Sayfanızı yenileyin. Ayrıca yazdığıma çok ama çok dikkat edin. Bak ne dedim; "O söylediğim yazılı halde: " yani;
if (file_exists("themes/$ThemeSel/style/editor.css")) {
satırının üzerinde mutlaka ve mutlaka $default_editor=1; olmalı. Yapmayın ya az önce uyguladım. Hiçbir sorun çıkmadı.
Aliosman üstada katılıyorum daha önce aynı şekilde yaptım ve istediğim görüntüyü elde ettim biryerde bir hata yapıyorsun muhakkak en baştan bir daha dene..
aynen ben de yapıyorum ama anlamadım..yani üstadların hata yapma olasılığı çok az biliyorum ama ben de afallıyorum $u anda..$u andaki en son haliyle söyledikleriniz dahil j a v a s c r i p t.php dosyam $u $ekilde bi yanlı$lık varsa söyleyin(bu arada $default_editor=1; yazısını config.php ye de ekledim bundan kaynaklanıyor olabilir mi ?)i$te dosya $u halde :
Kod:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* 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 (stristr(htmlentities($_SERVER['PHP_SELF']), "j a v a s c r i p t.php")) {
Header("Location: ../index.php");
die();
}
##################################################
# Include for some common javascripts functions #
##################################################
global $module, $name, $admin, $default_editor, $lang;
$default_editor=1;
if (file_exists("themes/$ThemeSel/style/editor.css")) {
$edtcss = "editor_css : \"themes/$ThemeSel/style/editor.css\",";
} else {
$edtcss = "editor_css : \"includes/tiny_mce/themes/default/editor_ui.css\",";
}
if ($default_editor == 1) {
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"default\",
language : \"$lang\",
force_p_newlines: \"false\",
force_br_newlines: \"true\",
plugins : \"table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print\",
theme_default_buttons1_add : \"fontselect,fontsizeselect\",
theme_default_buttons2_add : \"separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor\",
theme_default_buttons2_add_before: \"cut,copy,paste,separator,search,replace,separator\",
theme_default_buttons3_add_before : \"tablecontrols,separator\",
theme_default_buttons3_add : \"emotions,iespell,flash,advhr,separator,print\",
theme_default_toolbar_location : \"top\",
theme_default_toolbar_align : \"left\",
theme_default_path_location : \"bottom\",
$edtcss
plugin_insertdate_dateFormat : \"%Y-%m-%d\",
plugin_insertdate_timeFormat : \"%H:%M:%S\",
extended_valid_elements : \"a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]\",
external_link_list_url : \"example_link_list.js\",
external_image_list_url : \"example_image_list.js\",
flash_external_list_url : \"example_flash_list.js\",
file_browser_callback : \"fileBrowserCallBack\"
});
function fileBrowserCallBack(field_name, url, type) {
// This is where you insert your custom filebrowser logic
a l e r t(\"Filebrowser callback: \" + field_name + \",\" + url + \",\" + type);
} </script>
<!-- /tinyMCE -->";
} elseif (is_admin($admin) AND $default_editor != 1 AND ($name != "Private_Messages" AND $name != "Forums")) {
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"basic\",
language : \"$lang\",
$edtcss
force_p_newlines: \"false\",
force_br_newlines: \"true\"
});
</script>
<!-- /tinyMCE -->";
} elseif ($name != "Private_Messages" AND $name != "Forums") {
echo "<!-- tinyMCE -->
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\" src=\"includes/tiny_mce/tiny_mce.js\"></script>
<script language=\"j a v a s c r i p t\" type=\"text/j a v a s c r i p t\">
tinyMCE.init({
mode : \"textareas\",
theme : \"default\",
language : \"$lang\",
$edtcss
force_p_newlines: \"false\",
force_br_newlines: \"true\"
});
</script>
<!-- /tinyMCE -->";
}
if ($userpage == 1) {
echo "<script type=\"text/j a v a s c r i p t\">\n";
echo "<!--\n";
echo "function showimage() {\n";
echo "if (!document.images)\n";
echo "return\n";
echo "document.images.avatar.src=\n";
echo "'$nukeurl/modules/Forums/images/avatars/gallery/' + document.Register.user_avatar.options[document.Register.user_avatar.selectedIndex].value\n";
echo "}\n";
echo "//-->\n";
echo "</script>\n\n";
}
global $name;
if (defined('MODULE_FILE') AND file_exists("modules/".$name."/copyright.php")) {
echo "<script type=\"text/j a v a s c r i p t\">\n";
echo "<!--\n";
echo "function openwindow(){\n";
echo " window.open (\"modules/".$name."/copyright.php\",\"Copyright\",\"toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=200\");\n";
echo "}\n";
echo "//-->\n";
echo "</script>\n\n";
}
if (is_admin($admin) AND defined('ADMIN_FILE') AND $advanced_editor == 1) {
burada diyor ki config.php de $advanced_editor alanı 1 yazıyorsa ve adminseniz gelişmişi göster değilse basit olanı göster. Yani config.php yi kontrol edin.
2 saattir kasıyorum bu kadar kolay mıydı bu ya :)
configte 0dı 1 yaptım süper oldu..2 yıldır resim ekleyene kadar bi sürü kod yazıyodum süpermiş gelişmiş editör..
bende yazım editörünü gelişmiş haline çevirdim fakat bazı modüllerde yazma alanı küçük oldugu için tamamen kapandı görünmüyor yazım editörünün genişlik ve yükseklik ayarlarını nerelerden degişiyoruz yada hangi kodlarla yapılıyor ?
bende yazım editörünü gelişmiş haline çevirdim fakat bazı modüllerde yazma alanı küçük oldugu için tamamen kapandı görünmüyor yazım editörünün genişlik ve yükseklik ayarlarını nerelerden degişiyoruz yada hangi kodlarla yapılıyor ?
aynı sorun bende de oldu..ne kadar style.css dosyası varsa didik didik ettim hiç birinde form vb birşey de bulamadım .. nasıl yapılıyor bilen var mı?
######################################################################
# PHP-NUKE: Advanced Content Management System
# ============================================
#
# Copyright (c) 2006 by Francisco Burzi
# http://phpnuke.org
#
# 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 (stristr(htmlentities($_SERVER['PHP_SELF']), "config.php")) {
Header("Location: index.php");
die();
}
######################################################################
# Database & System Config
#
# dbhost: SQL Database Hostname
# dbuname: SQL Username
# dbpass: SQL Password
# dbname: SQL Database Name
# $prefix: Your Database table's prefix
# $user_prefix: Your Users' Database table's prefix (To share it)
# $dbtype: Your Database Server type. Supported servers are:
# MySQL, mysql4, sqlite, postgres, mssql, oracle,
# msaccess, db2 and mssql-odbc
# Be sure to write it exactly as above, case SeNsItIvE!
# $sitekey: Security Key. CHANGE it to whatever you want, as long
# as you want. Just don't use quotes.
# $gfx_chk: Set the graphic security code on every login screen,
# You need to have GD extension installed:
# 0: No check
# 1: Administrators login only
# 2: Users login only
# 3: New users registration only
# 4: Both, users login and new users registration only
# 5: Administrators and users login only
# 6: Administrators and new users registration only
# 7: Everywhere on all login options (Admins and Users)
# NOTE: If you aren't sure set this value to 0
# $subscription_url: If you manage subscriptions on your site, you
# must write here the url of the subscription
# information/renewal page. This will send by
# email if set.
# $admin_file: Administration panel filename. "admin" by default for
# "admin.php". To improve security please rename the file
# "admin.php" and change the $admin_file value to the
# new filename (without the extension .php)
# $nuke_editor: Turn On/Off the WYSIWYG text editor
# 0: Off, textareas in forms will not show any editor
# 1: On, all textarea in the forms will show the editor
# $display_errors: Debug control to see PHP generated errors.
# false: Don't show errors
# true: See all errors ( No notices )
######################################################################
/**********************************************************************/
/* You finished to configure the Database. Now you can change all */
/* you want in the Administration Section. To enter just launch */
/* your web browser pointing it to http://xxxxxx.xxx/admin.php */
/* (Change xxxxxx.xxx to your domain name, for example: phpnuke.org) */
/* */
/* Remember to go to Preferences section where you can configure your */
/* new site. In that menu you can change all you need to change. */
/* */
/* Congratulations! now you have an automated news portal! */
/* Thanks for choose PHP-Nuke: The Future of the Web */
/**********************************************************************/
// DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING
//***************************************************************
// IF YOU WANT TO LEGALY REMOVE ANY COPYRIGHT NOTICES PLAY FAIR AND CHECK: http://phpnuke.org/modules.php?name=Commercial_License
// COPYRIGHT NOTICES ARE GPL SECTION 2(c) COMPLIANT AND CAN'T BE REMOVED WITHOUT PHP-NUKE'S AUTHOR WRITTEN AUTHORIZATION
// THE USE OF COMMERCIAL LICENSE MODE FOR PHP-NUKE HAS BEEN APPROVED BY THE FSF (FREE SOFTWARE FOUNDATION)
// YOU CAN REQUEST INFORMATION ABOUT THIS TO GNU.ORG REPRESENTATIVE. THE EMAIL THREAD REFERENCE IS #213080
// YOU'RE NOT AUTHORIZED TO CHANGE THE FOLLOWING VARIABLE'S VALUE UNTIL YOU ACQUIRE A COMMERCIAL LICENSE
// (http://phpnuke.org/modules.php?name=Commercial_License)
//***************************************************************
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