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 today (with last 24 hours option). (https://vborg.vbsupport.ru/showthread.php?t=71533)

Paul M 11-17-2004 07:56 AM

Quote:

Originally Posted by Carnage Media
is there a way that this can be made to open in a new window? it would have the totals for the day and keep a history but you would click on it to show all the names?

I'm sure it could, but not by me I'm afraid, Sorry.

Viks 11-17-2004 11:22 PM

Action: Installed (thalforum.com)

Comments: Easy installation, easy to follow instructions, works as said.

Issues:
I'm running vB3.0.3 but i cud not get it to run using the following:-
$cutoff = vbmktime(0, 0, 0, vbdate('m', $now. false, false), vbdate('d', $now. false, false), vbdate('Y', $now. false, false));

INSTEAD i had to use the following:
$cutoff = $now - 86400 ; which shows users during last 24 hrs.

Suggestions:
1. If you can further modify this almost perfect mod to
- function with CMPS
- Admin's can modify to show "who was online in last XX hours"
- Instead of showing phrase "Total users that have visited today:" - it wud show who was online in last XX hrs (depending on the hack).

... specially - function with CMPS

Thanks paul.

Vik

Paul M 11-18-2004 03:28 PM

Sorry, I have no idea what CMPS is .....

Viks 11-18-2004 03:40 PM

Quote:

Originally Posted by Paul M
Sorry, I have no idea what CMPS is .....

sorry about that.

vBadvanced CMPS (Content Management & Portal System)
http://www.vbadvanced.com/products.php?

Its a very popular portal system for vB and many boards use it. If only u cud assist me getting this hack working on the homepage .. or the CMPS (INDEX) page... it will be GREAT!!!
..only if...

Paul M 11-18-2004 06:05 PM

Quote:

Originally Posted by Viks
vBadvanced CMPS (Content Management & Portal System)
http://www.vbadvanced.com/products.php?

Its a very popular portal system for vB and many boards use it. If only u cud assist me getting this hack working on the homepage .. or the CMPS (INDEX) page... it will be GREAT!!!

I can't see how I would do that without installing CMPS and testing it etc, which I'm not prepared to do, sorry.

I'm curious to know why the vbdate function fails on some installations.

Pepelux71 11-23-2004 01:55 AM

install

Pepelux71 11-23-2004 08:27 AM

When no one is in the chat room it appears like this:
"Currently -1 user(s) chatting.

How can i fix it?

Paul M 11-23-2004 10:07 AM

Quote:

Originally Posted by Pepelux71
When no one is in the chat room it appears like this:
"Currently -1 user(s) chatting.

How can i fix it?

Chat Room ? Sorry but I see no connection between this and a chat room - vB has no chat built into it.

JohnBee 11-24-2004 03:48 PM

Nie hack,thank you!

One request "if at all possible" could you make it so the hidden users
are hidden in the online pane as well?

reason is, I use a custom user account for my vB news intergration hack
and I would like to hide that user name from the listing.

ex: *site news

Any help would be greatly appreciated

Paul M 11-24-2004 08:02 PM

Quote:

Originally Posted by JohnBee
Nie hack,thank you!

One request "if at all possible" could you make it so the hidden users
are hidden in the online pane as well?

reason is, I use a custom user account for my vB news intergration hack
and I would like to hide that user name from the listing.

ex: *site news

Any help would be greatly appreciated

Sorry - but I'm not sure I follow - are you referring to the "Currently Active Users" display ? If so, this is a native part of vB and not related to this hack.

Viks 11-28-2004 12:43 AM

Quote:

Originally Posted by Paul M
I can't see how I would do that without installing CMPS and testing it etc, which I'm not prepared to do, sorry.

I'm curious to know why the vbdate function fails on some installations.

Can someone here assist me in getting this hack further moded to work in CMPS!!
come'on guys help a brother out...will appreciate it

Vik

misuse 11-28-2004 02:18 AM

Worked great for me so far. Thanks! Installed.

folkish 12-02-2004 04:45 PM

Great mod. Simple, easy to follow instructions. Installed mere minutes ago.
Thanks.

deb0 12-04-2004 03:42 PM

nice job. Installed

MotoUp 12-07-2004 06:50 PM

Excellent! Much Much easier than the other mods. Only took about 30 seconds to install. Thanks.

MovieMaster 12-15-2004 07:03 PM

Works like a champ on this v3.0.3!

H2k 12-16-2004 02:07 AM

Quote:

Originally Posted by Paul M
I can't see how I would do that without installing CMPS and testing it etc, which I'm not prepared to do, sorry.

I'm curious to know why the vbdate function fails on some installations.

i have install this hack .. but there is nathing dont show me any Online list any idea about this .. it's blank.

thankyou

Roxie 12-16-2004 02:48 AM

Hi. I installed it nicely; however, when different usergroups have different color names. It shows up on who's online, but only some of the colors show up on Who was online today. Any ideas?

Roxie 12-16-2004 03:14 AM

I have figured out that it goes by the primary usergroup and not the display group. Can this be edited some kind of way?

Paul M 12-16-2004 10:35 AM

Quote:

Originally Posted by H2k
i have install this hack .. but there is nathing dont show me any Online list any idea about this .. it's blank.

thankyou

Make sure you have installed it correctly, there isn't really that much in it to go wrong.

Tipi 12-16-2004 05:00 PM

Nice one! :D

pingme 12-16-2004 05:52 PM

Coooooool :D

Boots 12-17-2004 03:51 PM

excellent mod! love it!

Paul M 12-17-2004 08:43 PM

Quote:

Originally Posted by Roxie
I have figured out that it goes by the primary usergroup and not the display group. Can this be edited some kind of way?

I had a look at this for you and it doesn't look like it's a quick and easy change, so I'm afraid you will have to take it as is, Sorry.

TwinsX2Dad 12-18-2004 01:08 AM

This is simplicity perfected. Thank you for a nice addition.

Install clicked!

Paul M 12-18-2004 10:32 AM

Quote:

Originally Posted by biggkay
My what's going on box is located underneath the navbar. I would like to put this hack on the bottom where the what's going on box used to be orginally. Where in the forumhome template would I place the code?

In your template find ;

PHP Code:

<br />
<
br /> 

(just under the "<!-- /main -->" line)

replace those two line breaks with ;
PHP Code:

<br />
<!-- 
Todays active users -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tbody>
    <
tr>
        <
td class="thead" colspan="2">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_todayusers')"><img id="collapseimg_forumhome_todayusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_todayusers].gif" alt="" border="0" /></a>
            
Total users that have visited today$totaltoday
        
</td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_forumhome_todayusers" style="$vbcollapse[collapseobj_forumhome_todayusers]">
    <
tr>
        <
td class="alt2"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="Users online today" border="0" /></td>
        <
td class="alt1" width="100%"><div class="smallfont">$whotoday</div></td>
    </
tr>
</
tbody>
</
table>
<!-- 
Todays active users -->
<
br /> 

:)

biggkay 12-18-2004 06:33 PM

Thanks...Works nicely.
/me click install.

tormodg 12-19-2004 08:33 AM

Quote:

Originally Posted by biggkay
Thanks...Works nicely.
[high]* biggkay click install.[/high]

This is a cool hack. *installs*

noppid 12-22-2004 10:46 PM

Great Job! Thanks.

ForumRelated 12-23-2004 01:16 PM

great mod. simple and easy. just how mods should be. Good job Paul.

Sia Bani 12-24-2004 06:37 AM

Where's the one that updated all the time in that it didn't reset at 12:00 AM? So it was continuous?

I've installed this, but I thought there was a slight mod so you don't see it reset and blank out at 12:00AM.

Thanks.

Paul M 12-24-2004 09:30 AM

Quote:

Originally Posted by Sia Bani
Where's the one that updated all the time in that it didn't reset at 12:00 AM? So it was continuous?

I've installed this, but I thought there was a slight mod so you don't see it reset and blank out at 12:00AM.

Thanks.

Uncomment the second $cutoff line (that refers to not having vB 3.0.3).

Sia Bani 12-24-2004 09:45 AM

Quote:

Originally Posted by Paul M
Uncomment the second $cutoff line (that refers to not having vB 3.0.3).

Thanks for the reply. Anyway you could explain that a little more? I have no idea what you're talking about. I have 3.0.3 as well.

Paul M 12-24-2004 11:15 AM

Okay, there is a line in the 1.03 version that you can just uncomment, but if you installed a while ago that line won't be there;

Find the line that starts "$cutoff = " in the hack - and replace it with ;

PHP Code:

$cutoff $now 86400 

This will make it always display visitors from the last 24 hours. :)

LCPGUY 12-25-2004 09:31 PM

Wow! This works just great and so easy to install. I thank you Paul.

I have a question though, When I run the SQL ‘ALTER TABLE user ADD INDEX (lastactivity)”

I get the following error:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'john_mainDB.user' doesn't exist

Any suggestions would be appreciated.

Again, thanx for a terrific hack!!!

John

Paul M 12-25-2004 09:47 PM

LCPGUY, Where are you running the query ?

Sia Bani 12-25-2004 09:48 PM

Quote:

Originally Posted by Paul M
Okay, there is a line in the 1.03 version that you can just uncomment, but if you installed a while ago that line won't be there;

Find the line that starts "$cutoff = " in the hack - and replace it with ;

PHP Code:

$cutoff $now 86400 



This will make it always display visitors from the last 24 hours. :)


I just installed this a couple days ago and I have the $now-86400 in the hack already. I hadn't changed anything, and it's already there. However, at midnight, it still resets. Do you want me to change that to just $cutoff?

Paul M 12-25-2004 09:55 PM

Quote:

Originally Posted by Sia Bani
I just installed this a couple days ago and I have the $now-86400 in the hack already. I hadn't changed anything, and it's already there. However, at midnight, it still resets. Do you want me to change that to just $cutoff?

Um.... Can you PM me the first few lines of this hack that you actually have installed please.

LCPGUY 12-26-2004 05:58 PM

Quote:

Originally Posted by Paul M
LCPGUY, Where are you running the query ?

From the Admin CP, Import and Maintenance, Execute SQL Query

Paul M 12-26-2004 06:26 PM

I suggest you do it directly on the database via myphpadmin.


All times are GMT. The time now is 07:24 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.01905 seconds
  • Memory Usage 1,843KB
  • 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
  • (4)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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