Patches item #1038141, was opened at 2004-10-01 02:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=562404&aid=1038141&group_id=81260
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: rck (rck000)
Assigned to: Nobody/Anonymous (nobody)
Summary: Show post count
Initial Comment:
I've made a quick hack to show, how much messages
were written by a certain user in the forum. It might be
nice to have a global counter, including all modules,
though...
rck@ww01:~/public_html/mod/phpwsbb/class$ diff
Message.bak Message.php
94a95,110
> * counts, how many forum messages are posted
by $who
> *
> * @param string $who
> */
> function getPostCount($who) {
>
> $sql = "SELECT count(owner) FROM " .
$GLOBALS['core']->tbl_prefix .
> "mod_phpwsbb_messages WHERE
owner=\$who\";
>
> $count = $GLOBALS['core']->getcol($sql);
>
> return($count[0]);
> }
>
>
> /**
136a153,154
>
> $poster = $_SESSION["translate"]->it("[var1]
([var2] posts)", $poster, $this->getPostCount($poster));
rck@ww01:~/public_html/mod/phpwsbb/class$
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=562404&aid=1038141&group_id=81260
|