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)

Chadi 08-01-2006 03:11 AM

Where do I change the time settings that it resets to the new day?

I am unable to find this for some strange reason.

Paul M 08-01-2006 08:30 AM

vBulletin Options > Who has visited today.

Chadi 08-01-2006 09:00 AM

I do not see that option

siwhite 08-02-2006 07:20 AM

Just what I was looking for - many thanks.

Paul M 08-02-2006 09:15 AM

Quote:

Originally Posted by chadi
I do not see that option

Then either you are looking in the wrong place, or it's not installed correctly, if it's working then the latter seems unlikely as I don't think it will work without the settings.

theChronic 08-08-2006 07:10 AM

hey
could anyone show me how to make it so that this mod is above the Currently Active Users box?

thanks
john

Brandr 08-14-2006 12:53 AM

Hello,

Thanks for this Mod. I have been tearing out my hair wondering how to turn on this function in my CP...lol

Best wishes,
_Brandr

The-Ensemble 08-14-2006 09:03 AM

where can i edit this to extract phrases to use on forum home. I looked in the plugin manager found the 2 phrases i want but they wont show up.

Paul M 08-14-2006 12:56 PM

This is already on the forumhome, I'm not sure what you are asking.

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

I want to use 2 other the phrases in the hack on forumhome and just not use the rest of it. I can't find a template for this hack on forumhome or anywhere else. where do i find it?

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?

Paul M 08-24-2006 10:15 PM

I don't understand the question.

The-Ensemble 08-25-2006 01:50 AM

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 variables next to it where do i go to remove the names? Do I edit the php code or something? If so which parts?

I also want to edit these 2 variables (only the wording) where would i find them to edit the wording?
$whodesc
$whotoday

Thanks

upsetter 08-26-2006 02:00 PM

installed and working fine on 3.5.4 :)

glorify 08-26-2006 07:25 PM

Quote:

Originally Posted by acidburn0520
First off, great hack Paul. I've always loved this, ever since it was released for 3.0.x. This is however, the first time I've ever had a problem with it. It was working fine a few days ago, when I installed it, but now, for whatever reason, it's not showing up on my forumhome. I've tried reinstalling the plugin and have checked my settings for it; everything should be working -- but it's not. I did recently install the Plugin Acc., Template Cache, and Template Comp. hacks... could they have had some kind of adverse effect on it?

Yep, the template cache hack affects it. You need to edit the template cache hack's settings to exclude FORUMHOME (in caps).

It only affects it if you have 'Cache Templates Seperatly' to yes.

The-Ensemble 08-26-2006 08:07 PM

bump

jilly 08-27-2006 08:07 PM

Quote:

Originally Posted by Paul M
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.

Thank you for the push in the right direction! It was a usergroup html markup tag that was missing the closing / in a font tag..

nerofix 08-28-2006 11:35 PM

Paul did you made a separate hack which counts the number of members and guests? like total visiting users of (x) hours?

Shazz 08-28-2006 11:37 PM

Quote:

Originally Posted by nerofix
Paul did you made a separate hack which counts the number of members and guests? like total visiting users of (x) hours?

Just set the cookies to when you want the cut off to be. like i have mine for 24 Hours (includes guests)

Paul M 08-28-2006 11:42 PM

Quote:

Originally Posted by nerofix
Paul did you made a separate hack which counts the number of members and guests? like total visiting users of (x) hours?

Nope, I have not made any such hack, are you perhaps thinking of the mod that tracks the highest members/guests over time ?

cjwinternet 08-30-2006 04:27 PM

Installed, works great.

Thank you.

cjwinternet 08-30-2006 04:29 PM

Hmm, the only option is to 'uninstall modification'. Don't remember even seeing this before?

Sorry, can't click install.

Morning Glory 08-30-2006 10:30 PM

I have the what's going on box at the top and bottom of the forumhome. I would like the 24 hour visitors to show only at the bottom. I tried everything I could think of and can't take it out of the top so I uninstalled it for now. Is there a way to only have it show on the bottom?

http://www.soberrecovery.com/forums

Thanks :)

Paul M 08-30-2006 10:42 PM

Quote:

Originally Posted by cjwinternet
Hmm, the only option is to 'uninstall modification'. Don't remember even seeing this before?

Sorry, can't click install.

That's because you've already done it.

Paul M 08-30-2006 10:48 PM

Quote:

Originally Posted by Morning Glory
I have the what's going on box at the top and bottom of the forumhome. I would like the 24 hour visitors to show only at the bottom. I tried everything I could think of and can't take it out of the top so I uninstalled it for now. Is there a way to only have it show on the bottom?

http://www.soberrecovery.com/forums

Thanks :)

In your modified forumhome template, remove the comment "<!-- end logged-in users -->" from the top WGO section.

Morning Glory 08-30-2006 11:34 PM

Thank you!!

That Worked.

manutdvn 09-11-2006 05:14 PM

Hello,

I created a new user group, but they can not see the people who visited today.

Does anybody tell me how to fix this?

Thanks in advance.

Paul M 09-11-2006 10:33 PM

Quote:

Originally Posted by manutdvn
Hello,

I created a new user group, but they can not see the people who visited today.

Does anybody tell me how to fix this?

Thanks in advance.

Well if all else fails, you could always RTFM. :cool:

Quote:

9. The ability to allow only certain usergroups to view the list is an ACP option (vBulletin Options > Who has visited today).

manutdvn 09-13-2006 07:30 AM

Quote:

Originally Posted by Paul M
Well if all else fails, you could always RTFM. :cool:

Thank you. It works great:)

teenhut 09-13-2006 12:46 PM

Can someone make it for 3.6?

Paul M 09-13-2006 09:43 PM

Um, someone did (me obviously) - try looking in the 3.6 addons, it's not hard to find. :)


All times are GMT. The time now is 04:22 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.03127 seconds
  • Memory Usage 1,829KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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