The Arcive of vBulletin Modifications Site. |
|
'Paste' Button in Template Editor Details »»
|
|||||||||||||||||||||||||
I just remembered that there used to be a link here for PHP/Code boxes thats selected the contents and copied them to the clipboard and thought I want that for the template manager, then noticed it was already there
Anyway, this adds a paste button next to it so after you've edited the template with your favourite editor you can click paste and it replaces the whole template.Simple but useful IMO. (Note this only works in IE). In clientscript/vbulletin_templatemgr.js find: HTML Code:
// ############################################################################# // function to find text on a page HTML Code:
function PasteClipboard()
{
var tempval = eval('document.cpform.template')
tempval.focus();
tempval.select();
if (document.all)
{
therange = tempval.createTextRange();
therange.execCommand('Paste');
setTimeout("window.status=''",1800)
}
}
PHP Code:
PHP Code:
Varname: paste Text: Paste Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Excellent idea. Clicks install.
|
|
#3
|
||||
|
||||
|
nice, might save a click or two
|
|
#4
|
||||
|
||||
|
This should be in 3.1 by default for sure!
|
|
#5
|
||||
|
||||
|
paste button??
[high]* BarBeQue always uses ctrl+v [/high]
|
|
#6
|
||||
|
||||
|
So did I, but click, ctrl-a, ctrl-v takes alot more time then a signgle click
|
|
#7
|
||||
|
||||
|
Quote:
|
|
#8
|
||||
|
||||
|
Great idea - Installed
![]() Satan |
|
#9
|
|||
|
|||
|
Nice job
![]()
|
|
#10
|
||||
|
||||
|
thanks for this mod, Onkel_Tom clicks install
|
![]() |
|
|