Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/mybb-es.com/html/inc/functions.php on line 7422

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/mybb-es.com/html/inc/functions.php on line 7422

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/mybb-es.com/html/inc/functions.php on line 7422

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/mybb-es.com/html/inc/functions.php on line 7422

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/mybb-es.com/html/inc/functions.php on line 7422

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/mybb-es.com/html/inc/functions.php on line 7422

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/mybb-es.com/html/inc/functions.php on line 7422

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/mybb-es.com/html/inc/functions.php on line 7422

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/mybb-es.com/html/inc/functions.php on line 7422

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/mybb-es.com/html/inc/functions.php on line 7422
Es posible estilizar las citas de esta manera?. - MyBB-Es.com
Contrata servicios web en ougcNetwork.
Nono, es un avatar de la galería de avatars que trae MyBB por defecto, pero que no lo detecta al citar a otro usuario.

Y aparte de eso, no detecta los avatares por urls.
Intenta con esta funcion:
	function format_avatar($user)
	{
		static $users = array();

		if(!isset($users[$user['uid']]))
		{
			$avatar_width_height = '';
			$dimensions = explode('|', ($user['avatar']) ? $user['avatardimensions'] : '44|44');
			if(is_array($dimensions) && $dimensions[0] && $dimensions[1])
			{
				$avatar_width_height = " width='{$dimensions[0]}' height='{$dimensions[1]}'";

				list($max_width, $max_height) = explode('x', '50x50');
				if($dimensions[0] > $max_width || $dimensions[1] > $max_height)
				{
					require_once MYBB_ROOT.'inc/functions_image.php';

					$scaled_dimensions = scale_image($dimensions[0], $dimensions[1], $max_width, $max_height);
					$avatar_width_height = " width='{$scaled_dimensions['width']}' height='{$scaled_dimensions['height']}'";
				}
			}

			$users[$user['uid']] = array(
				'avatar' => (!empty($user['avatar']) ? htmlspecialchars_uni($user['avatar']) : $GLOBALS['settings']['bburl'].'/images/default_avatar.gif'),
				'dimensions' => $avatar_width_height
			);
		}

		return $users[$user['uid']];
	}
Envía un DM o MP si te interesa patrocinar alguna actualización o complemento a alguno de mis plugins.

[Image: signature.png]


Discord omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Funciona menos que la anterior.. no muestra ni el primer avatar.
Debe ser la funcion lo que esta mal... intentemos algo, cambia esto:
"<img src=\"{$avatar['avatar']}\" {$avatar['dimensions']} /> ".build_profile_link(htmlspecialchars_uni($post['username']), $post['uid']).' '.$lang->wrote.$linkback; 

Por esto:
"---{$post['uid']}---".build_profile_link(htmlspecialchars_uni($post['username']), $post['uid']).' '.$lang->wrote.$linkback; 

Esto deberia causar que el nombre en las citas salgan:
---UID---Nickname

Escribe muchas citas de varias formas y tamaños, por lo menos sabremos si es la funcion que obtiene el avatar la variable que guarda la informacion necesaria.
Envía un DM o MP si te interesa patrocinar alguna actualización o complemento a alguno de mis plugins.

[Image: signature.png]


Discord omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Aquí lo toma bien & reconoce los UID correctamente.. Que puede ser?

[Image: 4299-919201242117pm.png]
El archivo adjunto debería funcionar perfectamente.
Envía un DM o MP si te interesa patrocinar alguna actualización o complemento a alguno de mis plugins.

[Image: signature.png]


Discord omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Perfecto Omar G., ya solo queda adaptar el css para que se vea mas bonito.

Se ve igual a como lo haz puesto tú Smile
Asi se ve en el estilo default, pensaba darle estilo, pero como no lo usare, esto les toca a ustedes Tongue

quizás si lo use al final... xD
- - - Actualizado - - -
He actualizado el archivo, ahora pueden darle estilo a sus avatares con la class "quote_avatar", para los muy novatos.
Envía un DM o MP si te interesa patrocinar alguna actualización o complemento a alguno de mis plugins.

[Image: signature.png]


Discord omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Se deformaría un poco con alguna clase extra XD Al menos que quede bien acomodada, ya que las citas no son solo para mostrar los avatares..

PD: MP
Si te refieres a los MP que me enviaste, estoy viendo como solucionarlo, luego te respondo >.<
Envía un DM o MP si te interesa patrocinar alguna actualización o complemento a alguno de mis plugins.

[Image: signature.png]


Discord omar.gonzalez (Omar G.#6117); Telegram at @omarugc;