Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

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.

Comments
  #32  
Old 07-12-2001, 07:52 AM
ztsky
Guest
 
Posts: n/a
Default

Quote:
Originally posted by ShadowTech
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.
I don't think you had read this hack.
$personal= 2*$userinfo[posts]+$personal0[personalviews];
Reply With Quote
  #33  
Old 07-12-2001, 07:54 AM
ShadowTech ShadowTech is offline
 
Join Date: Feb 2002
Location: Ohio, USA
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by ztsky


I don't think you had read this hack.
$personal= 2*$userinfo[posts]+$personal0[personalviews];
this is the same exact code I edited in my .php files to install this hack and that is how it works on my board. Anyone who views the thread increases the thread starters' views count.
Reply With Quote
  #34  
Old 07-12-2001, 08:10 AM
ztsky
Guest
 
Posts: n/a
Default

Quote:
Originally posted by ShadowTech


this is the same exact code I edited in my .php files to install this hack and that is how it works on my board. Anyone who views the thread increases the thread starters' views count.
Code:
Anyone who views the thread increases the thread starters' views count.
Do you think it not good to count as this?
You can cancell this .
just use:
$personal= 2*$userinfo[posts]+$personal0
Reply With Quote
  #35  
Old 07-12-2001, 08:29 AM
ShadowTech ShadowTech is offline
 
Join Date: Feb 2002
Location: Ohio, USA
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #36  
Old 07-13-2001, 04:28 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #37  
Old 07-13-2001, 05:43 PM
ztsky
Guest
 
Posts: n/a
Default

Quote:
Originally posted by webhost
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
$personal= 3*$userinfo[posts]+2$personal0[personalviews];
edit this code,you can figure your own,like:
$personal= $userinfo[posts]+$personal0[personalviews];
or:
$personal= 1/2*$userinfo[posts]+$personal0[personalviews];
Reply With Quote
  #38  
Old 07-13-2001, 07:59 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
Reply With Quote
  #39  
Old 07-17-2001, 03:57 PM
ztsky
Guest
 
Posts: n/a
Default

Hi! webhost
1??**********Edit member.php
**********FIND
Code:
eval("\$birthday = \"".gettemplat("getinfo_birthday")."\";"); 
}
**********AFTER THIS,ADD
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>
********AFTER THIS CODE,ADD:
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>
3??**********Edit SHOWTHREAD.PHP
**********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;
4??**********Edit template POSTBIT
*********FIND:
Code:
 <smallfont>Registered: $post[joindate]<br> 
Location: $post[field2]<br> 
Posts: $post[posts]</smallfont></td>
*******replace it with :
Code:
 <smallfont>Registered: $post[joindate]<br> 
location: $post[field2]<br> 
posts: $post[posts]<br> 
personalviews:$personal </smallfont></td>

that's all.
Reply With Quote
  #40  
Old 07-17-2001, 04:37 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #41  
Old 07-17-2001, 04:45 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:11 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
  • Page Generation 0.05328 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete