i wanted to add another feature
all credits go to ztsky i dont want any of em..
ok here we go:
---------------------
this will add Personal Views to the posts
image:
in showthread.php
Find:
PHP Code:
$onlinestatus="";
}
Below that add:
PHP Code:
$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>
that should do the trick
have fun
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
My have a problem with this script. This is what I have noticed.
It seems if a registered used post's or replies to thread the personalviews show;s a total for them. But if a registered user does post a thread or reply to any his views or not showing up in the members profile area. They all have zero's. I watched 3 members tonight view alot of threads but there personalview count stayed at zero. Then one of them replied to a message and then every time he view a thread it totaled in his personalviews like it should.
Any answers why this would act like this? Kinda have the same problem with the last online hack. The other 10 to 12 hacks I have installed all work fine.
All members that have 0 posts show 0 personalviews even though they have viewed alot of pages. I have one member that has not been on the board since April. When that member was on the board it was only for 1 day. They made 4 or 5 posts. That member shows to have 172 personal views. Why is this not showing total page views correctly. Can someone fix this please?
Originally posted by webhost All members that have 0 posts show 0 personalviews even though they have viewed alot of pages. I have one member that has not been on the board since April. When that member was on the board it was only for 1 day. They made 4 or 5 posts. That member shows to have 172 personal views. Why is this not showing total page views correctly. Can someone fix this please?
Ok I tried to move script from showthread to functions.php
I placed here. hack still works in member profile but does not
showup in showthread views. Iplaced here in functions but still not working any ideas how to fix this?
$post[avatar]="";
$post[profile]="";
$post[email]="";
$post[useremail]="";
$post[icqicon]="";
$post[aimicon]="";
$post[yahooicon]="";
$post[homepage]="";
$post[findposts]="";
$post[signature]="";
$onlinestatus="";
$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;
// end Findhow much personal glamour
}
// do ip addresses