Fixed "Comment Approval" not showing up

in
Subscribe to Fixed "Comment Approval" not showing up 1 post, 1 voice

Shayne Scovill Scriptwright

If you have your comments set to be approved before being posted, I'm sure you've noticed that your Comment Approval update disappears just after your page loads. I believe I have found a way around this. Given my code isn't the most organized, but it does solve the problem. Go into your source code and find the "//Update Notifications" section and paste it to this:

// Update Notifications
if ($('updates') && (a=/

]*>(.+?\&nbsp\;<\/div><\/div><\/div>)/.exec(html)) && (a[1].indexOf('New') > -1) || (a[1].indexOf('Comment') > -1) )
{
$('updates').innerHTML = a[1];
$('updates').style.display='block';
//var a = a[1].match(/New [A-z\s]+!/g).join().replace(/(New |[^A-Z,])/g,'') + '!'
//document.title = 'MySpace - ' + a;
document.title = 'MySpace - New Update!';
} else { $('updates').style.display='none'; document.title = 'MySpace Home'; }

I commented out some old code rather than just deleting it. I might use it later in the future to make the code more organized. But you're welcome to delete it. Hope it helps! :-)

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel