The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#32
|
|||
|
|||
Quote:
$personal= 2*$userinfo[posts]+$personal0[personalviews]; |
#33
|
|||
|
|||
Quote:
|
#34
|
|||
|
|||
Quote:
Code:
Anyone who views the thread increases the thread starters' views count. You can cancell this . just use: $personal= 2*$userinfo[posts]+$personal0 |
#35
|
|||
|
|||
I'm not saying it's a bad hack or anything.. just pointing out to those people who think this tracks a user's activity that it in fact doesn't with the default scripting.
I am not too familiar with the code variables on this board.. but I don't doubt it would just take a simple change to track the actual user's specific views. |
#36
|
||||
|
||||
Ztsky
I have added this hack also which counts total page views for the entire board. You can see at the top of board at http://forums.realwebhost.net When I add the numbers from members from your personalpage view hack your number is around 300 views higher. How would I correct the total count in your hack to reduce the count by 300? http://vbulletin.com/forum/showthrea...5&pagenumber=1 |
#37
|
|||
|
|||
Quote:
edit this code,you can figure your own,like: $personal= $userinfo[posts]+$personal0[personalviews]; or: $personal= 1/2*$userinfo[posts]+$personal0[personalviews]; |
#38
|
||||
|
||||
member.php Where in here nothing matchs what you posted showthread below.
Thanks Joey // Find out how much personal glamour does this user has $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 showthread.php $onlinestatus=""; } $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; |
#39
|
|||
|
|||
Hi! webhost
1??**********Edit member.php **********FIND Code:
eval("\$birthday = \"".gettemplat("getinfo_birthday")."\";"); } Code:
$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; 2??*************editTemplate getinfo *******FIND Code:
<tr> <td bgcolor="#DFDFDF"><normalfont><b>Total Posts:</b></normalfont></td> <td bgcolor="#DFDFDF"><normalfont>$userinfo[posts] ($postsperday posts per day)</normalfont></td> </tr> <tr> <td bgcolor="#F1F1F1"><normalfont><b>Last Post:</b></normalfont></td> <td bgcolor="#F1F1F1"><normalfont>$lastpostdate $lastposttime<br><a href="$lastposturl">$lastposttitle</a>$nolastpost</normalfont></td> </tr> Code:
<tr> <td bgcolor="#DFDFDF"><normalfont><b>Start Threads:</b></normalfont></td> <td bgcolor="#DFDFDF"><normalfont>$starts </normalfont></td> </tr> <tr> <td bgcolor="#F1F1F1"><normalfont><b>Personal Views:</b></normalfont></td> <td bgcolor="#F1F1F1"><normalfont><b>$personal </b></normalfont></td> </tr> **********FIND [CODE] //$post[message].=$post[signature]; [CODE] **********AFTER THIS,ADD Code:
// Find out how many threads this user has started $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; *********FIND: Code:
<smallfont>Registered: $post[joindate]<br> Location: $post[field2]<br> Posts: $post[posts]</smallfont></td> Code:
<smallfont>Registered: $post[joindate]<br> location: $post[field2]<br> posts: $post[posts]<br> personalviews:$personal </smallfont></td> that's all. |
#40
|
||||
|
||||
ztsky
ok I reinstalled per your instructions above this is what I have. Total page views of all members from your hack shows 9602. My total views shows 9280 a difference of 322. So based on your script above what do I change to subract your count by 322 views? Joey |
#41
|
||||
|
||||
ztsky
I don't know how hard it would be for you to do but the best thing would to be somehow take your hack count numbers of personalpageviews and total them up. That way you could use that number for total views of the entire site instead of using the other hack for total views. That way they would always match. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|