Balão em forma citação

Iniciado por candidosa2, 22 de Abril de 2009, 07:17

Tópico anterior - Tópico seguinte

0 Membros e 2 Visitantes estão a ver este tópico.

candidosa2


Subs.php

Pesquisar
// Parse bulletin board code in a string, as well as smileys optionally.
function parse_bbc($message, $smileys = true, $cache_id = '')
{

global $txt, $scripturl, $context, $modSettings, $user_info;


Alterar por
// Parse bulletin board code in a string, as well as smileys optionally.
function parse_bbc($message, $smileys = true, $cache_id = '')
{

global $settings, $txt, $scripturl, $context, $modSettings, $user_info;



Pesquisar
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"><a href="' . $scripturl . '?{link}">' . $txt['smf239'] . ': {author} ' . $txt[176] . ' {date}</a></div><div class="quote">',
'after' => '</div>',
'block_level' => true,
),


Alterar por
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' => '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="13"><img src="' . $settings['images_url'] . '/cita/solu.gif" width="13" height="22" /></td><td width="13"><img src="' . $settings['images_url'] . '/cita/solust.gif" width="13" height="22" /></td><td background="' . $settings['images_url'] . '/cita/ortaust.gif" width="4%"  align="left"><font style="font-size: 8pt">Citação:</font></td><td width="13"><img src="' . $settings['images_url'] . '/cita/sagust.gif" /></td><td width="13"><img src="' . $settings['images_url'] . '/cita/solust.gif" width="13" height="22" /></td><td background="' . $settings['images_url'] . '/cita/ortaust.gif" align="left"><font style="font-size: 8pt"><a href="' . $scripturl . '?{link}"><b>{author}</b></a> e que mandou.</font></td><td width="13"><img src="' . $settings['images_url'] . '/cita/sagust.gif" /></td><td background="' . $settings['images_url'] . '/cita/ustduz.gif" width="50%"></td><td width="13"><img src="' . $settings['images_url'] . '/cita/sagu.gif" width="13" height="22" /></td><tr><td width="13" background="' . $settings['images_url'] . '/cita/sol.gif"></td><td bgcolor="#FFFFFF" colspan="7">',

'after' => '</td><td width="13" background="' . $settings['images_url'] . '/cita/sag.gif"></td></tr><tr><td width="13"><img src="' . $settings['images_url'] . '/cita/sola.gif" width="13" height="22" /></td><td background="' . $settings['images_url'] . '/cita/altduz.gif" colspan="7"></td><td width="13"><img src="' . $settings['images_url'] . '/cita/saga.gif" width="13" height="22" /></td></tr></table>
',
'block_level' => true,
),


Imagem no anexo colocar na pasta das imagens do teu themes

margarett

Muito interessante essa modificação!

Boa malha!
Bruno Alves a.k.a. "margarett"

K@Kus Lda.™

Citação de: candidosa2 em 22 de Abril de 2009, 07:17

Subs.php

Pesquisar
// Parse bulletin board code in a string, as well as smileys optionally.
function parse_bbc($message, $smileys = true, $cache_id = '')
{

global $txt, $scripturl, $context, $modSettings, $user_info;


Alterar por
// Parse bulletin board code in a string, as well as smileys optionally.
function parse_bbc($message, $smileys = true, $cache_id = '')
{

global $settings, $txt, $scripturl, $context, $modSettings, $user_info;



Pesquisar
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"><a href="' . $scripturl . '?{link}">' . $txt['smf239'] . ': {author} ' . $txt[176] . ' {date}</a></div><div class="quote">',
'after' => '</div>',
'block_level' => true,
),


Alterar por
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' => '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="13"><img src="' . $settings['images_url'] . '/cita/solu.gif" width="13" height="22" /></td><td width="13"><img src="' . $settings['images_url'] . '/cita/solust.gif" width="13" height="22" /></td><td background="' . $settings['images_url'] . '/cita/ortaust.gif" width="4%"  align="left"><font style="font-size: 8pt">Citação:</font></td><td width="13"><img src="' . $settings['images_url'] . '/cita/sagust.gif" /></td><td width="13"><img src="' . $settings['images_url'] . '/cita/solust.gif" width="13" height="22" /></td><td background="' . $settings['images_url'] . '/cita/ortaust.gif" align="left"><font style="font-size: 8pt"><a href="' . $scripturl . '?{link}"><b>{author}</b></a> e que mandou.</font></td><td width="13"><img src="' . $settings['images_url'] . '/cita/sagust.gif" /></td><td background="' . $settings['images_url'] . '/cita/ustduz.gif" width="50%"></td><td width="13"><img src="' . $settings['images_url'] . '/cita/sagu.gif" width="13" height="22" /></td><tr><td width="13" background="' . $settings['images_url'] . '/cita/sol.gif"></td><td bgcolor="#FFFFFF" colspan="7">',

'after' => '</td><td width="13" background="' . $settings['images_url'] . '/cita/sag.gif"></td></tr><tr><td width="13"><img src="' . $settings['images_url'] . '/cita/sola.gif" width="13" height="22" /></td><td background="' . $settings['images_url'] . '/cita/altduz.gif" colspan="7"></td><td width="13"><img src="' . $settings['images_url'] . '/cita/saga.gif" width="13" height="22" /></td></tr></table>
',
'block_level' => true,
),


Imagem no anexo colocar na pasta das imagens do teu themes

Viva!...

E o atalho?!...
Também anda perdido!...
cool

candidosa2

Actualizado no primeiro Tópico