Mod Adk Portal (2.1.1)

Adk portal is a portal integrated to SMF, with multiple extensions and features.
The portal is aimed at simple and intuitive to the Administrator.
It has all the characteristics of portal, in addition to having a great set of downloads, system of internal pages, etc.

Mod Adk Seo (3.0)

Adk Seo is an internal system of SMF to improve your ranking.
It has powerful features to appear on the top of major search engines.
With this product, you can change your urls, choose your format, encouraging social activity on your site, place their own sitemaps, etc.
Mod Adk Blog (3.0)

Adk blog is an internal system of SMF to help encourage business users.
This product will create a space where your users can use as your own blog, creating categories, entries, and managing your comments.


BBC en perfil/firma


Board:

Tutoriales

Topic:

BBC en perfil/firma


Description:

Foro de tutoriales para smf

Author Topic: BBC en perfil/firma  (Read 569 times)

0 Members and 1 Guest are viewing this topic.

BBC en perfil/firma

BBC en perfil/firma
« on: June 26, 2011, 12:36:09 AM »
Hola amigos aqui les traigo una modificacion que encontre paciandome por smfmod

En profile.templante.php
buscan

Code: [Select]
            echo '
                     </dt>
                     <dd>
                        <textarea class="editor" onkeyup="calcCharLeft();" name="signature" rows="5" cols="50">', $context['member']['signature'], '</textarea>[br /]';

y Remplazan por
Code: [Select]
            echo '
                     </dt>
                     <dd>
                                <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' => '[b]', 'after' => '[/b]', 'description' => $txt[253]),
            'italicize' => array('code' => 'i', 'before' => '[i]', 'after' => '[/i]', 'description' => $txt[254]),
            'underline' => array('code' => 'u', 'before' => '[u]', 'after' => '[/u]', 'description' => $txt[255]),
            'img' => array('code' => 'img', 'before' => '[img]', 'after' => '[/img]', 'description' => $txt[435]),
            'url' => array('code' => 'url', 'before' => '[url]', 'after' => '[/url]', 'description' => $txt[257]),
            'email' => array('code' => 'email', 'before' => '[email]', 'after' => '[/email]', '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' => '[font=Verdana]', 'after' => '[/font]', 'description' => $txt[533]),
            'pre' => array('code' => 'pre', 'before' => '[pre]', 'after' => '[/pre]', 'description' => $txt[444]),
            'left' => array('code' => 'left', 'before' => '[left]', 'after' => '[/left]', 'description' => $txt[445]),
            'center' => array('code' => 'center', 'before' => '[center]', 'after' => '[/center]', 'description' => $txt[256]),
            'right' => array('code' => 'right', 'before' => '[right]', 'after' => '[/right]', 'description' => $txt[446]),
            'list' => array('code' => 'list', 'before' => '[list]\n[li]', 'after' => '[/li]\n\n[/list]', '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 [/url]!
                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;" />[/url]';
            }
        }
echo '
<textarea class="editor" onkeyup="calcCharLeft();" name="signature" rows="5" cols="50">', $context['member']['signature'], '</textarea>[br /]';

Vista Previa


^^ Fuente

adthz

  • *
  • Posts: 256



Sorry visitor. To access the SMF Personal answers, you need to Register or Login.

Atte. SMF Personal

Tags

 


 
Application Parser To Mod

It is a system developed by SMF Personal, similar to parse smf, but with the difference that it not only show us the steps to install mods but also show us the steps to uninstall and update mods.
The mods that can be analyzed are obviously those who are raised in SMF Personal.
Section Mods

In this section you will find all mods done by the staff and users of SMF Personal.
The mods are displayed in a simple and easy to read.
Section Tutorials

In this section you will find all the tutorials made by our staff and users of SMF Personal.
The tutorials are displayed in a simple and easy to read.

SMF 2.0.2 | SMF © 2011, Simple Machines | Adk Portal 2.1.1 © SMF personal  & Adk Seo 3.0
This site is not affiliated with or endorsed by Simple Machines