IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   SMF (https://www.ircforumlari.net/smf/)
-   -   İmzaya Gelişmiş Editör (https://www.ircforumlari.net/smf/221910-imzaya-gelismis-editor.html)

Sunay 15 Haziran 2009 00:19

İmzaya Gelişmiş Editör
 
[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]




themenız/Profile.template.phpde 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:

echo '
                                                                </td>
                                                                <td>
                                                                <script language="JavaScript" type="text/javascript">
                                                function bbc_highlight(something, mode)
                                                {
                                                        something.style.backgroundImage = "url(" + smf_images_url + (mode ? "/bbc/bbc_hoverbg.gif)" : "/bbc/bbc_bg.gif)");
                                                }
                                        </script>';
                // load the post variables
                loadLanguage('Post');
                // The below array makes it dead easy to add images to this page. Add it to the array and everything else is done for you!
                $context['bbc_tags'] = array();
                $context['bbc_tags'][] = array(
                        'bold' => array('code' => 'b', 'before' => '', 'after' => '', 'description' => $txt[253]),
                        'italicize' => array('code' => 'i', 'before' => '', 'after' => '', 'description' => $txt[254]),
                        'underline' => array('code' => 'u', 'before' => '', 'after' => '', 'description' => $txt[255]),
                        'img' => array('code' => 'img', 'before' => '
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
', 'description' => $txt[435]),
                        'url' => array('code' => 'url', 'before' => '[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]', 'description' => $txt[257]),
                        'email' => array('code' => 'email', 'before' => '', 'after' => '', 'description' => $txt[258]),
                        'ftp' => array('code' => 'ftp', 'before' => '[ftp]', 'after' => '[/ftp]', 'description' => $txt[434]),
                        'size' => array('code' => 'size', 'before' => '[size=10pt]', 'after' => '[/size]', 'description' => $txt[532]),
                        'face' => array('code' => 'font', 'before' => '', 'after' => '', 'description' => $txt[533]),
                        'pre' => array('code' => 'pre', 'before' => '[pre]', 'after' => '[/pre]', 'description' => $txt[444]),
                        'left' => array('code' => 'left', 'before' => '
', 'after' => '
', 'description' => $txt[445]),
                        'center' => array('code' => 'center', 'before' => '
', 'after' => '
', 'description' => $txt[256]),
                        'right' => array('code' => 'right', 'before' => '
', 'after' => '
', 'description' => $txt[446]),
                        'list' => array('code' => 'list', 'before' => '
  • \n[li]', 'after' => '[/li]\n[li][/li]\n

', 'description' => $txt[261]),
                );
                // Here loop through the array, printing the images/rows/separators!
                foreach ($context['bbc_tags'][0] as $image => $tag)
                {
                        // Is there a "before" part for this bbc button? If not, it can't be a button!!
                        if (isset($tag['before']))
                        {
                                // Is this tag disabled?
                                if (!empty($context['disabled_tags'][$tag['code']]))
                                        continue;

                                // If there's no after, we're just replacing the entire selection in the post box.
                                if (!isset($tag['after']))
                                        echo '<a href="javascript:void(0);" onclick="replaceText(\'', $tag['before'], '\', document.forms.creator.signature); return false;">';
                                // On the other hand, if there is one we are surrounding the selection ;).
                                else
                                        echo '<a href="javascript:void(0);" onclick="surroundText(\'', $tag['before'], '\', \'', $tag['after'], '\', document.forms.creator.signature); return false;">';

                                // Okay... we have the link. Now for the image and the closing </a>!
                                echo '<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/', $image, '.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>';
                        }
                }
echo '                                                                        <textarea class="editor" onkeyup="calcCharLeft();" name="signature" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" rows="5" cols="50">', $context['member']['signature'], '</textarea><br />';


yunal 06 Mayıs 2012 00:51

Cevap: İmzaya Gelişmiş Editör
 
teşekkürler deneyeceğim


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 03:21.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk