SMF Tricks

SMF General => Tips and Tutorials => Topic started by: Beckham on January 03, 2014, 07:57:22 PM

Title: Slider Social Icons
Post by: Beckham on January 03, 2014, 07:57:22 PM
Slider Social Icons


Traigo un exelente tip para agregar iconos sociales a su theme con un diseño elegante.
cuando terminemos tendremos algo haci:

Spoiler
(https://smftricks.com/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2Fdemooz.png&hash=a1a49969a5647629ef0637c773eee3a71b5ef05d)
[close]



Bien empezemos vamos al index.template.php y buscamos:

// Here comes the JavaScript bits!
echo '


Agregamos despues:

<script type="text/javascript" src="', $settings['theme_url'], '/scripts/Social.js"></script>
<script type="text/javascript" src="', $settings['theme_url'], '/scripts/Social2.js"></script>


Buscamos:
// Show the menu here, according to the menu sub template.
template_menu();


Agregamos despues:
    // Social Icons By Monster Studios
echo'
    <ul id="navigation">
            <li class="Facebook"><a href="" title="Siguenos en Facebook"></a></li>
            <li class="Twitter"><a href="" title="Siguenos en Twitter"></a></li>
            <li class="Youtube"><a href="" title="Mira nuestros videos"></a></li>
        </ul>';



Ahora vamos a nuestro index.css y agregamos al final:

/* Social Icos By Monster Studios.
------------------------------------------------------- */
ul#navigation {
    position: fixed;
    margin: 0px;
    padding: 0px;
    top: 25%;
    left: 0px;
    list-style: none;
    z-index:9999;
}
ul#navigation li {
    width: 100px;
}
ul#navigation li a {
    display: block;
    margin-left: -2px;
    width: 100px;
    height: 70px;   
    background-color:#CFCFCF;
    background-repeat:no-repeat;
    background-position:center center;
    border:1px solid #AFAFAF;
    -moz-border-radius:0px 10px 10px 0px;
    -webkit-border-bottom-right-radius: 10px;
    -webkit-border-top-right-radius: 10px;
    -khtml-border-bottom-right-radius: 10px;
    -khtml-border-top-right-radius: 10px;
    /*-moz-box-shadow: 0px 4px 3px #000;
    -webkit-box-shadow: 0px 4px 3px #000;
    */
    opacity: 0.6;
    filter:progid:DXImageTransform.Microsoft.Alpha(opacity=60);
}
ul#navigation .Facebook a{
    background-image: url(../images/Social/Facebook.png);
}
ul#navigation .Twitter a      {
    background-image: url(../images/Social/Twitter.png);
}
ul#navigation .Youtube a      {
    background-image: url(../images/Social/Youtube.png);
}



Ahora solo ay que descoprimir el archivo adjunto y agregar los archivos  a sus respetivas carpetas

Social.js y Social2.js a la carpeta scripts de su theme.
La carpeta Social la enviamos a la carpeta images de su theme

Descarga (http://www.mediafire.com/?1prd52rx4a5j2m0)

Ups olvidaba el VT (https://www.virustotal.com/es/file/ce8b571228ac25e18302f8299bfea041657d8cd88ef8367e01deab44eaa44969/analysis/1385054901)
Title: Re:Slider Social Icons
Post by: Diego Andrés on January 03, 2014, 09:44:19 PM
Sería mejor que adjuntes los archivos en el foro.

Buen aporte y gracias por compartir.
Title: Re:Slider Social Icons
Post by: Aboul on January 04, 2014, 03:06:53 PM
Buen aporte muy elegante el diseño pero sería muy bueno si colocas los créditos a mi amigo "Zoom"
Title: Re:Slider Social Icons
Post by: Diego Andrés on January 04, 2014, 03:08:17 PM
Quote from: Hurley on January 04, 2014, 03:06:53 PM
Buen aporte muy elegante el diseño pero sería muy bueno si colocas los créditos a mi amigo "Zoom"

Él es Zoom.