I just did this on my main page, here's what you have to do.
First, install
Allen\'s CP style hack .
Then, go into cp_style_php.cgi.
FIND:
my @needs_escape = qw( " ); # you can add any character after "
ADD AFTER:
$pleh = $show_logout;
$teh = qq~echo checkUserPMs()~;
$eh = qq!blahblah!;
$pleh =~ s/<?php echo checkUserPMs(); ?>/$eh/eisg;
then
FIND:
$var .= sprintf qq($TableBottom = "%s";n), esc($TBB);
ADD AFTER:
$var .= sprintf qq($thisShowLogout = "%s";n), esc($pleh);
In your (PHP) webpage add the following...
From ultimatebb.php, the following functions:
getuserid ()
checkUserPMs ()
find_environmental ()
After those in your PHP code, add
$monkey = checkUserPMs();
$thisShowLogout = preg_replace("/blahblah/", $monkey, $thisShowLogout);
where you wish to add the
"Hello, Ian
You have 1 unread private messages."
put this into your code...
$thisShowLogout
This only works with PHP pages, but it does work
