Version: , by Mutt
Developer Last Online: Mar 2013
Version: Unknown
Rating:
Released: 06-27-2001
Last Update: Never
Installs: 1
No support by the author.
Ok don't give me a bunch of crap if I'm posting this wrong, this is my first little contribution to VB.
In the short time I've been playing around with VB, I've already become annoyed at editing templates. I added two little javascript buttons to the page to make things easier.
Copy - click the button to highlight all the text in the textarea and copy it to the clipboard in one step
Preview - opens a new window displaying the html from the message area. It doesn't replace the variables with any value, but does gives you an idea of layout and color changes
for VB v2.0.1
updated attachment below
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
It's a great code man, try again. Follow it eactly, I'm a newbot I got it. I installed like 5 hacks today on my new forum. Some for me to make my life easier and some for the users. Re-up your orig files and start from scratch. It's really worth it.
ok, i will, but give me a breakdown of what you did, because i may be adding code, that has nothing to do with actually being there, since the documentation runs altogether like it does..
something like this..
Find blah.
PHP Code:
report error 7
add
PHP Code:
blah
find
PHP Code:
blah blah
add
PHP Code:
blah blah blah
If you could do that for me Lubi, it would be most appreciated.
than of course, you have all of this...and that is the problem, as well as no closing tag for the java script...
PHP Code:
{ var inf = document.name.template.value; win = window.open(\", \", 'popup', 'toolbar = no, status = no, scrollbars=yes'); win.document.write(\"\" + inf + \"\"); } function HighlightAll() { var tempval=eval(\"document.name.template\") tempval.focus() tempval.select() if (document.all){ therange=tempval.createTextRange() therange.execCommand(\"Copy\") window.status=\"Contents highlighted and copied to clipboard!\" setTimeout(\"window.status=''\",1800) } } var NS4 = (document.layers); // Which browser? var IE4 = (document.all); var win = window; // window to search. var n = 0; function findInPage(str) { var txt, i, found; if (str == '') return false; if (NS4) { if (!win.find(str)) while(win.find(str, false, true)) n++; else n++; if (n == 0) alert('Not found.'); } if (IE4) { txt = win.document.body.createTextRange(); for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) { txt.moveStart('character', 1); txt.moveEnd('textedit'); } if (found) { txt.moveStart('character', -1); txt.findText(str); txt.select(); txt.scrollIntoView(); n++; } else { if (n > 0) { n = 0; findInPage(str); } else alert('Not found.'); } } return false; } ";