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)

Snake 01-27-2006 09:36 AM

Not unless you're running a wacked, horrible browser. ;)

vbreal 01-27-2006 02:49 PM

Quote:

Originally Posted by Paul M
Possibly you have a corrupt XML file ?


hmmm, since i have this problem with every hack i install. i know its not your xml file i need to replace if that is the case. do u know what xml file i may need to replace

Megareus Rex 01-27-2006 06:23 PM

Quote:

Originally Posted by Paul M
Hmm, okay.

In the Members who have visited (2) hook, comment out these two lines

Code:

        $today['opentag'] = $today['opentagb'] ;
        $today['closetag'] = $today['closetagb'] ;


Awesome, it worked!

Thanks :)

Paul M 01-27-2006 09:16 PM

Quote:

Originally Posted by Real Talk
hmmm, since i have this problem with every hack i install. i know its not your xml file i need to replace if that is the case. do u know what xml file i may need to replace

I was referring to the XML file for this hack. If all your installs fail then clearly you have a problem with your vb.

vbreal 01-27-2006 09:53 PM

yeah i was working with someone on vb.com they think its a server issue. i am with go daddy and i found out they aren't good to host vb boards. so that's probably my problem. thanks anyway

Megareus Rex 01-28-2006 01:08 AM

Another question. I have it set to rolling (so everyone who visited in the last 24 hours is shown), but not everyone is displayed. It only shows about 24 people in the box, but it says "total people who've visited in past 24 hours: 51". Is that supposed to happen, and if so, how do I have it displays EVERYONE?

Paul M 01-28-2006 04:05 AM

Are you allowed to see hidden people ?

Lisa-Marie 01-28-2006 08:46 AM

love this - thank's

Megareus Rex 01-28-2006 04:37 PM

Quote:

Originally Posted by Paul M
Are you allowed to see hidden people ?

Yeah, I am, and I do see the invisible ones.

Is there some kind of post threshold on it, where anyone below X posts doesn't show up? It seems to be the lower-post members who don't show up. Click the link in my sig to check for yourself (about 6 or so members are invisible, so you'll see 6 less, but since that would mean about 20 users on it, and the number it says is 50, thats still something).

EDIT: Figured out what caused it. Its only displaying members that either:
-Are set to invisible mode, or
-Are a member of a secondary usergroup.
People who ONLY have a primary group aren't displayed.

EDIT 2: Upon further testing, its that comment that's doing it. Commenting out those two lines causes it to ignore people without a secondary group, for some reason.

Paul M 01-28-2006 05:12 PM

Are you sure you commented out the right lines ?

PHP Code:

$totaltoday += 1;
$today['opentag'] = $today['opentaga'] ;
$today['closetag'] = $today['closetaga'] ;
if (
$today['displaygroupid']) 
{
//    $today['opentag'] = $today['opentagb'] ;
//    $today['closetag'] = $today['closetagb'] ;
}
$today[visible] = ;
if (
$today['options'] & $vbulletin->bf_misc_useroptions['invisible']) 

The correct lines are shown above.

Megareus Rex 01-28-2006 05:54 PM

Quote:

Originally Posted by Paul M
Are you sure you commented out the right lines ?

PHP Code:

$totaltoday += 1;
$today['opentag'] = $today['opentaga'] ;
$today['closetag'] = $today['closetaga'] ;
if (
$today['displaygroupid']) 
{
//    $today['opentag'] = $today['opentagb'] ;
//    $today['closetag'] = $today['closetagb'] ;
}
$today[visible] = ;
if (
$today['options'] & $vbulletin->bf_misc_useroptions['invisible']) 

The correct lines are shown above.

Lol, I had also commented out the braces :p

Thanks for your help. It works perfectly now :)

Tiberonmagnus 01-29-2006 01:39 AM

Will this work with 3.5.2? Sorry a bit new to vbulletin. Just making sure before I install this. Thanks!

Edit: Nevermind, saw this "It runs on any 3.5 forum.".. ok. Trying it out then. :)

Tulsa 01-29-2006 04:12 AM

Well it works fine on 3.5.3 I can attest to that and it worked fine on 3.5.0 prior to that. I didn't upgrade in between.

