Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/mybb-es.com/html/inc/plugins/avatarep.php on line 1102

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/mybb-es.com/html/inc/class_language.php on line 201
Shoutbox
Pelayo   21 Feb, 2010, 9:19 am
#1
Foro: ocio-hispano.es
VERSION: Ultima
Plugin: Shoutbox + emoticons

Quiero limitar el numero de emoticons que se muestran en el chat.
Cluster   21 Feb, 2010, 10:10 am
#2
abres el plugin y buscas la siguiente linea

Código PHP:
<?php 
//Smilies por Mauricio
global $db;
$query = $db->simple_select("smilies", "*", "", array("order_by" => 'disporder', "limit" => 20));
while (
$row = $db->fetch_array($query)){
$smilies .= "<img src='" . $row[image] . "' onClick='agregar(\"". $row[find] ."\");'> ";
}
eval(
"\$sf_shoutbox = \"".$templates->get("sf_shoutbox")."\";");
}

return
str_replace('<sf_shoutbox>', $sf_shoutbox, $page_data);
}

function
sb_load()
{
global
$mybb, $lang, $charset;

$lang->load("sf_shoutbox");

aqui cambias el limite $query = $db->simple_select("smilies", "*", "", array("order_by" => 'disporder', "limit" => 20));

:)
Pelayo   21 Feb, 2010, 10:13 am
#3
Ok, gracias, busdque en el plugin algo con emoticons xD no se me ocurrio smilies xD
  
Powered By MyBB, © 2002-2024 MyBB Group.
Made with by Curves UI.