vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Solve Problem Showing Array In Online Users (https://vborg.vbsupport.ru/showthread.php?t=261016)

VBIran 03-27-2011 04:36 PM

Solve Problem Showing Array In Online Users
 
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 :
Code:

<vb:if condition="$activeusers">
                                        <ol class="commalist" id="wgo_onlineusers_list">
                                                {vb:raw activeusers}
                                        </ol>
                                        </vb:if>

With this code :
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 ( 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

Quote:

Originally Posted by DuraMater (Post 2315229)
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.


All times are GMT. The time now is 07:33 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00999 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete