Simple Machines Community Forum

SMF Support => Español (Spanish) => Language Specific Support => Modificaciones (Mods) => Topic started by: Pegriloco on March 05, 2020, 12:28:52 PM

Title: Ayuda soporte Shoutbox
Post by: Pegriloco on March 05, 2020, 12:28:52 PM
Buenas con todos!
Algún sabio que me pueda ayudar con unas funciones en el mod que acabo de instalar "Shoutbox: https://custom.simplemachines.org/mods/?mod=1295 " en mi foro 2.0.17 lo que pasa es que tengo otro mod con el nombre  simplecolorizer con pequeños ajustes (modificaciones de este post): https://www.simplemachines.org/community/index.php?topic=549928.msg3903695#msg3903695 ) y en el Shoutbox deseo que esos mismos estilos "background" que he agregado aparezcan. he agregado en mi css por grupos:
.grupo_x{
  bla....
  bla....
}
y quisiera que se muestre en el los nombre de usuarios agregados dichos estilos, adjunto una pequeña muestra de como busco que quede:
(https://i.imgur.com/OSBX9x5.png)

Por ultimo, alguna idea de donde modificar el texto de la cabecera?
(https://i.imgur.com/7a6vlY5.png)

Gracias!  ;)
Title: Re: Ayuda soporte Shoutbox
Post by: -Rock Lee- on March 05, 2020, 06:48:09 PM
Deberia aplicar los cambios pero sino me equivoco trabaja de cierta manera independiente y tenes aplicarlo a los archivos de la modificacion en si. Respecto al titulo del chat se cambia en las configuraciones de la misma!


Saludos!
Title: Re: Ayuda soporte Shoutbox
Post by: Pegriloco on March 05, 2020, 11:11:19 PM
Sobre el Shoutbox la interrogante es como hacerlo? :/ Help me!

Acerca del texto ya quedo.
Title: Re: Ayuda soporte Shoutbox
Post by: Patrick D on March 06, 2020, 01:49:25 AM
Yo usaba el mod "Member Color Link" (que hacía lo mismo que el simplecolorizer) y era compatible con ese Shoutbox, por si te sirve de algo:
https://custom.simplemachines.org/mods/index.php?mod=111
Title: Re: Ayuda soporte Shoutbox
Post by: -Rock Lee- on March 06, 2020, 09:51:09 AM
Deberia tomar los cambios aunque como trabaja de forma independiente solo toma los colores, tengo hacer pruebas pero editando ./Sources/Subs-Shoutbox.php y forzar que cargue dicha modificacion funcionaria tienes que mirarlo al rededor de las lineas 45 a 55 (cuando este en una pc trato hacer pruebas).


Saludos!
Title: Re: Ayuda soporte Shoutbox
Post by: Pegriloco on March 06, 2020, 11:29:28 PM
Que tal Rock Lee, saludos!
Adjunto aquí unas las lineas de código del Subs-Shoutbox.php para un mayor etendimiento
function Shoutbox_Load($action = null)
{
global $shoutbox, $context;

// die
if (Shoutbox_Settings('disable') != '')
return $action;

if ($action !== null)
{
// Verify
$show = Shoutbox_Settings('showActions');

// Actions where it should be shown
$actions = explode(',', $show);

// Verify
if (!in_array(strtolower($action), $actions) && !in_array('everywhere', $actions))
return $action;
}

// Proceed!
$context['shoutbox'] = array();
$context['shoutbox']['can_moderate'] = !$context['user']['is_guest'] && allowedTo(array('shoutbox_edit', 'shoutbox_delete', 'shoutbox_prune', 'shoutbox_ban'));
$context['shoutbox']['banned'] = Shoutbox_isBanned();
$context['shoutbox']['can_view'] = !$context['shoutbox']['banned'] && allowedTo('shoutbox_view');

if (!$context['shoutbox']['can_view'] && !$context['shoutbox']['banned'])
{
unset($context['shoutbox']);
return $action;
}
$context['shoutbox']['can_post'] = !$context['user']['is_guest'] && $context['shoutbox']['can_view'] && allowedTo('shoutbox_post');

// load config, template and language :P
if (loadLanguage('Shoutbox') == false)
loadLanguage('Shoutbox', 'english');

loadTemplate('Shoutbox');
Shoutbox_Settings();

// print from main?
if (isset($shoutbox['out_main']) && in_array(strtolower($action), explode(',', $shoutbox['out_main'])))
$context['shoutbox']['out_main'] = 1;

// post features... if can't post, scape
if (!$context['shoutbox']['can_post'])
return $action;

$context['shoutbox']['disabled'] = array();
if (isset($shoutbox['disableTags']))
foreach (explode(',', $shoutbox['disableTags']) as $s)
$context['shoutbox']['disabled'][$s] = 1;

if (!isset($context['shoutbox']['disabled']['smileys']))
{
$context['shoutbox']['smileys'] = Shoutbox_LoadSmileys();

// no smileys, disable it
if (empty($context['shoutbox']['smileys']['postform']))
$context['shoutbox']['disabled']['smileys'] = 1;
}

return $action;
}