Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-27-2011, 04:36 PM
VBIran VBIran is offline
 
Join Date: Nov 2010
Location: Iran
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 05-02-2011, 08:33 PM
d2gaming d2gaming is offline
 
Join Date: Nov 2010
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this fix. Worked like a charm
Reply With Quote
  #3  
Old 03-30-2012, 11:35 PM
DuraMater DuraMater is offline
 
Join Date: Nov 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 03-31-2012, 02:44 AM
Pandemikk Pandemikk is offline
 
Join Date: Jul 2009
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DuraMater View Post
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
Reply With Quote
  #5  
Old 04-02-2012, 02:16 PM
DuraMater DuraMater is offline
 
Join Date: Nov 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, then. Thanks anyway.
Reply With Quote
  #6  
Old 12-18-2013, 06:05 AM
Jerit2012 Jerit2012 is offline
 
Join Date: Apr 2012
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06926 seconds
  • Memory Usage 2,212KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete