vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Members who have visited the forum (Today or last 24 hours). (https://vborg.vbsupport.ru/showthread.php?t=82769)

Paul M 08-14-2006 09:23 PM

It uses the template "Display_Visitors".

The-Ensemble 08-14-2006 11:08 PM

Ok I've found them thanks.
Having a small problem though on The most members online in one day was 5, 08-06-2006. it displays the names underneath and there is other phrases next to it where do i go to remove the names? I can't find a phrase in phrase manager that goes by the name of $whotoday.

I want to edit these 2 phrases where would i find them to edit the wording?
$whodesc
$whotoday

Thanks

Paul M 08-14-2006 11:49 PM

$whodesc & $whotoday are not phrases, they are variables built by the php code.

Why don't you post exactly what you are trying to do, or change, because "The most members online in one day " is not even part of this mod, it's generated by another (add-on) to this.

The-Ensemble 08-15-2006 01:01 PM

OH!
Well i want to add these 2 lines of text in the whats going on box.

The most members online in one day was 5, 08-06-2006. | Number of active users today: 5

I'm a good way there I just need to stop the names showing up under the first one and to be able to change what the text says.

Chadi 08-17-2006 02:54 AM

How do I edit the timezone?

Members who have visited (2) shows this (plugin)

Code:

if ($show['wvt'])
{
        if ($vbulletin->options['wvt24'])
        {
                $cutoff = TIMENOW - 86400;
                $whodesc = $vbphrase['visited_today_24'];
        }
        else
        {
                $whodesc = $vbphrase['visited_today'];
                $tnow = date('YmdHis',TIMENOW - intval($vbulletin->options['hourdiff']));
                $cutoff = TIMENOW - (substr($tnow,8,2)*3600 + substr($tnow,10,2)*60 + substr($tnow,12,2));
        }

        $todaysusers = $vbulletin->db->query_read("
                SELECT userid, lastactivity, options, username, user.usergroupid, displaygroupid,
                groupa.opentag as opentaga, groupa.closetag as closetaga,
                groupb.opentag as opentagb, groupb.closetag as closetagb
                FROM " . TABLE_PREFIX . "user as user
                LEFT JOIN " . TABLE_PREFIX . "usergroup as groupa ON(user.usergroupid = groupa.usergroupid)
                LEFT JOIN " . TABLE_PREFIX . "usergroup as groupb ON(user.displaygroupid = groupb.usergroupid)
                WHERE lastactivity > " .$cutoff. " ORDER BY username
        ");
               
        $totaltoday = 0;
        unset ($whotoday);
        while ($today = $vbulletin->db->fetch_array($todaysusers))
        {
                $totaltoday += 1;
                $today['opentag'] = $today['opentaga'] ;
                $today['closetag'] = $today['closetaga'] ;
                if ($today['displaygroupid'])
                {
                        $today['opentag'] = $today['opentagb'] ;
                        $today['closetag'] = $today['closetagb'] ;
                }
                $today[visible] = 1 ;
                if ($today['options'] & $vbulletin->bf_misc_useroptions['invisible'])
                {
                        $today['visible'] = 0 ;
                        if (($vbulletin->userinfo['permissions']['genericpermissions']
                        & $vbulletin->bf_ugp_genericpermissions['canseehidden'])
                        OR $today['userid'] == $vbulletin->userinfo['userid'])
                        {
                                $today['visible'] = 2 ;
                        }
                }
                if ($today['visible'])
                {
                        $wrdate = vbdate($vbulletin->options['timeformat'], $today['lastactivity']);
                        $whotoday .= "<a href='member.php?u=$today[userid]' title='$wrdate' >";
                        if ($today['visible'] == 2)
                        {
                                $whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>*, ";
                        }
                        else
                        {
                                $whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>, ";
                        }
                }
        }
        if ($whotoday)
        {
                $whotoday = substr($whotoday, 0, strlen($whotoday)-2);
        }
        else
        {
                $whotoday = $vbphrase['no_visitors'];
        }
        $search_text = '<!-- end logged-in users -->';
        $vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,
        $search_text.fetch_template('Display_Visitors'),$vbulletin->templatecache['FORUMHOME']);
}

I want the timezone to be Central US (GMT -4:00 if I'm not mistaken). Actually, I would rather
have it "last 24 hrs" if possible without clearing out the list of visited members on the 24th hour

The-Ensemble 08-18-2006 08:59 PM

bump

mlucek 08-24-2006 06:56 PM

Installed on fresh VB 3.6.0 site and works right outta-the-box !! Took < 1 minute.

Thanks !!

jilly 08-24-2006 07:29 PM

see screenshot
Weird problem - at a certain point down the who's online and who visited today, the font gets big. I tried uninstalling and reinstalling both hacks, and it doesn't seem to fix it - any idea why my font goes big there, or where to look to check the code?

Paul M 08-24-2006 09:13 PM

There is no way to determine the problem from a screenshot, it would need access to the actual site. I would guess its a weird username or usergroup markup code. Since it happens in your logged in users list, it cannot be related to this mod as such.

The-Ensemble 08-24-2006 09:36 PM

So how would i remove the name list from the variable? Is there something in the phpcode i can edit or something?


All times are GMT. The time now is 04:36 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.02064 seconds
  • Memory Usage 1,749KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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