5
(I'm no expert
![](https://xoops.org/uploads/smil42e7a3d4c7b9f.gif)
but...) I don't think you can edit the block to only show the REAL posts.
I have a other solution for you but it will not remove the number of comments already made from the number of userposts. It will just not add a future comment to the number of userposts.
Here's my hack (I haven't tested it, so i don't know if it works...):
Open root/include/comment_post.php
On line 171, 211, 222 and 252 change $add_userpost = true;
to $add_userpost = false;
(Or just use search and replace to replace it everywhere
![](https://xoops.org/uploads/smil3dbd4d6422f04.gif)
)
This should work, if it doesn't just say it then i will search further.
Greets Dylian.
[edit]For deleting the number of comments from the total user posts a function could be created wich does something like:
//File: update_total_posts.php
//This doesn't realy work, it's just a example of how it would look like
include("mainfile.php"); //If you place it in the root
include(XOOPS_ROOT_PATH."/header.php");
$users = getallusers(); //Doesn't exist
$totalposts = gettotalposts(); //Doesn't exist
$totalcomments = gettotalcomments(); //Doesn't exist
foreach ($users as &$user) {
$totalposts = $totalposts - $totalcomments;
updatedb($user, $totalposts); //Doesn't exist}
}
include(XOOPS_ROOT_PATH."/footer.php");
?>
Just a example
![](https://xoops.org/uploads/smil42e7a3d4c7b9f.gif)
.[/edit]