PDA

View Full Version : Members who have posted today (with last 24 hours option).


Paul M
01-21-2005, 10:00 PM
This modification is no longer available or supported.

A very simple display of all members who have posted in the forum 'today' (i.e. since midnight). It is a requested variation on my members who have visited today (https://vborg.vbsupport.ru/showthread.php?t=71533) hack,

The main features of Version 2.xx are ;

1. It displays the list on Forum Home.

2. The list view is collapsable, so you just see the number of posters.

3. Invisible users are only displayed to those allowed to see them (with a "*")

4. Users who should display as coloured or bold etc will be displayed correctly. (as of v2.00 this is based on the display usergroup)

5. If you 'hover' over a username it will show the time they last posted.

6. The list is in member name order.

7. If you click on a members name it will list their posts.


If you prefer, then there is an option to make this hack display a rolling 24 hours - un-comment the relevant line in the code.

trackpads
01-22-2005, 12:56 PM
Excellent work! Installed!

BarHopper
01-22-2005, 01:30 PM
Have you got a Screenshot Paul?

Guy G
01-22-2005, 02:00 PM
Great job... ill install it for sure.
1 query right?

Mark.B
01-22-2005, 02:14 PM
Have you got a Screenshot Paul?
Slightly modified version on my site (see sig)...only change on mine is that only admins can view the alt tag with the time of the last post, this is to keep it consistent with a different hack I have.

Paul M
01-22-2005, 03:14 PM
Have you got a Screenshot Paul?Actually, no I haven't - I'll see if I can get one from my test system in the next few days.

Paul M
01-22-2005, 03:15 PM
Great job... ill install it for sure.
1 query right?Yes.

lasto
01-22-2005, 03:38 PM
looks good m8 cheers

Installed in less than a min - looks good :) (ive set it with conditionals so only admin can see it - no need for everyone to know who has or who has`nt posted :))

MickDoneDee
01-22-2005, 07:38 PM
Thanks, Paul. Works when installed to 3.03. I prefer to order the names by last post time in ascending order ie latest post last. What change do I need to make for that?

reteep
01-22-2005, 09:48 PM
Cool, installed it!

Paul M
01-22-2005, 11:11 PM
I prefer to order the names by last post time in ascending order ie latest post last. What change do I need to make for that?Change 'ORDER BY username' to 'ORDER BY lastpost'.

Floris
01-23-2005, 10:35 AM
Change 'ORDER BY username' to 'ORDER BY lastpost'.
Nice addition.
I might just install this on vbulletin-fans.com :)

MickDoneDee
01-23-2005, 10:44 AM
Thanks Paul, that worked.

Floris
01-23-2005, 10:46 AM
Installed! Took me 1 minute, probably less.

Anyway, for those who want a screenshot: here it is >

ericgtr
01-23-2005, 02:20 PM
Very cool, Paul. I have added this to my view in a new page (https://vborg.vbsupport.ru/showpost.php?p=592554&postcount=105) setup , you can see it here if you want http://www.guitars101.com/vb/online_today.php? I can post it up here but do you think I should post it in addons? It may be less confusing that way.

Paul M
01-23-2005, 06:16 PM
Nice idea.

I would prefer it to be posted here so all support questions are in one place, but the choice is yours. :)

ericgtr
01-27-2005, 03:15 AM
Sure, I will do that if there is enough interest. I have it all tweaked it so the user count is displayed for both who has visted today and who has posted today on my forum home. Then both are linked to the new page where it shows the usernames for each on the same page. Have a look at my site in my sig to check it out if you want.

Zacharicus
01-27-2005, 04:05 AM
Thanks mate. It's a killer :)

MustangLisa
01-28-2005, 06:21 PM
This is great, thanks!

Trisha
02-06-2005, 12:20 PM
installed.... very easy! thanks! :)

BoYagoob
02-08-2005, 06:12 AM
great! Installed!

havefun
02-09-2005, 10:21 PM
thx paul,

works fine :)

pauloo
02-12-2005, 07:25 PM
thanks ;)

But i'm problem with validation w3c xhtml1


Line 1677, column 87: cannot generate system identifier for general entity "u"

...ont"><a href='search.php?do=finduser&u=1' title='23h38' ><font color="red">Pa

Line 1677, column 87: general entity "u" not defined and no default entity



Line 1677, column 86: entity was defined here

...font"><a href='search.php?do=finduser&u=1' title='23h38' ><font color="red">P

Line 1677, column 176: reference not terminated by REFC delimiter

...a>, <a href='search.php?do=finduser&u=2' title='23h37' ><font color="red">Phi

Paul M
02-12-2005, 08:38 PM
I have no idea what any of that means, or what "validation w3c xhtml1" is.

MickDoneDee
02-13-2005, 04:11 AM
Paul, on Pauloo's website is this icon:http://www.astunet.net/images/misc/h_valid-xhtml10.gif. When the icon is clicked it checks Web documents in formats like HTML and XHTML for conformance to W3C Recommendations and other standards.

For more info: http://validator.w3.org/

I ran the check on my home page too and got "This page is not Valid XHTML 1.0 Transitional!"

It listed about 50 errors.

Paul M
02-13-2005, 09:57 AM
Oh, right. Well I have no intention of changing to validate in XHTML.

Paul M
02-15-2005, 03:48 PM
I have uploaded v1.45 today which has a very minor bugfix (inherited from it's sister hack) - this will not affect anyone who already has this working - but may cure the odd case, in vb versions prior to 3.0.3, where the vbdate function would not work.

Allan
02-17-2005, 08:47 PM
Nice hack, thanks Paul M :)

(Click Install)

Paul M
03-26-2005, 12:45 PM
v1.50 contains a slight change to the way the midnight cutoff is calculated to try and eliminate a rare problem in older versions of 3.0.x (where vbdate did not function correctly).

SmartGnome
04-04-2005, 08:52 AM
Thanks Paul, great hack and install is clicked.

I have made a small and simple modifiaction for use with phrases (multi language board :D


Step 4.

Create GLOBAL phrase
Title: users_posting
content: Total members that have posted today:

save phrase

In FORENHOME change:

Total members that have posted today: $posterstoday

in:

$vbphrase[users_posting] $posterstoday




My users like this mod so I'm happy :speechless:

Mokster
04-07-2005, 12:29 AM
can you tweak this hack to show the users that registered in the last 24 hrs?

Paul M
04-07-2005, 09:33 AM
You could - but this already exists elsewhere. :)

Mokster
04-07-2005, 08:46 PM
You could - but this already exists elsewhere. :)
i don't mean to show how many users registered in the last 24 hrs...but show the names of the users that registered in the last 24 hrs...

Paul M
04-07-2005, 08:49 PM
i don't mean to show how many users registered in the last 24 hrs...but show the names of the users that registered in the last 24 hrs...So did I - it already exists as a Hack, elsewhere on this forum. :)

Paul M
04-16-2005, 09:13 PM
This hack has been updated to version 2.00 - the main change is to display the user based on the their selected display usergroup (rather than always use the primary usergroup, as previous versions did). :)

Vevina
04-18-2005, 08:04 PM
sweet installed :)

conandoyle
06-09-2005, 02:49 AM
So cool, thanks Paul M :)

Nephalim
06-15-2005, 10:03 PM
Hi, how do you do the;run sql query?
Thanks

Paul M
06-15-2005, 11:01 PM
Use phpmyadmin, or run it in the ACP if you have the rights.

Nephalim
06-19-2005, 01:26 PM
Use phpmyadmin, or run it in the ACP if you have the rights.
hmmm..uh...I have the phpadmin. but how do you run the sql query? What I mean is what...you click on query...then type what you say type in a window there or something? I installed one of your hacks five days ago. But it does nothing, so I know I did not do something right. And one of the things was run the sql query. So that's why i'm asking what exactly do I have to do?

Thanks man!! :nervous:

Paul M
06-19-2005, 01:43 PM
I don't really have the time to write instructions on how to use phpmyadmin. Perhaps you can find someone to do it for you. FYI, the query is not vital to the hack, it will just speed up the hack if you have a larger forum.

Nephalim
06-19-2005, 04:30 PM
I don't really have the time to write instructions on how to use phpmyadmin. Perhaps you can find someone to do it for you. FYI, the query is not vital to the hack, it will just speed up the hack if you have a larger forum.Hmm...well I installed the hack as per directions, but it's been idle since I installed it. So, I know there's something I missed. And I'm not asking for people to write a paragraph of instructions, all I'm asking is.....(A) Do I just type in what you say like in this one you say
run sql query-
ALTER TABLE user ADD INDEX (lastactivity)
Do I just type that in a window or something?

mkdevo
06-20-2005, 10:22 AM
all I'm asking is.....(A) Do I just type in what you say like in this one you say
run sql query-
ALTER TABLE user ADD INDEX (lastactivity)
Do I just type that in a window or something?

yes, you can do that right from your vB AdminCP > Import & Maintenance > Execute SQL Query

Nephalim
06-20-2005, 02:50 PM
Why thank you!

Roms
07-21-2005, 03:53 PM
Excellent work! Installed!

henken
07-31-2005, 10:23 AM
Works like a charm. Thank you again Paul for this simple mod :D

stumparoooo
09-18-2005, 09:52 PM
This may be a stupid question, but how would you uninstall this?? Our forum home looks way too crowded and I'd like to remove it.

Paul M
09-18-2005, 09:57 PM
Just reverse the install instructions - i.e. remove the template code, and the code in index.php.

stumparoooo
09-18-2005, 10:23 PM
Just reverse the install instructions - i.e. remove the template code, and the code in index.php.
Aww, that was easy! Thank you, Paul!! :)

reteep
10-04-2005, 05:53 AM
Unfortunately it doesn't work on vB 3.5.


Fatal error: Call to a member function query() on a non-object in /vb/index.php on line 314


Will there be a port?

Paul M
10-04-2005, 11:48 AM
Unfortunately it doesn't work on vB 3.5.

Will there be a port?It was ported three months ago. :)

https://vborg.vbsupport.ru/showthread.php?t=82769

reteep
10-04-2005, 12:18 PM
It was ported three months ago. :)

https://vborg.vbsupport.ru/showthread.php?t=82769

Oh, sorry, didn't see that one. Thanks! :)

hotwheels
12-20-2005, 02:17 AM
great hack paul m, hotwheels click's Install

GlobalFusion
05-11-2006, 11:44 AM
*install*