View Single Post
  #9  
Old 07-07-2001, 02:11 PM
ztsky
Guest
 
Posts: n/a
Default

Oh,thank you.
I have this feature a month ago.
look this:
http://tsing.com/vb/showthread.php?threadid=1742
But in my before post here ,I didn't re-release it.
To reach this feature,just do some edit in showthread.php as done in member.php,postbit as getinfo.
but you have done it.

in my forum I have release it at 05-21-2001 10:36 AM
http://tsing.com/vb/showthread.php?threadid=836
this is the post in Chinese:
?? 1 ?? [RELEASE personal glamour FOR VB2]
???ľ??Ǹ???????HACK???????ߣ?ztsky????
??ͳ??һ????Ա?Ƿ???????????̳????????̳?ܵ???ע? ̶ȣ?????????Ա??????????????룬???и????????? ?ԣ?????̳???ֿ??ԣ??о???ֵҲ???ԡ?
????VB??̳????????????????http://www.vbulletin.com/forum/show...?threadid=17116
??ʾ
????ת?أ???ע??????~??

1???޸? member.php
????eval("\$birthday = \"".gettemplat("getinfo_birthday")."\";");
}
????????
// 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;
// end Find threads
// 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
2???༭ Ĥ?? User Info Display Templates ?е?getinfo
??
<tr>
<td bgcolor="#efefef"><normalfont>????????:</normalfont></td>
<td bgcolor="#efefef"><normalfont>$userinfo[posts] (ÿ?? $postsperday ??)</normalfont></td>
</tr>
??????
<tr>
<td bgcolor="#f7f7f7"><normalfont>????????:</normalfont></td>
<td bgcolor="#f7f7f7"><normalfont>$starts</normalfont>
</td></tr>
<!-- User personal glamour-->
<tr>
<td bgcolor="#efefef"><normalfont>????????</normalfont></td>
<td bgcolor="#efefef"><normalfont>$personal</normalfont>
</td>
</tr>
<!-- End User personal glamour -->

3???޸? SHOWTHREAD.PHP
????//$post[message].=$post[signature];
?ں???????
// 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;
// end Find threads
// 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
4???޸????? POSTBIT
??
????: $post[field2]<br>
????????: $post[posts]</smallfont></td>
??Ϊ
????: $post[field2]<br>
????????: $post[posts]<br>
????????:$personal </smallfont></td>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01101 seconds
  • Memory Usage 1,773KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete