Good day to all. Total Newbie here and I have spent the last couple hours trying to help myself, but now am asking for some.
I am curious as to why the PM notification does not appear on the “Active Topics” page.
When I do a “view source” of this page, I see that the check for being logged in and PMs is being done via this bit of JavaScript...
(I've added some CRs to stop the code from streching the screen too much)
<script language="Javascript" type="text/javascript">
<!--
var user_cookie = getCookie('ubber2453006.1557');
if(('' == user_cookie) || (null == user_cookie)) {
// User is not logged in
document.writeln('You are not logged in.' , '
<a href="http://www.boatingabc.com/cgi-bin/testboard/ultimatebb.cgi?ubb=login">Login</a>
or
<a href="http://www.boatingabc.com/cgi-bin/testboard/ultimatebb.cgi?ubb=agree">register</a>')
} else {
// User is logged in
var user_array=user_cookie.split("&");
user_array[2] = unescape(user_array[2]);
document.writeln('Hello, ', user_array[2]);
document.writeln('[ <a title="Click here to log out."
href="http://www.boatingabc.com/cgi-bin/testboard/ultimatebb.cgi?ubb=logoff">log out</a> ]');
// PM check
var haspms = '<?php echo checkUserPMs(); ?>';
if(haspms > 0) {
document.writeln("<" + "b" + "r />");
document.writeln("<" + "a");
document.writeln(' href="http://www.boatingabc.com/cgi-bin/testboard/ultimatebb.cgi?ubb=my_profile"');
document.writeln(">" + "<" + "im" + "g src=" + '"http://www.boatingabc.com/ubb2/newpm.gif" border="0"
valign="middle" alt=" [New PM] " '
+ "/");
document.writeln(">You have " + haspms + " unread private messages.<" + "/" + "a>");
} // end if
} // end else
//-->
</script>
I have been poring though public_common.pl, ultimatebb.cgi, public_daily_topics.pl, ubb_lib.cgi
and a few others trying to see what’s different that PM notifications do not display on the Active Topics pages.
Funny thing is that if I add this little line just under “$TBT” on line 34 of public_daily_topics.pl,
not only does my added PM notification show up in the newly created table row, so does the normal one.
<tr><td>$show_logout</td></tr>
I am running v6.7 BR1.
What am I missing?
Thanks for any help!