Post Reply including templates

Find the latest vBulletin information about Post Reply including templates relating to vBModder at The Staff Lounge. This was a vBulletin news entry posted 2 months, 1 week ago. Post Reply including templates.




Post Reply including templates

I want to be able to include a template contents into the reply on the click of a button. I have managed to create the code to insert var but I don’t know how to edit this to include template instead.
Moving javascript to external file hasn’t worked :(
All help appreciated :D
Thanks,

PS. This is the code I am currently using… (in head of the newreply template)

HTML:
———

function insertText() {
var textstring = “test string”;
document.getElementById (”{$editorid}_iframe”).contentWindow.document.body.innerHTML += textstring;
document.getElementById(’vB_Editor_001_textarea’).value += textstring;
}

———
and the link is…

HTML:
———
test
———

Tags: No tags for this post. Print This Post

No Responses to “Post Reply including templates”  

  1. No Comments

Leave a Reply



About This Entry

About This Entry
  • You’re currently reading “Post Reply including templates,” an entry on The Staff Lounge

  • Published at 6.26.08 / 12pm

Powered By

Living Off

Forums Powered By vBulletin Blog Powered By Wordpress Skin Designed By Binary Bonsai