vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Widget - Users Online (https://vborg.vbsupport.ru/showthread.php?t=230428)

Cyburbia 10-29-2011 09:40 PM

Quote:

Originally Posted by OlijO (Post 2259235)
I have the same problem. (vB4.1.7 fresh install).

Checking in to say the same thing happens with me in 4.1.7. Reload the page, and the widget disappears. Clear the CMS cache, reload, and it reappears. Reload the page, and it vanishes again.

misericorde 11-13-2011 04:35 PM

Hy Thank you

doctorsexy 11-16-2011 03:42 PM

Hi.. just updated to 4.1.8 and ive lost the names of the users ... there not being displayed ..any ideas ...thanks....

goxy63 11-16-2011 04:19 PM

Quote:

Originally Posted by doctorsexy (Post 2268563)
Hi.. just updated to 4.1.8 and ive lost the names of the users ... there not being displayed ..any ideas ...thanks....

Same here, online users not displayed

Lynne 11-16-2011 05:52 PM

You need to update the template.

Was:
HTML Code:

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

Change To:
HTML Code:

<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}{vb:raw loggedin.comma}</li>
                                                </vb:each>
                                        </ol>

And in the widget...
Was:
PHP Code:

    foreach ($userinfos AS $userid => $loggedin)
    {
        
$numberregistered++;
        if (
$userid != vB::$vbulletin->userinfo['userid'] AND !$loggedin['badlocation'])
        {
            if (!isset(
$inforum["$loggedin[inforum]"]))
            {
                
$inforum["$loggedin[inforum]"] = 0;
            }
            
$inforum["$loggedin[inforum]"]++;
        }
        
fetch_musername($loggedin);

        if (
fetch_online_status($loggedin))
        {
            
$numbervisible++;
            
$show['comma_leader'] = ($activeusers != '');
            
$templater vB_Template::create('forumhome_loggedinuser');
                
$templater->register('loggedin'$loggedin);
            
$activeusers .= $templater->render();
            
vB_Template::preRegister('vbcms_widget_execphp_activeusers', array('activeusers' => $activeusers)); 
        }
    } 

Change to:
PHP Code:

    $activeusers = array();
    foreach (
$userinfos AS $userid => $loggedin)
    {
        
$numberregistered++;
        if (
$userid != vB::$vbulletin->userinfo['userid'] AND !$loggedin['badlocation'])
        {
            if (!isset(
$inforum["$loggedin[inforum]"]))
            {
                
$inforum["$loggedin[inforum]"] = 0;
            }
            
$inforum["$loggedin[inforum]"]++;
        }

        
fetch_musername($loggedin);
        
$loggedin['comma'] = ',';

        if (
fetch_online_status($loggedin))
        {
            
$numbervisible++;
            
$activeusers[$numbervisible] = $loggedin;
        }
    }
    
    
// Last element
    
if ($numbervisible
    {
        
$activeusers[$numbervisible]['comma'] = '';
    } 

And find:
PHP Code:

    'recordtime'  => $recordtime

Change to:
PHP Code:

    'recordtime'  => $recordtime,
    
'activeusers'=> $activeusers

I think that should work. I've gotta run but will check this thread later and add it to the first post.

doctorsexy 11-16-2011 06:47 PM

Lynne..sorry not working..it just Disappears ..with the update applied to it..

goxy63 11-16-2011 06:51 PM

Same here, but as "Lynne" said ...will be updated in first post soon :)

Lynne 11-16-2011 08:40 PM

Did you guys make the changes that I posted above? I tried those on my test site and they work fine (don't forget to clear the cache after making the changes).

sgbmad 11-17-2011 11:49 AM

After make the changes for 4.1.8:

Code:

Parse error: syntax error, unexpected '}' in /home/*****/public_html/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 149
:(

Could you upload the complete widget code for 4.1.8? it would be easier :)

doctorsexy 11-17-2011 02:07 PM

(don't forget to clear the cache after making the changes)

Ever since the update to 4.1.8 the clear cms cache buttons not there....


All times are GMT. The time now is 06:31 PM.

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.02716 seconds
  • Memory Usage 1,770KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete