mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 01:25:01 +02:00
Issue #213 Chatbox avatar issue corrected.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
// $Id$
|
// $Id$
|
||||||
function user_avatar_shortcode($parm='')
|
function user_avatar_shortcode($parm=null)
|
||||||
{
|
{
|
||||||
global $loop_uid;
|
global $loop_uid;
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ function user_avatar_shortcode($parm='')
|
|||||||
$image=$row['user_image'];
|
$image=$row['user_image'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif($parm)
|
elseif(!is_null($parm))
|
||||||
{
|
{
|
||||||
$image=$parm;
|
$image=$parm;
|
||||||
}
|
}
|
||||||
|
@@ -284,7 +284,7 @@ if(!$text = $e107cache->retrieve("nq_chatbox"))
|
|||||||
define("CB_MOD", check_class($pref['cb_mod']));
|
define("CB_MOD", check_class($pref['cb_mod']));
|
||||||
|
|
||||||
$qry = "
|
$qry = "
|
||||||
SELECT c.*, u.user_name FROM #chatbox AS c
|
SELECT c.*, u.user_name, u.user_image FROM #chatbox AS c
|
||||||
LEFT JOIN #user AS u ON SUBSTRING_INDEX(c.cb_nick,'.',1) = u.user_id
|
LEFT JOIN #user AS u ON SUBSTRING_INDEX(c.cb_nick,'.',1) = u.user_id
|
||||||
ORDER BY c.cb_datestamp DESC LIMIT 0, ".intval($chatbox_posts);
|
ORDER BY c.cb_datestamp DESC LIMIT 0, ".intval($chatbox_posts);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user