Topic: Private message mod, new messages notifaction outside punbb
Hi
I have the private message mod installed and it works great.
However I would like to get the "new messages" link (which lights up when you have new messages) into the universal loginbox that my site has.
http://www.amateurillustrator.com
http://www.amateurillustrator.com/forums/
so people know if they have new messages even if they are not on the forums page.
this is my univeral login box code:
<?php
define('PUN_ROOT', './forums/');
include './forums/include/common.php';
global $pun_user;
if ($pun_user['is_guest']) {
echo '<a>Username & Password</a>';
echo "<form color=\"000000\" id=\"login\" method=\"post\" action=\"/forums/login.php?action=in\" onsubmit=\"return process_form(this)\">
<input type=\"hidden\" name=\"form_sent\" value=\"1\" />
<input type=\"hidden\" name=\"redirect_url\" value=\"http://www.amateurillustrator.com/join.php\" />
<input type=\"text\" name=\"req_username\" size=\"25\" maxlength=\"25\" />
<input type=\"password\" name=\"req_password\" size=\"16\" maxlength=\"16\" />
<input type=\"submit\" name=\"login\" value=\"Login\"/>
</form>";
echo '<a href="join.php">Want an account?</a>';
echo '<a> </a>';echo '<a> or </a>';echo '<a> </a>';
echo '<a href="/forums/login.php?action=forget">Forgot your password?</a>';
}
else {
echo "Logged in as: ".pun_htmlspecialchars($pun_user['username'])."
<br>Click <a href=\"/forums/login.php?action=out&id=".$pun_user['id']."&location_out=".$_SERVER['SCRIPT_NAME']."\">here</a> to log out.</div>";
}
?>
now I have tried adding this line to the else bit which is the same line added to header.php to make the new messages link appear inside punbb:
require(PUN_ROOT.'include/pms/header_new_messages.php');
but I get the following errorr:
Parse error: syntax error, unexpected T_REQUIRE in /home/amateuri/public_html/testing.php on line 95
Any help would be great, thanks a lot
cheers
Nick
see my hack to integrate punbb with wordpress comment system.
Illustration Community