This is for servers that are integrated with a forum.
Difficulty: 0/10 easier than cooking popcorn
Server Base: Tested on CaliScape 3.0 will work with any though...
Assumed knowledge: Declaring, copying, pasting, leeching...
------------------------------------------------
Step 1: Declare this stuff. 
Code:
public int posts = 0;
You should know what that does.
Now, go into your loadgame() void. If you are integrated with a forum, there will be a section in the loadgame that loads variables from your MySQL database.
Search for:
Code:
absY = results.getInt("posy");
This is the section of the loadgame i was talking about. It may be different depending on how you coded your integration, but overall it should look the same.
Under it, add this:
Code:
posts = results.getInt("posts");
The part in quotes should be then name of the column in your MySQL database that stores the users post count.
What this will do, is define the int 'posts' as the users post on the website.
Step 2: Displaying their posts upon login
Search for your initialize() void. Under there, you should have your login display message. To show their posts, simply add this:
Code:
if (posts >= 1){
sendMessage("You have "+posts+" posts on yourwebsite.com. Thanks for being active!");
} else {
sendMessage("You havn't made a post yet on yourwebsite.com. Make your first today!");
}
Wrap up
This basic structure can be used for lots of other stuff to. You can restrict shops for high posters, allow use of certain items to posters, etc, etc.
If you have nothing good to say, id suggest not posting.
Credits: 100% Me
Enjoy!