![]() |
This hack is get info on user statu.
when view user's profile a "personal glamour"will be display. here is a demo: http://my.yalaso.net/~ztsky/ztskydemo.jpg 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: |
Who said what to who?
What does this hack do? |
Next time make the image a JPG first.. that BMP takes hours to load !!!
or put it on a better server |
Quote:
The image is too big.I have it edited. |
what does this hack do?
|
Quote:
2*$userinfo[posts]+$personal0[personalviews]; To keep it real simple, this hack produces a number of how active that user is on your forum, that's the personal glamour and I like it :) |
great hack except you made a typo in your document.
change: Code:
<td><normalfont>$starts</normalfont> Code:
<td><normalfont>$personal</normalfont> |
Quote:
I confuseed another hack with it,but it has been updated.:p |
I think personal views would be a better name.
Personal glamour could mean many things :eek: |
I'm still confused - what exactly does this hack do? :)
|
Number of threads you have viewed (I think)
|
Quote:
YOU CAN EDIT THIS CODE AS YOU LIKE. It's produces a number of how active that user is on your forum.:( :) |
what is how active?
I installed it and it didnt post anything next to glamour in profile rc3 |
Quote:
|
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. People who use tubedoggs User started X threads hack do this: ***Go to member.php and find Code:
$startcount = $DB_site->query_first("SELECT COUNT(title) AS starts FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'"); Code:
$personal0 = $DB_site->query_first(" ***open member.php and find Code:
eval("\$birthday = \"".gettemplate("getinfo_birthday")."\";"); Code:
$startcount = $DB_site->query_first("SELECT COUNT(title) AS starts FROM thread WHERE postuserid='$userinfo[userid]' AND open!='10'"); |
Ah so it's like an Activity Index number sort of thing, which gives credits for posts and views.
Thats quite nice I think. Not sure if I could be bothered to install it though!! |
Ah, I see - thanks! Since I disabled views I'm not sure I could use this!
|
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. |
Quote:
|
ah well if you've actually removed it from the code as opposed to just not displayi it then it wouldn't !
|
Quote:
|
Quote:
I sugguest vb should support a function to display "how active" a user in our forum. |
Well, this was what I needed.
I'm going to let my members advertise on my forums, but I only want to allow active members to do so. This hack could save me a lot of trouble :) |
using this you can easily restrict access to those who aren't active
|
Quote:
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 |
Quote:
But this hack can give you a point.:o |
Great hack!
Easy to setup and I love it :) -Tom |
Quote:
|
modified it a bit:
this will add Personal Views to the posts image: https://vborg.vbsupport.ru/ in showthread.php Find: PHP Code:
PHP Code:
Find: Code:
Posts: $post[posts]</smallfont></td> Code:
Posts: $post[posts]<br> have fun |
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. |
Quote:
$personal= 2*$userinfo[posts]+$personal0[personalviews]; |
Quote:
|
Quote:
Code:
Anyone who views the thread increases the thread starters' views count. You can cancell this . just use: $personal= 2*$userinfo[posts]+$personal0 |
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. |
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 |
Quote:
edit this code,you can figure your own,like: $personal= $userinfo[posts]+$personal0[personalviews]; or: $personal= 1/2*$userinfo[posts]+$personal0[personalviews]; |
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; |
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'"); 2??*************editTemplate getinfo *******FIND Code:
<tr> Code:
<tr> **********FIND [CODE] //$post[message].=$post[signature]; [CODE] **********AFTER THIS,ADD Code:
// Find out how many threads this user has started *********FIND: Code:
<smallfont>Registered: $post[joindate]<br> Code:
<smallfont>Registered: $post[joindate]<br> that's all. |
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 |
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. |
All times are GMT. The time now is 09:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|