Name: Zero Post Notification

Version: 1.0

Last modified: 08/13/2009 @ 21:30 (EDT)

Description: This modification will display a message in the header of your forum until the member posts.
                   This message will disappear after the member makes their first post.
                   Only members who have 0 posts will see this message.

Compatibility: XMB v1.9.8 SP3

Author: Roxas (Source: Roxas-os.net)

Updated for 1.9.8 by : WormHole @ XMB Garage

License Note: This modification is released under the GPL License.

Note: Backup all affected files, templates & database's.

Templates:	header		
Files: header.php, English.lang.php
============================================================================================================================
=======
Step 1:
=======
=================
Edit File: header.php
=================
========================
Add To End Of File Above ?> 
========================

// Zero Post Notification Mod Begin
// Define Variable, so it won't error out.
$nopostermsg = '';
// Check if the user is logged in.
if (X_MEMBER) {
// Make sure they didn't post, and if they did, don't show this.
    if ($self['postnum'] < 1) {
        // Print the error message
        // You are free to edit below this line.
        $posttbl = ("<table border=\"1\" cellpadding=\"'.$THEME[tablespace].'\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"'.$THEME[bordercolor].'\" width=\"100%\" align=\"center\"><tr><td class=\"header\" colspan=\"9\" align=\"center\"><font class=\"mainmenu\"><div align=\"center\">");
        $postsuf = ("</div></font></td></tr></table>");
        $nopostermsg =("$posttbl <strong>$lang[welcometo] $bbname! $lang[msgnopost]</strong> $postsuf");
    }
}
// Zero Post Notification Mod End

============================================================================================================================
=======
Step 2:
=======================
Edit File: lang/English.lang.php
=======================
=======================
Add To End Of File Above ?> 
=======================

// Zero Post Notification Mod Begin
// These variables can be modified to what you want to say in the header message.
$lang['welcometo'] = "Welcome To";
$lang['msgnopost'] = "We look forward to seeing your posts!<br />This message will disappear when your first post has been made.";
// Zero Post Notification Mod End

============================================================================================================================
=======
Step 3:
=======
==========================
Go To Admin Panel --> Templates
==========================
=================
Edit Template: header
=================
==========
Find Code:
==========

<td align="right"><a href="$siteurl"><font class="navtd">$lang[backto] <img src="$THEME[imgdir]/home.gif" border="0" alt="$sitename" /></font></a></td>
</tr>
</table></td>
</tr>

===============
Add Code Below:
===============

$nopostermsg

============================================================================================================================
Enjoy!