![]() |
|
#1
|
||||
|
||||
|
İnşaallah burası zamanla zengileşecek Smfye adım atacaklar ilk buraya bakarak yollarına devam edecekler.
Soru-1 SmF Nasıl Kurulur? Öncelikle bunu uygulayacak kişilerin birer websunucusu olduğunu varsayarak yola çıkıyorum. 1) Öncelikle sunucunuzun size sağladığı kaynakları kullanarak bir MySQL veritabanı oluşturun ve kendinizi kullanıcı olarak atayın. Veritabanı ismi, kullanıcı adı ve şifresi SMF kurulumunda sorulacağı için biryere not alırsanız daha iyi olur. 2) Smf 1.1 (en son sürüm) paketini Buradan indirin, sonra zipten çıkardığınız bütün dosyaları FTP kullanarak web sunucunuzdaki bir klasöre yükleyin. 3) Kuruluma Türkçe olarak devam etmek isteyenler Buradan 1.1 sürümünün dil paketini indirerek yolarına devam edebilirler. Türkçe dil dosyalarını da FTP kullanarak SMF kurulum dosyalarını yüklediğiniz klasöre yükleyin. 4) Siteyi kurmak için kurulum dosyaları ile birlikte gelen install.php dosyasını çalıştırmamız gerekiyor. Bunu yapmak için bir web tarayıcısından http://www.siteadi.com/klasorleriyuk...in/install.php URL'sini kullanmamız gerekiyor. 5) Çıkan direktiflere uyarak ftp bilgileriniz ve daha önceden not edin dediğim bilgileri girerek kuruluma devam edin ama bu sayfada küçük veya büyük harf kullanımına dikkat edin! 6) Kurulum yönetici hesabı oluşturularak bitime gelinir. Buraya istediğiniz bilgileri girebilirsiniz, güvenlik için MySQL şifresi sorulduktan sonra kurulum biter. Install.php dosyasını da sildikten sonra forumunuza girebilirsiniz. SMF Forumunuz kurulmuştur, hayırlı olsun! Anlatan Bilbilal (Huzeyfe), kuran siz Kolay gelsin Soru-2 Tema nerden bulabilirim ve buton nasıl oluştururum? Simplemachines tema sitesine ulaşabileceğiniz adres: http://themes.simplemachines.org/ Ayrıca buton oluşturucu: http://www.yabb.nl/buttongenerator/ Soru-3 Ziyaretçilerin forumu gezmesini istemiyorum/istiyorum, Nasıl olur? Yönetim -> Seçenekler ve Opsiyonlar -> Ziyaretçiler forumu gezebilsin Bu ayarı işaretlemezseniz üye olmayanlar forumun herhangi bir sayfasına girdiklerinde şifre ekranı ile karşılaşırlar. Ayrıca ziyaretçilerin siteye girebilmelerini, ancak bölümlerin içine girememelerini veya sadece cevap yazamamalarını istiyorsanız İzinleri Ayarla -> Kayıtsız Ziyaretçiler -> Düzenle altından yapabilirsiniz. Soru-4 Üyenin profil kısmını daha düzgün ve şık hale nasıl getiririm Display.template.php ' de: Bul: Kod:
// Show information about the poster of this message. echo ' <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;"> <tr> <td class="windowbg" valign="top" width="16%" rowspan="2" style="overflow: hidden;"> Kod:
<fieldset><legend><b>Üye Bilgileri</b></legend><center> Elinizde bir database var ve bunu SMF'ye çevirmek istiyorsunuz. Peki nasıl olacak? Normal şartlarda, dönüşümünü yapacağınız forumun da çalışır durumda olması gerekir. Ancak böyle bir imkan yoksa, dönüşümü yapılacak olan veritabanını SMF'nin veritabanına yükleyerek de yapabilirsiniz. Ben genelde önce kendi bilgisayarımda DB dönüşümü yapıyor, sonra foruma yüklüyorum yeni DB'yi. vBulletin 3.0.x 'ten SMF 1.1 serisine dönüşüm Gelelim vBulletin 3x, SMF'ye nasıl dönüşür. Bu versiyonlar vBulletin 3.0 serisini kapsar. Yani vBulletin 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7.....vd. Öncelikle sunucunuz üzerinde vb için bir klasör oluşturun, örnek olarak ben vbulletin diye bir klasör oluşturuyorum. Sonra bunun da içinde includes diye bir klasör oluşturun. Sonra bunun da içinde config.php diye bir dosya oluşturun ve içine şunları yazın Kod:
<?php $servername = 'localhost'; $dbusername = 'kullanici'; $dbpassword = 'sifre'; $dbname = 'veritabani_adi'; $tableprefix = 'tablo_ön_ekiniz'; ?> Şimdi de SMF 1.1 RCx temiz kurulum yapın. Dönüşüm aracı 1.1 RCx içindir başka versiyonda çalışmaz. (Eğer SMF 1.0.x kurmak istiyorsanız o zaman başka bir dönüşüm aracı indirmelisiniz.) Şimdi elinizdeki vb veritabanını SMF veritabanına yükleyin. (config.php içine yazacağımız veritabanıdır bu) [anchor=bkz1]Bu geri yükleme işlemini phpMyAdmin'den, veya Türkçe mod ve araçlar bölümümüzdeki veritabani_geri_yukle.php dosyasıyla, veya internette dolaşan bigdump.php dosyasıyla yapabilirsiniz.[/anchor] Sonra da dönüşüm araçlarını indirin ve sitenizde herhangi bir yere koyun. İndirmeniz gereken bir adet dosya var; (SMF 1.1 serisi için konuşuyoruz, SMF 1.0.x için yukarıda söyledik ne indireceğinizi.) 1- smf_1-1-rc3_vbulletin3_converter.zip Şimdi bu zip'ten çıkan iki dosyayı sitenizde herhangi bir klasöre koyun. Tarayıcınızdan convert.php dosyasını çalıştırın. (Ör: site.com/convert.php) Çalıştırdığınızda SMF ve de vBulletinin kurulu olduğu dizinleri soracak. Ör: /public_html/forum (örnek olarak SMF 1.1 RCx'in -veya SMF 1.0.x- kurulu olduğu klasör) /public_html/vbulletin (yukarıda örnek olarak bu klasörü oluşturmuştuk hatırlarsanız) sonra da veritabanı şifrenizi girin ve önünüze gelen her butona basın ![]() Dönüşüm işlemi bittiğinde iki şey yapmanızı tavsiye ederim, 1- vBulletin'in dönüştürülen veritabanını (örnek olarak vb_ ile başlayan tabloları) yeni veritabanından silmeniz. 2- Dönüşüm aracını sitenizden silmeniz. Bunlar performansınızı ve güvenliğiniz açısından önemlidir. vBulletin 3.5.x 'ten SMF 1.1 serisine dönüşüm vBulletin'in bu versiyonları, 3.5 serisini kapsar, yani; vBulletin 3.5.1, 3.5.2, 3.5.3, 3.5.4... vd Önce emin olmamaız gereken, sitemizde temiz bir SMF 1.1 RC2 kurulu olması gerektiği. Bunu bu sitenin download bölümünden indirebilirsiniz. Dönüşüm aracı sadece SMF 1.1 serisi içindir. SMF 1.0.x için dönüşüm yapılmaz. Şimdi vBulletin veritabanını ya SMF ile aynı veritabanına yüklüyoruz, ([iurl=#bkz1]bkz.[/iurl]) ya da vBulletin veritabanı ile SMF veritabanının aynı şifre ile aynı kullanıcı adına sahip olduğundan emin oluyoruz. Sonra da dönüşüm araçlarını indiriyoruz: 1- smf_1-1-rc3_vbulletin35_converter.zip İndirdip açtığımız dosyaları sitemizde herhangi bir klasöre yüküyoruz ve convert.php dosyasını tarayıcımızdan çalıştırıyoruz. (Ör: site.com/convert.phh) Çalıştırdığınızda SMF ve de vBulletin'in kurulu olduğu dizinleri soracak. Ör: /public_html/forum (örnek olarak SMF 1.1 RC2'in kurulu olduğu klasör) /public_html/vbulletin (örnek olarak vBulletin 3.5.x 'in kurulu olduğu klasör) Sonra tuşa tıklıyoruz ve dönüşüm bitene kadar bekliyoruz. Tamamlandıktan sonra vBulletin'e ait veritabanı girdilerini ve sitenizdeki dönüşüm araçlarını silmenizi tavsiye ederim. Bu, performansınız ve güvenliğiniz açısından önemlidir. ]phpBB2 için: Ayrıntılı bir şekilde bu mesajda anlatılmıştır. http://www.simplemachines.org/commun...080#msg1052080 Diğer Forum Yazılımları SMF'e geçebileceğiniz diğer forumlar aşağıda listelenmiştir, bu forumlardan geçiş yapabilmek için bu mesajın başındaki vBulletin bölümünde yazılanları uygulamanız yeterlidir. Dosyaları indirmek için linkten açılacak sayfadaki "Converters for SMF 1.1" başlığı altındaki dosyalar 1.1 serisi için, "Converters for SMF 1.0" başlığı altındaki dosyalar ise 1.0.x serisi için uyumlu olan dönüştürücülerdir. SMF 1.1 Serisi Dönüştürücüleri- (1.1RC1, RC2, RC3 vs...) http://www.simplemachines.org/download/?converters Burning Board 2 Converter Burning Board Lite Converter Deluxe Portal 2 Converter e107 Converter eBlah Converter FUD Converter ikonBoard Converter Invision 1.3 Converter Invision 2 Converter LDU Converter Mercury Board Converter MiniBB Converter MyBB Converter MyPHP Converter myTopix Converter OpenBB Converter Oxygen Converter Phorum Converter phpBB2 Converter phpNuke Converter punBB Converter SimpleBoard Converter Snitz Converter UBB.threads Converter useBB Converter vBB Converter vBulletin 2 Converter vBulletin 3 Converter vBulletin 3.5 Converter XMB Converter XOOPS Converter YaBB 2 Converter YaBB Converter YaBBSE Converter Zorum 3 Converter SMF 1.0 - 1.0.7 ile uyumlu dönüştürücüler: http://www.simplemachines.org/download/?converters Invision 1.3 Converter Invision 2 Converter phpBB2 Converter vBulletin 2 vBulletin 3 XMB Converter YaBB Converter YaBBSE 1.5.x Alıntı:
__________________
O Bir Pardus 2008 Kullanıcısı Kaynak = TÜBİTAK LoRD_DRaM İYİ ÇALIŞMALAR Özlese Pm At Genelse Konu aç Msn = ---- Destek İçin = http://www.vbulletin-tr.com/
Açtığım Konuları Görmek İçin : http://www.vbulletin-tr.com/arama/sonuc/222725 |
|
#2
|
||||
|
||||
|
Soru-6 Arka plana resim nasıl eklerim?
Forumun arka planına herhangi bir resim eklemek istiyorsanız kullandığınız temanın style.css dosyasını açın ve şunu bulun Kod: body altına ekleyin şunu Kod: background-image: url(images/attiginiz_resim.jpg); sonra arkaplan resminizi temanızın images klasörüne atın Soru-7 Manuel kurlumlu modlar var mı? Selamun aleykum Burada modların manuel kurulumlarını paylaşalım inşaallah. 1- Users Online Today sources/BoardIndex.php'Yi Açıyoruz bul : Kod: $context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden']; altına ekle : Kod: // Load the users online today. $nowdate = @getdate(forum_time(false)); $midnight = mktime(0, 0, 0, $nowdate['mon'], $nowdate['mday'], $nowdate['year']) - ($modSettings['time_offset'] * 3600); $s = strpos($user_info['time_format'], '%S') === false ? '' : ':%S'; if (strpos($user_info['time_format'], '%H') === false && strpos($user_info['time_format'], '%T') === false) $time_fmt = '%I:%M' . $s . ' %p'; else $time_fmt = '%H:%M' . $s; $result = db_query(" SELECT mem.ID_MEMBER, mem.lastLogin, mem.realName, mem.memberName, mem.showOnline, mg.onlineColor, mg.ID_GROUP, mg.groupName FROM {$db_prefix}members AS mem LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP)) WHERE mem.lastLogin >= $midnight", __FILE__, __LINE__); $context['num_hidden_users_online_today'] = 0; $context['users_online_today'] = array(); $context['list_users_online_today'] = array(); while ($row = mysql_fetch_assoc($result)) { if (empty($row['showOnline'])) { $context['num_hidden_users_online_today'] = $context['num_hidden_users_online_today'] + 1; if (!allowedTo('moderate_forum')) continue; } $userday = strftime('%d', forum_time(true)); $loginday = strftime('%d', forum_time(true, $row['lastLogin'])); $yesterday = $userday == $loginday ? '' : $txt['uot_yesterday']; $lastLogin = $yesterday . strftime($time_fmt, forum_time(true, $row['lastLogin'])); $title = ' title="' . $lastLogin . '"'; // Some basic color coding... if (!empty($row['onlineColor'])) $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '"' . $title . ' style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>'; else $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '"' . $title . '>' . $row['realName'] . '</a>'; $is_buddy = in_array($row['ID_MEMBER'], $user_info['buddies']); if ($is_buddy) { $link = '<b>' . $link . '</b>'; } $context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array( 'id' => $row['ID_MEMBER'], 'username' => $row['memberName'], 'name' => $row['realName'], 'group' => $row['ID_GROUP'], 'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'], 'link' => $link, 'is_buddy' => $is_buddy, 'hidden' => empty($row['showOnline']), ); $context['list_users_online_today'][$row['lastLogin'] . $row['memberName']] = empty($row['showOnline']) ? '<i>' . $link . '</i>' : $link; } mysql_free_result($result); krsort($context['users_online_today']); krsort($context['list_users_online_today']); $context['num_users_online_today'] = count($context['users_online_today']); if (!allowedTo('moderate_forum')) { $context['num_users_online_today'] = $context['num_users_online_today'] + $context['num_hidden_users_online_today']; } sources/Stats.php'Yi Aç bul : Kod: $context['online_today'] = (int) $context['online_today']; Altına Ekle Kod: // Total members online today $frag = explode('-', strftime('%Y-%m-%d', time())); $midnight = forum_time(false, mktime(0, 0, 0, (int) $frag[1], (int) $frag[2], (int) $frag[0])); $result = db_query(" SELECT COUNT(*) FROM {$db_prefix}members WHERE lastLogin >= $midnight", __FILE__, __LINE__); list ($context['total_users_online_today']) = mysql_fetch_row($result); Themes/BoardIndex.template.php'Yi Aç bul : Kod: ', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ') </span> </td> </tr>'; Altına Ekle Kod: // Users online today echo ' <tr> <td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td> </tr><tr> <td class="windowbg" width="20" valign="middle" align="center"> <img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" /> </td> <td class="windowbg2" width="100%">'; echo ' <div class="smalltext">'; echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>'; if (!$context['user']['is_guest']) echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')'; // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link. if (!empty($context['users_online_today']) && !$context['user']['is_guest']) echo '<br />', implode(', ', $context['list_users_online_today']); echo ' <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? ' <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', ' </div> </td> </tr>'; Themes/default/Stats.template.php ac bul : Kod: <td nowrap="nowrap">', $txt['users_online_today'], ':</td> <td align="right">', $context['online_today'], '</td>'; bununla değiştir Kod: <td nowrap="nowrap">', $txt['users_online_today'], ':</td> <td align="right">', $context['online_today'], '</td> </tr><tr> <td nowrap="nowrap">', $txt['uot_total_users_online_today'], ':</td> <td align="right">', $context['total_users_online_today'], '</td>'; languages/Modifications.turkish.php ac bul: Kod: ?> ustune ekle : Kod: $txt['uot_users_online_today_title']='Bugün Online Olan Üyeler';$txt['uot_total_users_online_today']='Bugün siteye giren üyeler';$txt['uot_yesterday']='Dün, şu saatte: ';$txt['uot_total']='Toplam';$txt['uot_visible']='Normal';$txt['uot_hidden']='Gizli'; Hazırlayan: Bilbilal (Huzeyfe) Soru-8 Foruma Gelişmiş Yazı Editörü Nasıl kurulur? Evet arkadaşlar zaten var olan ama daha da geliştirilip yeni sürümüyle karşınıza gelen Vbulletinden bile daha iyi bir yazı editörünüz olacak bu editörün kurulumu da basit. Ben özetle anlatayım kuracağınız editör artık gelişmiş olacağından wordden veya başka yerden aldığınız yazılar filan aynen smf forumunuzda olacak olay şu ![]() Ş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 Themes/default/Display.template.php bul Kod: <textarea cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea><br /> değiştir Kod: <!--//HotEditor MOD - Quick Reply --><textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" cols="75" rows="7" id="message" name="message" tabindex="1"></textarea><style type="text/css">@import url(richedit/styles/office2007/style.css);</style> <script language="JavaScript" type="text/javascript" src="richedit/editor.js?version=4.2"></script><script language="JavaScript" type="text/javascript"> 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; } }</script><br /><!--//HotEditor MOD Quick Reply --> bul Kod: var smf_template_body_edit = \'<div id="error_box" style="padding: 4px; color: red;"></div><textarea class="editor" name="message" rows="12" style="width: 94%; margin-bottom: 10px;">%body%</textarea><br /><input type="hidden" name="sc" value="', $context['session_id'], '" /><input type="hidden" name="topic" value="', $context['current_topic'], '" /><input type="hidden" name="msg" value="%msg_id%" /><div style="text-align: center;"><input type="submit" name="post" value="', $txt[10], '" onclick="return modify_save(\\\'' . $context['session_id'] . '\\\');" accesskey="s" /> ', $context['show_spellchecking'] ? '<input type="button" value="' . $txt['spell_check'] . '" onclick="spellCheck(\\\'quickModForm\\\', \\\'message\\\');" /> ' : '', '<input type="submit" name="cancel" value="', $txt['modify_cancel'], '" onclick="return modify_cancel();" /></div>\'; değiştir Kod: //HotEditor MOD QUICK EDIT / MODIFY POSTvar edit_session_id = "', $context['session_id'], '";var smf_template_body_edit = \'<div id="error_box" style="padding: 4px; color: red;"></div><iframe frameborder=0 width=100% height=550px src="hoteditor_quickedit.html" scrolling=no target="_top"></iframe><textarea style="visibility:hidden;width:1px;height:1px" id="message" class="editor" name="message" rows="12" style="width: 94%; margin-bottom: 10px;">%body%</textarea><input type="hidden" name="sc" value="', $context['session_id'], '" /><input type="hidden" name="topic" value="', $context['current_topic'], '" /><input type="hidden" name="msg" value="%msg_id%" /><div style="text-align: center;"><input type="hidden" name="post" value="', $txt[10], '" onclick="return modify_save(\\\'' . $context['session_id'] . '\\\');" accesskey="s" /> ', $context['show_spellchecking'] ? '<input type="button" value="' . $txt['spell_check'] . '" onclick="spellCheck(\\\'quickModForm\\\', \\\'message\\\');" /> ' : '', '<input type="hidden" name="cancel" value="', $txt['modify_cancel'], '" onclick="return modify_cancel();" /></div>\'; aç Themes/default/Post.template.php bul 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 ' <tr> <td align="right"></td> <td valign="middle">'; // 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 "<img style='cursor:hand;cursor ointer' onmousedown=\"if(editor_type==1){WriteHTML('<img src=$smiley_src>','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 '<br />'; } // If the smileys popup is to be shown... show it! if (!empty($context['smileys']['popup'])) echo ' <a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>'; echo ' </td> </tr>'; } // If there are additional smileys then ensure we provide the javascript for them. if (!empty($context['smileys']['popup'])) { echo ' <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[ 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 ','; } echo ']; var smileyPopupWindow; function moreSmileys() { var row, i; if (smileyPopupWindow) smileyPopupWindow.close(); smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrol lbars=yes,width=480,height=220,resizable=yes"); smileyPopupWindow.document.write(\'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>\'); smileyPopupWindow.document.write(\'\n\t<head>\n\t\ t<title>', $txt['more_smileys_title'], '</title>\n\t\t<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css" />\n\t</head>\'); smileyPopupWindow.document.write(\'\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">', $txt['more_smileys_pick'], '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">\'); for (row = 0; row < smileys.length; row++) { for (i = 0; i < smileys[row].length; i++) { smileys[row][i][2] = smileys[row][i][2].replace(/"/g, \'"\'); smileyPopupWindow.document.write(\'<a href="javascript:void(0);" onclick="window.opener.replaceText(" \' + smileys[row][i][0] + \'", window.opener.document.forms.', $context['post_form'], '.', $context['post_box_name'], '); window.focus(); return false;"><img src="', $settings['smileys_url'], '/\' + smileys[row][i][1] + \'" alt="\' + smileys[row][i][2] + \'" title="\' + smileys[row][i][2] + \'" style="padding: 4px;" border="0" /></a> \'); } smileyPopupWindow.document.write("<br />"); } smileyPopupWindow.document.write(\'</td></tr>\n\t\t\t<tr><td align="center" class="windowbg"><a href="javascript:window.close();\\">', $txt['more_smileys_close_window'], '</a></td></tr>\n\t\t</table>\n\t</body>\n</html>\'); smileyPopupWindow.document.close(); } // ]]></script>'; }// Finally the most important bit - the actual Hoteditor box to write in!//HotEditor MODprint<<<HTML_CODE <tr> <td valign="top" align="right"></td> <td> <textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" class="editor" id="hoteditor_holder" name="$context[post_box_name]" >$message</textarea> <style type="text/css">@import url(richedit/styles/office2007/style.css);</style> <script language="JavaScript" type="text/javascript" src="richedit/editor.js?version=4.2"></script> <script language="JavaScript" type="text/javascript"> var getdata =document.getElementById("hoteditor_holder").value ; getdata=getdata.replace(/\[S\]/gi,"[STRIKE]"); getdata=getdata.replace(/\[\/S\]/gi,"[/STRIKE]"); Instantiate("max","editor", getdata , "100%", "300px"); 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("hoteditor_holder").value = bbcode_output; } } </script> </td> </tr>HTML_CODE;}function template_postbox_old(&$message)bul Kod: replaceText(text, document.forms.postmodify.message); değiştir Kod: //HotEditor MODif(editor_type=="0"){//BBCode Editor WriteTEXT(text,"editor");}else{//WYSIWYG Editor text=BBCodeToHTML(text); WriteHTML(text,"editor");} bul Kod: <input type="submit" name="post" value="', $context['submit_label'], '" tabindex="', $context['tabindex']++, '" onclick="return submitThisOnce(this);" accesskey="s" /><input type="submit" name="preview" value="', $txt[507], '" tabindex="', $context['tabindex']++, '" onclick="return event.ctrlKey || previewPost();" accesskey="p" />'; değiştir Kod: <input type="submit" name="post" value="', $context['submit_label'], '" tabindex="', $context['tabindex']++, '" onclick="return get_hoteditor_data();submitThisOnce(this);" accesskey="s" /><input type="submit" name="preview" value="', $txt[507], '" tabindex="', $context['tabindex']++, '" onclick="return event.ctrlKey || get_hoteditor_data();previewPost();" accesskey="p" />'; aç Themes/default/Profile.template.php bul Kod: echo ' </td> <td> <textarea class="editor" onkeyup="calcCharLeft();" name="signature" rows="5" cols="50">', $context['member']['signature'], '</textarea><br />'; değiştir Kod: $sign_message=$context['member']['signature'];print<<<HTML_CODE </td> <td> <textarea style="visibility:hidden;position:absolute;top:-20;left:-20;width:1px;height:1px" class="editor" id="signature" name="signature" rows="5" cols="50">$sign_message</textarea><br /> <style type="text/css">@import url(richedit/styles/office2007/style.css);</style> <script language="JavaScript" type="text/javascript" src="richedit/editor.js?version=4.2"></script> <script language="JavaScript" type="text/javascript"> var getdata =document.getElementById("signature").value; getdata=getdata.replace(/\[S\]/gi,"[STRIKE]"); getdata=getdata.replace(/\[\/S\]/gi,"[/STRIKE]"); Instantiate("min","editor", getdata , "100%", "200px"); 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("signature").value = bbcode_output; } } </script>HTML_CODE; bul Kod: <form action="', $script**** '?action=profile2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator" enctype="multipart/form-data"> değiştir Kod: <form onSubmit="return get_hoteditor_data();" action="', $script**** '?action=profile2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator" enctype="multipart/form-data"> aç Themes/default/script.js bul Kod: function submitonce(theform){ smf_formSubmitted = true;} değiştir Kod: function submitonce(theform){ //HotEditor MOD get_hoteditor_data(); smf_formSubmitted = true;} bul Kod: // Replaces the currently selected text with the passed text.function replaceText(text, textarea){ // Attempt to create a text range (IE). if (typeof(textarea.caretPos) != "undefined" && textarea.createTextRange) { var caretPos = textarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; caretPos.select(); } // Mozilla text range replace. else if (typeof(textarea.selectionStart) != "undefined") { var begin = textarea.value.substr(0, textarea.selectionStart); var end = textarea.value.substr(textarea.selectionEnd); var scrollPos = textarea.scrollTop; textarea.value = begin + text + end; if (textarea.setSelectionRange) { textarea.focus(); textarea.setSelectionRange(begin.length + text.length, begin.length + text.length); } textarea.scrollTop = scrollPos; } // Just put it on the end. else { textarea.value += text; textarea.focus(textarea.value.length - 1); }} değiştir Kod: // Replaces the currently selected text with the passed text.function replaceText(text, textarea){ if(editor_type==1){ text=BBCodeToHTML(text); WriteHTML(text,"editor"); } else{ WriteTEXT(text,"editor"); } } aç Sources/Subs.php bul Kod: $codes = array( sonrasına ekle Kod: //HotEditor MOD array( 'tag' => 'highlight', 'type' => 'unparsed_equals', 'test' => '(#[\da-fA-F]{3}|#[\da-fA-F]{6}|[A-Za-z]{1,12})\]', 'before' => '<span style="background-color: $1;">', 'after' => '</span>',),array( 'tag' => 'strike', 'before' => '<strike>', 'after' => '</strike>',), Ve son olarak türkçe dil dosyasını richeditör klasöründe varolanın üzerine ekten alarak ftp den attıktan sonra iş bitiyor güle güle kullanın, eğer imzada editör sorun olursa o zaman da profile_template de yapacağınız değişiklikleri yapmayın. not alınt : memoc@n
__________________
O Bir Pardus 2008 Kullanıcısı Kaynak = TÜBİTAK LoRD_DRaM İYİ ÇALIŞMALAR Özlese Pm At Genelse Konu aç Msn = ---- Destek İçin = http://www.vbulletin-tr.com/
Açtığım Konuları Görmek İçin : http://www.vbulletin-tr.com/search.php?searchid=222725 |
![]() ![]() |
| Şu an bu konuyu görüntüleyen kullanıcı sayısı: 1 (0 üye ve 1 misafir) | |
| Konu Araçları | Bu Konuda Ara |
| Mod Seç | |
|
|
| vBulletin-Türkiye'de Yeni Misiniz? | Yardıma ihtiyacınız mı var? |