Forum:Auto adding a blurb to new blogs

Is there a way to automatically add something to every new blog post that is created (similar to how the forumheader is added to every new forum)? I ask because on my wiki the content takes absolute priority while discussion around it comes a clear second to that. We allow blogs and realise that the blogs can help attract editors and encourage some casual readers to have a go at editing, but do not want the blogs to be a distraction from the work on the wiki itself. So I'd like to set it up so that when a new blog is created, at the top of it will automatically be added a template which will give links to the various ongoing projects and easy tasks that need doing on the site. The aim being to encourage (or at least increase awareness of) work on the site itself. Does anyone know how I would go about doing this or if it is even possible? I have no problem going doing this manually, but it would be a lot easier. Anyway, thanks in advance 14:02, April 6, 2011 (UTC)


 * It's not as simple as the forumheader, unfortunately - but it is possible. You can use a short JS function that will automatically add the template you want to the top of the page.


 * Moncho: Mind writing that JS blurb for us since you are the go to guy for all the JS needs around here? Would be much appreciated--


 * I have a couple of things to get done right now (mainly school stuff), but I'll get it done ASAP. If you can find Rappy, he might be able to do it with jQuery.


 * That would be great. Thanks for your help. 18:37, April 6, 2011 (UTC)


 * Here it is:

 function BlogPreload { if(wgPageName == 'Special:CreateBlogPage') { if(document.getElementById('#cke_contents_wpTextbox1') != null) document.getElementById('cke_contents_wpTextbox1').getElementsByTagName('iframe')[0].contentDocument.getElementById('bodyContent').innerHTML = '  '; }		else { document.getElementById('wpTextbox1').innerHTML = '\n\n&lt;-- Please place your content under this line. -->';	} }

addOnloadHook(BlogPreload);
 * For the record, I hope I never have to work with the RTE again. The whole thing is just a burden - not only when I have to use it, but when other people use it and fail miserably at accomplishing a simple task.