The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
AutoCopy Code and PHP to clipboard Details »» | |||||||||||||||||||||||||
This hack will allow you to copy the text quoted in Code and PHP, to your clipboard, with a simple double-click.
This is extremly useful if your users utilise frequently the code environment. Once installed the hack, if an user double-click in the quoted area, an alert will popup let him(her) know that the code was copied to the clipboard. ESTIMATED INSTALL TIME: 1 minute TESTED IN VERSION: 2.2.5 [HIGH]NOTE:[/HIGH] As a thank you for using my hack, please click on the INSTALL button. You will receive updates in your email, whenever I add new features to it and it will let me evaluate better the quality of my hacks. [HIGH]Also post a reply with your comments. Your oppinion is important to me.[/HIGH] To use this hack with FireFly's Quote, Code and PHP hack, read the instructions mentioned here. To download the latest version of this hack, click below: Show Your Support
|
Comments |
#42
|
|||
|
|||
go to: Custom vB Codes in your admin cp
click on "add" next: vB Code tag --> quote vB Code replacement --> <table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td><smallfont><b>quote:</b></smallfont></td><td align="right"><smallfont>(double click the code to copy it)</td></tr><tr><td colspan="2" ondblclick='javascript:window.clipboardData.setDat a("Text", this.innerText); alert("Code copied to the clipboard. You can paste it now.");' style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: {codefontcolor}; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: {codebackground};">{param}</td></tr></table> vB Code example --> Quote:
vB Code explanation The quote tag is used to denote a quote from another post Use {option} ? No does it make sence to you? |
#43
|
|||
|
|||
thanx man that made perfect sence to me thanx very much
|
#44
|
|||
|
|||
no prob, is it all working now?
|
#45
|
|||
|
|||
yep all working so far -- but im good at screwing things up
*which im not proud about* thanx again man |
#46
|
|||
|
|||
[QUOTE]Originally posted by Allstar DC
In the Admin CP, goto Modify under Custom vB Codes and click [edit] next to the Quote:
when i put this in all i see is this for the quote --> < there is no text displayed? |
#47
|
||||
|
||||
Quote:
|
#48
|
|||
|
|||
i cant get either one to work.. dont know what i did wrong but can someone tell me step by step everything to this hack - starting from the admin/funtions.php?
i know im asking alot but maybe 1 day i will be able to return the favor thanx guys |
#49
|
|||
|
|||
boofo: you need to have it in your replacement variable anyway, to make the [php:] and [code:] functions work
the line i posted is working for me |
#50
|
|||
|
|||
aspire007:
in functions.php find: Code:
return "</normalfont><blockquote><pre><smallfont>PHP:</smallfont><hr>$buffer<hr></pre></blockquote><normalfont>"; } // ###################### Start stripbrsfromcode ####################### function stripbrsfromcode($foundcode) { $foundcode = str_replace("\\\"","\"",$foundcode); return "</normalfont><blockquote><pre><smallfont>code:</smallfont><hr>" . str_replace("<br>", "", str_replace("<br />", "", $foundcode) ) . "<hr></pre></blockquote><normalfont>"; Code:
return "</normalfont><table border=\"0\" align=\"center\" width=\"90%\" cellpadding=\"3\" cellspacing=\"1\"><tr><td><smallfont><b>PHP:</b></smallfont></td><td align=\"right\"><smallfont>(double click the code to copy it)</smallfont></td></tr><tr><td colspan=\"2\" style=\"BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: #EEEEFF; FONT-FAMILY: Courier, Courier New, sans-serif; BACKGROUND-COLOR: #1D6AA0;\"><pre>" . $buffer . "</pre></td></tr></table><normalfont>"; } // ###################### Start stripbrsfromcode ####################### function stripbrsfromcode($foundcode) { $foundcode = str_replace("\\\"","\"",$foundcode); return "</normalfont><table border=\"0\" align=\"center\" width=\"90%\" cellpadding=\"3\" cellspacing=\"1\"><tr><td><smallfont><b>code:</b></smallfont></td><td align=\"right\"><smallfont>(double click the code to copy it)</smallfont></td></tr><tr><td colspan=\"2\" style=\"BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: #EEEEFF; FONT-FAMILY: Courier, Courier New, sans-serif; BACKGROUND-COLOR: #1D6AA0;\"><pre>" . $foundcode . "</pre></td></tr></table><normalfont>"; Now run this SQL query through phpMyAdmin or Telnet/SSH Code:
ALTER TABLE bbcode CHANGE bbcodereplacement bbcodereplacement TEXT; Code:
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td><smallfont><b>quote:</b></smallfont></td><td align="right"><smallfont>(double click the code to copy it)</td></tr><tr><td colspan="2" ondblclick='javascript:window.clipboardData.setData("Text", this.innerText); alert("Code copied to the clipboard. You can paste it now.");' style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: #EEEEFF; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #1D6AA0;">{param}</td></tr></table> Replacements > Add and enter the following information: Code:
Code to find: {codebackground } ///without the spaces Code to insert: #D7D7D7 Code:
Code to find: {codefontcolor } ///without the spaces Code to insert: #000000 Code:
Code to find: <td colspan="2" Code to insert: <td colspan="2" ondblclick='javascript:window.clipboardData.setData("Text", this.innerText); alert("Code copied to the clipboard. You can paste it now.");' thats it! |
#51
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|