Mesaj Sayısı : 395 Rep Gücü : 2147483647 Üyelik Seviyesi : 0 Burcu : Çin Astrolojisi : Yaş : 42 Memleketi : Dadaşlar Diyarı Lakabı : SwOrDoF Team Lideri Kayıt tarihi : 13/03/09 Rep Puanı Başarı Puanı: (1000/1000) Seviye: (1000/1000) Güçlülük: (1000/1000)
Konu: SMF Foruma Gelişmiş Yazı Editörü Kurun Cuma Haz. 12, 2009 4:59 pm
Şimdi kuruluma geçelim öncelikle ekteki dosyayı zipten çıkarın ve ardından çıkan tüm dosya ve klasörleri (zaten 1 dosya 1 klasör var) onları ftp ile forumunuzun ana dizinine yani settings.php - index.php olduğu yere gönderin daha sonra aşağıdaki değişiklikleri yapın
var getdata =document.getElementById("message").value; Instantiate("min""editor" getdata "100%" "150px"); function get_hoteditor_data(){ if (HTML_ON == "no"){ alert ("Please uncheck the HTML checkbox"); return false; } else{ setCodeOutput(); var bbcode_output=document.getElementById("hoteditor_b bcode_ouput_editor").value;//Output to BBCode document.getElementById("message").value = bbcode_output; } }
Kod: function template_postbox(&$message) değiştir
Kod: // This function displays all the stuff you'd expect to see with a message box the box BBC buttons and of course smileys. function template_postbox(&$message) { global $context $settings $options $txt $modSettings;
// Now start printing all of the smileys. if (!empty($context['smileys']['postform'])) { echo '
';
// Show each row of smileys . foreach ($context['smileys']['postform'] as $smiley_row) { foreach ($smiley_row['smileys'] as $smiley) { $smiley_src= $settings['smileys_url'] . '/' . $smiley['filename']; print "''editor');}else{WriteTEXT('\[IMG\]$smiley_src\[\/IMG\]''editor');}\" src=\"$smiley_src\" alt=\"$smiley[description]\" title=\"$smiley[description]\" /> "; }
// If this isn't the last row show a break. if (empty($smiley_row['last'])) echo ' '; }
// If the smileys popup is to be shown... show it! if (!empty($context['smileys']['popup'])) echo ' [' $txt['more_smileys'] ']';
echo '
'; }
// If there are additional smileys then ensure we provide the javascript for them. if (!empty($context['smileys']['popup'])) { echo ' var smileys = [';
foreach ($context['smileys']['popup'] as $smiley_row) { echo ' ['; foreach ($smiley_row['smileys'] as $smiley) { echo ' ["' $smiley['code'] '""' $smiley['filename'] '""' $smiley['js_description'] '"]'; if (empty($smiley['last'])) echo ''; }
echo ']'; if (empty($smiley_row['last'])) echo ''; }