I use this ajax script to count the new PM's but it seems not working anymore I have a custom navbar, was working fine one PunBB before I switched to phpBB3.
Any idea on how to fix this...
- Code:
$.ajax({
url: '/privmsg?folder=inbox',
success: function(ajax) {
count = $('img[src="http://i78.servimg.com/u/f78/14/73/12/96/bf_new10.png"]', ajax).length;
if (count < 1) {
$('a.mailbox').html('<span>Mailbox</span>');
}
else {
$('a.mailbox').html('<span>Mailbox ('+count+')</span>');
}
}
});
Any idea on how to fix this...
Last edited by Mati™ on November 12th 2014, 8:22 am; edited 1 time in total