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 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 ############### 



All times are GMT. The time now is 11:11 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.01651 seconds
  • Memory Usage 1,760KB
  • 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_php_printable
  • (6)bbcode_quote_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