Maxman1544 01-29-2006 08:56 AM

I am a recent phpbb convert. Man, this kind of stuff took forever in phpbb. I uploaded the xml file and didn't even have to use FTP.

Thank you VBulletin. Thank you!

clasione 01-29-2006 12:23 PM

This new plugin feature for vb3 is incredible.......... That was a breeze

beatyourtruck 01-29-2006 01:44 PM

INSTALLED!

Thanks...works great, just as described.

Borgs8472 01-30-2006 09:25 PM

Just posting to say thanks a lot Paul, and I appreciate the usergroup options you added in your 3.5 version, it was just what I needed, saved me having to do it myself :)

clasione 01-31-2006 04:52 AM

Is there anyway to hack this to make it go over 24 hours so it never resets back to zero at midnight.... Maybe a way for it to log more days to make forum look busier than it really is? entice more signups?

atosoup 01-31-2006 06:00 AM

Im having a little trouble with this hack..

It seems to be randomly deciding who can see it.. For the first day It worked fine for me and I could see when logged in or as guest but some forum users could not see it at all.. Then last night for no reason I now cannot see it when logged in, But as a guest on my forums I can see it...

Any surgestions?

clasione 01-31-2006 06:56 AM

I noticed mine says there are people online today - then when I click their name it says "last active 3 day ago" :eek:

Paul M 01-31-2006 07:15 AM

Quote:

Originally Posted by atosoup
Im having a little trouble with this hack..

It seems to be randomly deciding who can see it.. For the first day It worked fine for me and I could see when logged in or as guest but some forum users could not see it at all.. Then last night for no reason I now cannot see it when logged in, But as a guest on my forums I can see it...

Any surgestions?

Hacks don't behave randomly :) - You have seen this ?

Quote:

9. The ability to allow only certain usergroups to view the list is an ACP option (vBulletin Options > Forums Home Page Options).
#

Quote:

Originally Posted by clasione
I noticed mine says there are people online today - then when I click their name it says "last active 3 day ago" :eek:

I think that's against the laws of physics.

Kimmi 01-31-2006 02:06 PM

This isnt showing up for me.. i have upload the XML
and the plug in is turned on.

in the file i down loaded there is only this in there is there anything else i need to do for this to work ?

## This product is for vBulletin 3.5 ##

A Simple addition to display all members who have visited the forum.



Step 1.

Extract the XML file and import it into vBulletin as a product (using the ACP product manager).



Step 2.

Change the settings in 'vBulletin Options > Forums Home Page Options' as required.




This may not be copied, reproduced or published elswhere without my permission. Paul Marsden - vbhacks@marsden-family.com

Posof 01-31-2006 02:15 PM

:knockedout:

Hi, PAUL M..

What do i need to change by this hack, that you not see the usersnames who viste today..
But only ( Total members that have visited the forum today; ???? )

Thanks

:banana:

Paul M 01-31-2006 04:32 PM

Quote:

Originally Posted by Kimmi
This isnt showing up for me.. i have upload the XML
and the plug in is turned on.

Step 2.

Change the settings in 'vBulletin Options > Forums Home Page Options' as required.

You did step 2 right ? If yes then perhaps you have an edited or customised forumhome template missing the line that this looks for to inject the display.

Quote:

Originally Posted by Posof
What do i need to change by this hack, that you not see the usersnames who viste today..
But only ( Total members that have visited the forum today; ???? )

See the answer in this post.

Kimmi 01-31-2006 04:41 PM

Yup i did step 2

what do i need to change in the forumhome?

Paul M 01-31-2006 04:54 PM

Quote:

Originally Posted by Kimmi
Yup i did step 2

what do i need to change in the forumhome?

https://vborg.vbsupport.ru/showpost....&postcount=505

Kimmi 01-31-2006 05:01 PM

Theres nothing in the user group for that.. and this is still in the forum homeforum
<!-- end logged-in users -->

Kimmi 01-31-2006 05:08 PM

Ok i got it to show up but now its blank..

clasione 01-31-2006 05:16 PM

How about this:

