######################################################## ## ## Hack Title: Number of Posts per day in profile ## Hack Version: 1.0.0 ## Author: Christoph "Toxic" Hellings (toxic@freenet.de) ## Date Created: 09-02-02 ## Thread Location: http://www.tforumhacks.com/tforum/viewtopic.php?TopicID=1086 ## Working Example: ## Description: The title says all ;) ## ## ## Installation Level: Easy ## Installation Time: 5 Minutes ## Files To Edit: 3 ## Edit Database: no ## Included Files: none ## ######################################################## ## ## Installation/Author Notes: ## ## I think it works but no warranty... ## ######################################################## # #-----[ ACTION: BACKUP ]------------------------------------------ # Every time you edit your files, you should always back them up first. Although all of these hacks have been tested on various systems, they may not work with your configuration or you may not like what it does. Backing up protects yourself and your users from downtime. # #-----[ ACTION: OPEN ]------------------------------------------- # functions.php # #-----[ ACTION: FIND ]------------------------------------------- # $UserInfo["RegDate"] = $row["RegDate"]; # #-----[ ACTION: ADD AFTER ]-------------------------------------- # $UserInfo["PostperDay"] = number_format($UserInfo["NumPost"] / ((time() - $UserInfo["RegDate"])/86400),4); # #-----[ ACTION: OPEN ]------------------------------------------- # forum_template.php # #-----[ ACTION: FIND ]------------------------------------------- #