• 1
  • 6 RepliesReplies
  • 6868 ReadTimes Read
  • 6 PointsPoints

Topic: [tutorial]Darle otro estilo a las quotes en SMF

no avatar
Usuario: Josua
Rango: Friend de SMFSimple
Mensajes: 305
Points: 2
Mi web: http://despeloterosunidos.com
Perfil: View Profile
Les traigo una pequeña guía de como darle un estilo diferente a los quotes de smf.

Después de haberlo hecho les quedará  así.






En sources/subs.php

Buscar

Code: [Select]
array(
'tag' => 'quote',
'before' => '<div class="quoteheader"><div class="topslice_quote">' . $txt['quote'] . '</div></div><blockquote>',
'after' => '</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>',
'block_level' => true,
),
array(
'tag' => 'quote',
'parameters' => array(
'author' => array('match' => '(.{1,192}?)', 'quoted' => true),
),
'before' => '<div class="quoteheader"><div class="topslice_quote">' . $txt['quote_from'] . ': {author}</div></div><blockquote>',
'after' => '</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>',
'block_level' => true,
),
array(
'tag' => 'quote',
'type' => 'parsed_equals',
'before' => '<div class="quoteheader"><div class="topslice_quote">' . $txt['quote_from'] . ': $1</div></div><blockquote>',
'after' => '</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>',
'quoted' => 'optional',
// Don't allow everything to be embedded with the author name.
'parsed_tags_allowed' => array('url', 'iurl', 'ftp'),
'block_level' => true,
),
array(
'tag' => 'quote',
'parameters' => array(
'author' => array('match' => '([^<>]{1,192}?)'),
'link' => array('match' => '(?:board=\d+;)?((?:topic|threadid)=[\dmsg#\./]{1,40}(?:;start=[\dmsg#\./]{1,40})?|action=profile;u=\d+)'),
'date' => array('match' => '(\d+)', 'validate' => 'timeformat'),
),
'before' => '<div class="quoteheader"><div class="topslice_quote"><a href="' . $scripturl . '?{link}">' . $txt['quote_from'] . ': {author} ' . $txt['search_on'] . ' {date}</a></div></div><blockquote>',
'after' => '</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>',
'block_level' => true,
),
array(
'tag' => 'quote',
'parameters' => array(
'author' => array('match' => '(.{1,192}?)'),
),
'before' => '<div class="quoteheader"><div class="topslice_quote">' . $txt['quote_from'] . ': {author}</div></div><blockquote>',
'after' => '</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>',
'block_level' => true,
),

Reemplazar por
Code: [Select]
array(
'tag' => 'quote',
'before' => '<blockquote><div class="quoteheader"><div class="topslice_quote">' . $txt['quote'] . '</div></div>',
'after' => '</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div></center>',
'block_level' => true,
),
array(
'tag' => 'quote',
'parameters' => array(
'author' => array('match' => '(.{1,192}?)', 'quoted' => true),
),
'before' => '<blockquote><div class="quoteheader"><div class="topslice_quote">' . $txt['quote_from'] . ': {author}</div></div></center>',
'after' => '</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>',
'block_level' => true,
),
array(
'tag' => 'quote',
'type' => 'parsed_equals',
'before' => '<blockquote><div class="quoteheader"><div class="topslice_quote">' . $txt['quote_from'] . ': $1</div></div>',
'after' => '</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>',
'quoted' => 'optional',
// Don't allow everything to be embedded with the author name.
'parsed_tags_allowed' => array('url', 'iurl', 'ftp'),
'block_level' => true,
),
array(
'tag' => 'quote',
'parameters' => array(
'author' => array('match' => '([^<>]{1,192}?)'),
'link' => array('match' => '(?:board=\d+;)?((?:topic|threadid)=[\dmsg#\./]{1,40}(?:;start=[\dmsg#\./]{1,40})?|action=profile;u=\d+)'),
'date' => array('match' => '(\d+)', 'validate' => 'timeformat'),
),
'before' => '<blockquote><div class="quoteheader"><div class="topslice_quote"><a href="' . $scripturl . '?{link}">' . $txt[''] . '@ {author} </a></div></div>',
'after' => '</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>',
'block_level' => true,
),
array(
'tag' => 'quote',
'parameters' => array(
'author' => array('match' => '(.{1,192}?)'),
),
'before' => '<blockquote><div class="quoteheader"><div class="topslice_quote">' . $txt['quote_from'] . ': {author}</div></div>',
'after' => '</blockquote><div class="quotefooter"><div class="botslice_quote"></div></div>',
'block_level' => true,
),


en el index.css de tu theme buscar

Code: [Select]
blockquote.bbc_standard_quote, blockquote.bbc_alternate_quote
{
font-size: 12px;
color: #555;
line-height: 1.4em;
background: url(../images/theme/quote.png) 0.1em 0.1em no-repeat;
border-top: 2px solid #999;
border-bottom: 2px solid #999;
padding: 1.1em 1.4em;
margin: 0.1em 0 0.3em 0;
overflow: auto;
}

blockquote.bbc_standard_quote
{
background-color: #fff;
}
blockquote.bbc_alternate_quote
{
background-color: #fff;
}

code.bbc_code
{
display: block;
font-family: "dejavu sans mono", "monaco", "lucida console", "courier new", monospace;
font-size: x-small;
background: #ebf1e3;
border-top: solid 1px #cbd1c6;
border-left: solid 1px #cbd1c6;
border-right: solid 1px #fff;
border-bottom: solid 1px #fff;
line-height: 1.5em;
padding: 3px 1em;
overflow: auto;
white-space: pre;
max-height: 24em;
}

Y remplazamos por:

Code: [Select]
/* Inicio de quotes */

.quoteheader, blockquote blockquote .quoteheader
{
color: #7a899c;
    background: url(../images/theme/bgheaderquote.png) repeat-x;
height:30px;

}


blockquote.bbc_standard_quote, blockquote.bbc_alternate_quote
{
font-size: 12px;
color: #555;
line-height: 1.4em;
border-top: 1px solid #CCCCCC;
border-bottom: 1px outset #CCCCCC;
border-left: 1px solid #CCCCCC;
border-right: 1px solid #CCCCCC;
padding: 0.1em 0.1em;
margin: auto;
overflow: auto;
Width: 90%;

-moz-border-radius:4px 4px 4px 4px;
    -webkit-border-radius:4px 4px 4px 4px;
}

blockquote.bbc_standard_quote
{
background-color: #F8F8F8;
}
blockquote.bbc_alternate_quote
{
background-color: #f8f8f8;
}
/*fin quotes*/

code.bbc_code
{
display: block;
font-family: "dejavu sans mono", "monaco", "lucida console", "courier new", monospace;
font-size: x-small;
background: #ebf1e3;
border-top: solid 1px #cbd1c6;
border-left: solid 1px #cbd1c6;
border-right: solid 1px #fff;
border-bottom: solid 1px #fff;
line-height: 1.5em;
padding: 3px 1em;
overflow: auto;
white-space: pre;
max-height: 24em;
}

Y luego subimos la imagen adjunta a la carpeta /images/theme   de tu theme

Puede funcionar para cualquier theme auuque esta guia es con el theme sunblox de smfsimple. pero en otros seria basicamente lo mismo.

Dejo un link a una cita en mi foro, para que vean como queda.

http://despeloterosunidos.com/index.php?topic=51.msg2339#msg2339

Saludos
You do not have permission to give points
point 6 Points

Users who gave points in this topic » iCako (3 Pts) » Skoria (3 Pts) 

Usuario: Lean
Rango: Fundador
Mensajes: 6782
Points: 236
Perfil: View Profile
Pais:
ar
Re:[tutorial]Darle otro estilo a las quotes en SMF
Reply #1 July 23, 2011 - 05:38 17:38
Excelente! +1

Usuario: Papá distante
Rango: Moderador Global
Mensajes: 3504
Points: 168
Perfil: View Profile
Pais:
de
Re:[tutorial]Darle otro estilo a las quotes en SMF
Reply #2 July 23, 2011 - 08:24 20:24
Muy bueno! +0.99

Usuario: Kushirin
Rango: Nuevo Usuario
Mensajes: 128
Points: 8
Mi web: http://multipsp.com/
Perfil: View Profile
Pais:
es
Re:[tutorial]Darle otro estilo a las quotes en SMF
Reply #3 August 29, 2011 - 10:12 10:12
Tengo un Index.css diferente... podrias mirarlo a ver si puedo realizar esta operacion?

No quiero tocar algo y acabar de destruir mi foro xD

Usuario: Cesar
Rango: Friend de SMFSimple
Mensajes: 1227
Points: 254
Mi web: http://www.genomapc.com
Perfil: View Profile
Pais:
ar
Re:[tutorial]Darle otro estilo a las quotes en SMF
Reply #4 August 29, 2011 - 10:17 10:17
te quedo excelente el estilo del quote seguramente lo uso :) +1 para ti

no avatar
Usuario: Josua
Rango: Friend de SMFSimple
Mensajes: 305
Points: 2
Mi web: http://despeloterosunidos.com
Perfil: View Profile
Re:[tutorial]Darle otro estilo a las quotes en SMF
Reply #5 August 29, 2011 - 11:59 11:59
Tengo un Index.css diferente... podrias mirarlo a ver si puedo realizar esta operacion?

No quiero tocar algo y acabar de destruir mi foro xD

Link de tu pagina, para ver el teme que usas

Usuario: Kushirin
Rango: Nuevo Usuario
Mensajes: 128
Points: 8
Mi web: http://multipsp.com/
Perfil: View Profile
Pais:
es
Re:[tutorial]Darle otro estilo a las quotes en SMF
Reply #6 August 31, 2011 - 05:12 05:12
http://multipsp.skn1.com/

Uso el Submission de Crip.

 

TAGS



top

Smfsimple.com es un sitio destinado a brindar un servicio de soporte y herramientas para foros realizados con el sistema de foros gratuito simplemachines.org. Contamos con un selecto equipo de desarrolladores y conocedores del sistema, sus foros estaran en buenas manos.
This site is not affiliated with or endorsed by Simple Machines