Version: , by (Guest)
Developer Last Online: Jan 1970
Version: Unknown
Rating:
Released: 05-16-2001
Last Update: Never
Installs: 0
No support by the author.
This hack is get info on user statu.
when view user's profile a "personal glamour"will be display.
here is a demo:
It's a Chinese Version.
but in my zipfile ,It's a english Version.
file to be edit: member.php
template to be edit:getinfo
updated on 05-19-2001 04:32 AM
here's the hack:
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally posted by Me2Be Hi Ztsky! What exactly do you mean by "how active"? Number of times they view a thread? Number of times they visit your forums?
I think Number of times they view a thread and Number of times they visit your forums and Number they post a thread and Number of their posts all of "how active" ,
I sugguest vb should support a function to display "how active" a user in our forum.
Originally posted by mrlister using this you can easily restrict access to those who aren't active
Not quite so, because the result is cummulative. People can still have a high number after being inactive for months.
But I've added a little extra code to check for the last activity. If that activity was more then 21 days ago, the glamour thing is set to 0
Not quite so, because the result is cummulative. People can still have a high number after being inactive for months.
But I've added a little extra code to check for the last activity. If that activity was more then 21 days ago, the glamour thing is set to 0
Of cause "how active" is difficult to definite and it is not as a same thing everybody think about.
But this hack can give you a point.
Originally posted by Pingu
I've added a little extra code to check for the last activity. If that activity was more then 21 days ago, the glamour thing is set to 0
$personal0 = $DB_site->query_first("
SELECT SUM(views) AS personalviews FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
$personal= 2*$userinfo[posts]+$personal0[personalviews];
if ($personal0 == ""):
$personal0 = "0";
endif;
then edit template postbit:
Find:
Code:
Posts: $post[posts]</smallfont></td>
Replace that with:
Code:
Posts: $post[posts]<br>
Personal Views: $personal </smallfont></td>
I just thought I would point out that this hack has nothing to do with how active a member is on your forum.
ALL it does is shows how many times ANYONE has viewed a users thread. Not how many threads that user themselves have viewed.
If you want to see it in action to find out how it really works, open up a thread to view the posts.. look at the number of views for the thread creator.. then hit reload.. their number increases by one. Keep hitting reload and their number keeps rising.
So if you are using this hack thinking it shows how frequently your user is surfing around the board looking at people's posts.. you are mistaken.