News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Number of posts of one user

Started by subzero_mb, August 31, 2010, 04:26:25 PM

Previous topic - Next topic

subzero_mb

Hi everybody,

Anyone could tell me how can I get the number of posts of one user? Using SSI I get user name, avatar, email... but It doesn't show the number of posts of that user. Is it possible to get it in an easy way with SSI or may I get it doing a self programing mysql query? Thank you!

Oranos

use $user_info['posts']

Example:

<?php
require_once('/path/to/SSI.php');
global 
$user_info;

echo 
$user_info['posts'] == 'You have no posts' 'You have at least one post';
?>

Advertisement: