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.
This hack is really good. I really like it. You can use it as a activity level. It's very simple to customize. How you want to customize it. Look here
2*$userinfo[posts]+$personal0[personalviews]
In this equation it will take the total number of posts the user has times it by 2 and add the total of views the user has. So if that user has 10 posts and has viewed 50 threads his activity level would be at 70. You can make it so it divides by 100 to use smaller numbers. Only thing missing is replies which would be nice. Ok I came up with this little add-on. There are two types of installations.
$startcount = $DB_site->query_first("SELECT COUNT(title) AS starts FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
$starts = $startcount[starts];
if ($starts == ""):
$starts = "0";
endif;
***Below that add
Code:
$personal0 = $DB_site->query_first("
SELECT SUM(views) AS personalviews FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
$activity01= $userinfo[posts]-$starts;
$activity02= $starts;
$activity03= $personal0[personalviews];
$personal= 3*$activity02+2*$activity01+$activity03;
if ($personal2 == ""):
$personal2 = "0";
endif;
People who are doing a clean installation do this:[code]
***open member.php and find
$startcount = $DB_site->query_first("SELECT COUNT(title) AS starts FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
$starts = $startcount[starts];
if ($starts == ""):
$starts = "0";
endif;
$personal0 = $DB_site->query_first("
SELECT SUM(views) AS personalviews FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'");
$activity01= $userinfo[posts]-$starts;
$activity02= $starts;
$activity03= $personal0[personalviews];
$personal= 3*$activity02+2*$activity01+$activity03;
if ($personal2 == ""):
$personal2 = "0";
endif;
That's it. There's probably a cleaner way of doing the $activity01,02,03 thing but i'm still learning. Please not that i wish no credit for this. i have simply just put the two together and all thanks should go to ztsky and tubedogg. For the rest of the instructions download the file.
Even if you've disabled views they are still counted as far as I know.
What I would like to know is if this hack is backwards compatible. I'm not sure there is anything recording views per person at the moment so I'm not sure how my current members can get an activity index based on what they have done in the past rather than what they do after the hack is installed.