Is there anyway to hack this to make it go over 24 hours so it never resets back to zero at midnight.... Maybe a way for it to log more days to make forum look busier than it really is? entice more signups?

Kimmi 01-31-2006 05:20 PM

where do i put this code at


PHP Code:

// ############### Paul M - Who has visited today v3.31 ################# 
$vbulletin->templatecache['forumhome_loggedinuser'] = str_replace('href=''title=\"$wrdate\" href='$vbulletin->templatecache['forumhome_loggedinuser']); 
$tnow date('YmdHis',TIMENOW $vbulletin->options['hourdiff']); 
$cutoff TIMENOW - (substr($tnow,8,2)*3600 substr($tnow,10,2)*60 substr($tnow,12,2)); 
//$cutoff = TIMENOW - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## // 
$todaysusers $vbulletin->db->query_read(
SELECT userid, usergroupid, membergroupids, lastactivity, options, username FROM " 
TABLE_PREFIX "user 
WHERE lastactivity > 
$cutoff ORDER BY username 
"
); 
 
$totaltoday 0
while (
$loggedin $vbulletin->db->fetch_array($todaysusers)) 

$totaltoday++; 
 
if (
fetch_online_status($loggedin)) 

$loggedin['musername'] = fetch_musername($loggedin); 
$wrdate vbdate($vbulletin->options['timeformat'], $loggedin['lastactivity']); 
eval(
'$whotoday .= ", ' fetch_template('forumhome_loggedinuser') . '";'); 


unset(
$loggedin); 
$whotoday substr($whotoday2); 
$db->free_result($todayusers); 
// ############# End of Who has visited today ############### 


Paul M 01-31-2006 06:14 PM

Quote:

Originally Posted by Kimmi
where do i put this code at

You don't, just install as instructed.

Paul M 01-31-2006 06:16 PM

Quote:

Originally Posted by clasione
How about this:

Is there anyway to hack this to make it go over 24 hours so it never resets back to zero at midnight.... Maybe a way for it to log more days to make forum look busier than it really is? entice more signups?

This is a duplicate post.

You can do whatever you want if you edit the code/templates/phrases.

Annie^.^ 02-01-2006 09:43 AM

I get a star beside one of the user's name. What is that for?

NEVER MIND MY QUESTION! LOL :nervous:

bloggerMel 02-01-2006 10:20 PM

works perfect thanks! :D

ausnrl 02-02-2006 09:13 AM

I have a problem. I had your old version right and what happened is it wasnt showing so i unistalled it and reinstalled now its showing 2 at once

Benedict 02-02-2006 01:11 PM

Works beautifully. Thank you, my mods love it :D

Paul M 02-02-2006 04:10 PM

Quote:

Originally Posted by ausnrl
I have a problem. I had your old version right and what happened is it wasnt showing so i unistalled it and reinstalled now its showing 2 at once

Did you follow the upgrade procedures, esp the bits relating to Forumhome ?

Quote:

Upgrades:

To upgrade from version 4.10 onwards, you need to re-import the product with the overwrite option set to yes.

To upgrade from version 4.02 to version 4.10 onwards, you need to uninstall the product and remove the template code in FORUMHOME - then upload the new product.

To upgrade from version 3.xx to version 4.xx you need to delete the existing plugin and remove the template code in FORUMHOME - then upload the new product.


ausnrl 02-02-2006 07:34 PM

Cheers it worked

Paul M 02-03-2006 04:47 AM

FYI, I am testing an update to this that will add two more [often asked about] options.

* Suppress the list of names - instead a simple names listing disabled message will be shown.

* Always collapse the names list on first view - i.e. when ever you view the homepage the list of names will always be collapsed - a member will have to click on the expand icon to view the contents.

It will probably be ready sometime over the weekend. :)

lordofgun 02-04-2006 01:07 AM

Also, this only shows up for me if I have users currently logged in enabled. Would be nice to be able to turn that off and still show your hack.

Thanks!


All times are GMT. The time now is 01:09 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.02117 seconds
  • Memory Usage 1,852KB
  • 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
  • (3)bbcode_php_printable
  • (15)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
  • (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