{"id":265,"date":"2009-09-16T16:30:26","date_gmt":"2009-09-16T14:30:26","guid":{"rendered":"http:\/\/www.matteoiammarrone.com\/public\/blog\/?p=265"},"modified":"2009-09-16T16:30:27","modified_gmt":"2009-09-16T14:30:27","slug":"aggiornare-fckeditor-in-wl-nuke","status":"publish","type":"post","link":"https:\/\/www.matteoiammarrone.com\/public\/aggiornare-fckeditor-in-wl-nuke\/","title":{"rendered":"Aggiornare Fckeditor in Wl Nuke"},"content":{"rendered":"<p>Wl Nuke, famoso cms realizzato da weblord.it e basato su Phpnuke 7.6 \u00e8 considerata una delle migliori versioni in circolazione del cms phpnuke.<\/p>\n<p>L&#8217;ultima versione della saga Wl Nuke \u00e8 la 1.1, che per\u00f2 contiene un Wysiwyg editor ormai abbastanza vecchio ( Principalmente il problema \u00e8 che \u00e8 compatibile solo con internet explorer e firefox, \u00e8 incompatibile, ad esempio con Safari o Google Chrome).<\/p>\n<p>Per aggiornare la versione del Fckeditor in WL NUke \u00e8 molto semplice.<\/p>\n<p>1 ) Scaricate questo pacchetto:<\/p>\n<p><a href=\"http:\/\/www.matteoiammarrone.com\/files\/nukefck.zip\">www.matteoiammarrone.com\/files\/nukefck.zip<\/a><\/p>\n<p>Il pacchetto che avete scaricato contiene tutti i files che compongo l&#8217;ultima versione di Fckeditor, gi\u00e0 modificata e adattata per phpnuke.<\/p>\n<p>2 ) Caricate i files che trovate nel pacchetto nella directory principale del vostro phpnuke(In modo da formare una cartella di nome includes\/fckeditor) e sostituendo i files del vecchio fckeditor.<\/p>\n<p>3 ) Aprite il file mainfile.php del vostro phpnuke<\/p>\n<p>e cercate le funzioni wysiwyg_textarea() e wysiwyg_textarea_html(); \u00a0( Dalla riga 977 alla 1034, circa).<\/p>\n<p>Una volta trovate queste funzioni sostituitele con questo codice:<\/p>\n<div>\n<blockquote><p>function wysiwyg_textarea($name, $value, $config = &#8217;NukeUser&#8217;, $cols = 50, $rows = 10)<\/p>\n<p>{<\/p>\n<p>global $advanced_editor, $admin;<\/p>\n<p>\/\/ Don&#8217;t waste bandwidth by loading WYSIWYG editor for crawlers<\/p>\n<p>if ($advanced_editor == 0 or !isset($_COOKIE))<\/p>\n<p>{<\/p>\n<p>echo &#8217;&lt;textarea name=&#8221;&#8217;.$name.'&#8221; cols=&#8221;&#8217;.$cols.'&#8221; rows=&#8221;&#8217;.$rows.'&#8221;&gt;&#8217;.$value.'&lt;\/textarea&gt;&#8217;;<\/p>\n<p>} else {<\/p>\n<p>@include_once(INCLUDE_PATH.&#8217;includes\/fckeditor\/fckeditor.php&#8217;);<\/p>\n<p>$rows = $rows + 2; \u00a0\/\/ Add extra space for toolbars<\/p>\n<p>$oFCKeditor = new FCKeditor($name) ;<\/p>\n<p>$oFCKeditor-&gt;BasePath = &#8217;.\/includes\/fckeditor\/&#8217; ; \/\/ 2.6<\/p>\n<p>$oFCKheight = $rows * 20;<\/p>\n<p>$oFCKeditor-&gt;Height = $oFCKheight;<\/p>\n<p>$oFCKeditor-&gt;ToolbarSet = $config;<\/p>\n<p>if (is_admin($admin))<\/p>\n<p>{<\/p>\n<p>$oFCKeditor-&gt;Config[&#8217;LinkBrowser&#8217;] = true;<\/p>\n<p>$oFCKeditor-&gt;Config[&#8217;ImageBrowser&#8217;] = true;<\/p>\n<p>$oFCKeditor-&gt;Config[&#8217;FlashBrowser&#8217;] = true;<\/p>\n<p>$oFCKeditor-&gt;Config[&#8217;LinkUpload&#8217;] = true;<\/p>\n<p>$oFCKeditor-&gt;Config[&#8217;ImageUpload&#8217;] = true;<\/p>\n<p>$oFCKeditor-&gt;Config[&#8217;FlashUpload&#8217;] = true;<\/p>\n<p>}<\/p>\n<p>$oFCKeditor-&gt;Value = $value;<\/p>\n<p>$oFCKeditor-&gt;Create();<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>function wysiwyg_textarea_html($name, $value, $config = &#8217;NukeUser&#8217;, $cols = 50, $rows = 10)<\/p>\n<p>{<\/p>\n<p>global $advanced_editor, $admin;<\/p>\n<p>\/\/ Don&#8217;t waste bandwidth by loading WYSIWYG editor for crawlers<\/p>\n<p>if ($advanced_editor == 0 or !isset($_COOKIE))<\/p>\n<p>{<\/p>\n<p>echo &#8217;&lt;textarea name=&#8221;&#8217;.$name.'&#8221; cols=&#8221;&#8217;.$cols.'&#8221; rows=&#8221;&#8217;.$rows.'&#8221;&gt;&#8217;.$value.'&lt;\/textarea&gt;&#8217;;<\/p>\n<p>} else {<\/p>\n<p>@include_once(INCLUDE_PATH.&#8217;includes\/fckeditor\/fckeditor.php&#8217;);<\/p>\n<p>$rows = $rows + 2; \u00a0\/\/ Add extra space for toolbars<\/p>\n<p>$oFCKeditor = new FCKeditor($name);<\/p>\n<p>$oFCKeditor-&gt;BasePath = &#8217;.\/includes\/fckeditor\/&#8217;;<\/p>\n<p>$oFCKheight = $rows * 20;<\/p>\n<p>$oFCKeditor-&gt;Height = $oFCKheight;<\/p>\n<p>$oFCKeditor-&gt;ToolbarSet = $config;<\/p>\n<p>if (is_admin($admin))<\/p>\n<p>{<\/p>\n<p>$oFCKeditor-&gt;Config[&#8217;LinkBrowser&#8217;] = true;<\/p>\n<p>$oFCKeditor-&gt;Config[&#8217;ImageBrowser&#8217;] = true;<\/p>\n<p>$oFCKeditor-&gt;Config[&#8217;FlashBrowser&#8217;] = true;<\/p>\n<p>$oFCKeditor-&gt;Config[&#8217;LinkUpload&#8217;] = true;<\/p>\n<p>$oFCKeditor-&gt;Config[&#8217;ImageUpload&#8217;] = true;<\/p>\n<p>$oFCKeditor-&gt;Config[&#8217;FlashUpload&#8217;] = true;<\/p>\n<p>}<\/p>\n<p>$oFCKeditor-&gt;Value = $value;<\/p>\n<p>$wysiwygHTML = $oFCKeditor-&gt;CreateHtml() ;<\/p>\n<p>return $wysiwygHTML;<\/p>\n<p>}<\/p>\n<p>}<\/p><\/blockquote>\n<div>4 ) Salvate il file, chiudetelo e pubblicatelo sostituendolo all&#8217;attuale mainfile.php<\/div>\n<div><\/div>\n<div>Ora Buon Divertimento \ud83d\ude42<\/div>\n<div>Avrete la nuovissima versione di Fckeditor bella, nuova e funzionante!<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Wl Nuke, famoso cms realizzato da weblord.it e basato su Phpnuke 7.6 \u00e8 considerata una delle migliori versioni in circolazione del cms phpnuke. L&#8217;ultima versione della saga Wl Nuke \u00e8 la 1.1, che per\u00f2 contiene un Wysiwyg editor ormai abbastanza vecchio ( Principalmente il problema \u00e8 che \u00e8 compatibile solo con internet explorer e firefox,&#8230;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[532],"tags":[],"class_list":["post-265","post","type-post","status-publish","format-standard","hentry","category-gott-och-blandat"],"_links":{"self":[{"href":"https:\/\/www.matteoiammarrone.com\/public\/wp-json\/wp\/v2\/posts\/265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.matteoiammarrone.com\/public\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.matteoiammarrone.com\/public\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.matteoiammarrone.com\/public\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.matteoiammarrone.com\/public\/wp-json\/wp\/v2\/comments?post=265"}],"version-history":[{"count":1,"href":"https:\/\/www.matteoiammarrone.com\/public\/wp-json\/wp\/v2\/posts\/265\/revisions"}],"predecessor-version":[{"id":266,"href":"https:\/\/www.matteoiammarrone.com\/public\/wp-json\/wp\/v2\/posts\/265\/revisions\/266"}],"wp:attachment":[{"href":"https:\/\/www.matteoiammarrone.com\/public\/wp-json\/wp\/v2\/media?parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.matteoiammarrone.com\/public\/wp-json\/wp\/v2\/categories?post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.matteoiammarrone.com\/public\/wp-json\/wp\/v2\/tags?post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}