I am using this code for an AJAX Chat Integration.
https://vborg.vbsupport.ru/showthrea...=269509&page=2
Updated to the following recently:
vBulletin 4.2.3 Patch Level 2
PHP 5.6.27-0+deb8u1 (cli)
And now the user counter doesn't work properly on the nav bar.
FYI, I've updated the "global_bootstrap_init_start" slightly, to make it a little more specific (and to remove duplicate login entries):
Code:
$resCNT = mysql_query("SELECT COUNT(userID) FROM ajax_chat_online GROUP BY userID");
$num_chatting = $resCNT[0];
vB_Template::preRegister('navbar',array('num_chatting' => $num_chatting));
vB_Template::preRegister('FORUMHOME',array('num_chatting' => $num_chatting));
The query works perfectly as intended, however, it was not outputting any numerical counts, either with the current code (in OP) or the updated code. Does anyone have any suggestions?