PDA

View Full Version : Solve Problem Showing Array In Online Users


VBIran
03-27-2011, 04:36 PM
Hi ,
If you use the 4.1.2 version of vbulletin you may face to this problem .
You see array instead of online users username.
To solve it :
You can revert FORUMHOME template .
Go to admincp --> Style and templates --> Search templates --> type FORUMHOME and search it . Click on forumhome name and choose revert from sidebar .
You can replace this code in forumhome :
<vb:if condition="$activeusers">
<ol class="commalist" id="wgo_onlineusers_list">
{vb:raw activeusers}
</ol>
</vb:if>
With this code :
<vb:if condition="$activeusers">
<ol class="commalist" id="wgo_onlineusers_list">
<vb:each from="activeusers" value="loggedin">
<li> {vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}</li>
</vb:each>
</ol>
</vb:if>
If the problem exists yet You must disable Usergroup legend bar (https://vborg.vbsupport.ru/showthread.php?t=228607) ( and/or something like that ) Or Upgrade it to 4.1.2 Version .
Good Luck. :)

d2gaming
05-02-2011, 08:33 PM
Thank you for this fix. Worked like a charm

DuraMater
03-30-2012, 11:35 PM
This worked beautifully in all of our templates except for one. Instead of code starting with this:
<vb:if condition="$activeusers">
<ol class="commalist" id="wgo_onlineusers_list">
{vb:raw activeusers}
</ol>
</vb:if>

there is this:
<vb:if condition="$show['loggedinusers']">
<!-- logged-in users -->
<div id="wgo_onlineusers" class="wgo_subblock">
<img src="{vb:stylevar imgdir_misc}/whos_online.gif" class="whaticon" alt="{vb:rawphrase currently_active_users}" />
<div class="whatspace">
<p>{vb:rawphrase there_are_x_online, {vb:raw totalonline}} <span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</span></p>
<p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw recordusers}, {vb:raw recorddate}, {vb:raw recordtime}}</p>
<ol class="commalist" id="wgo_onlineusers_list">
{vb:raw activeusers}
</ol>
</div>
</div>
<!-- end logged-in users -->
</vb:if>

I have no idea how to change this, since my knowledge of css is pretty limited. Anything you can think of would be greatly appreciated!

P.S. - We are using 4.1.11 Patch Level 1

Pandemikk
03-31-2012, 02:44 AM
This worked beautifully in all of our templates except for one. Instead of code starting with this:
<vb:if condition="$activeusers">
<ol class="commalist" id="wgo_onlineusers_list">
{vb:raw activeusers}
</ol>
</vb:if>

there is this:
<vb:if condition="$show['loggedinusers']">
<!-- logged-in users -->
<div id="wgo_onlineusers" class="wgo_subblock">
<img src="{vb:stylevar imgdir_misc}/whos_online.gif" class="whaticon" alt="{vb:rawphrase currently_active_users}" />
<div class="whatspace">
<p>{vb:rawphrase there_are_x_online, {vb:raw totalonline}} <span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</span></p>
<p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw recordusers}, {vb:raw recorddate}, {vb:raw recordtime}}</p>
<ol class="commalist" id="wgo_onlineusers_list">
{vb:raw activeusers}
</ol>
</div>
</div>
<!-- end logged-in users -->
</vb:if>

I have no idea how to change this, since my knowledge of css is pretty limited. Anything you can think of would be greatly appreciated!

P.S. - We are using 4.1.11 Patch Level 1

This is a fix for 4.1.12 beta not 4.1.11

DuraMater
04-02-2012, 02:16 PM
Ok, then. Thanks anyway.

Jerit2012
12-18-2013, 06:05 AM
I have the same issue for :

a) Today's Birthdays user name showing as "Array"
b) Users who currently viewing on thread "Array"

We are using (vBulletin 4.1.12 Patch Level 3)

Kindly assist to fix this.