![]() |
Copy Code to Clipboard for CODE/HTML/PHP BBCode
1 Attachment(s)
vBulletin 4 Creator: BCP_Hung
vBulletin 4 Mod Link: https://vbulletin.org/forum/showthre...ight=copy+code Javascript Fix: Raptor Working with vB 5.6.9 About: This modification adds a "Copy Code" box that will select all of the code within the box, as well as automatically copy to clipboard. The vB4 mod did not automatically copy the code, which I've fixed in this version. Installation Copy and paste the following javascript code at the bottom of your head_include template: AdminCP -> Styles -> Style Manager -> Edit Templates -> head_include Code:
<script type="text/javascript"> For CODE BBCode: Navigate to AdminCP -> Styles -> Style Manager -> Edit Templates -> bbcode_code Find: Code:
{vb:rawphrase code}: Code:
{vb:rawphrase code}: <input type="button" value="{vb:rawphrase select_code}" onclick="selectAll(this); return false;"> Code:
{vb:raw code} Code:
<code>{vb:raw code}</code> For HTML BBCode: Navigate to AdminCP -> Styles -> Style Manager -> Edit Templates -> bbcode_html Find: Code:
{vb:rawphrase html_code}: Code:
{vb:rawphrase html_code}: <input type="button" value="{vb:rawphrase select_code}" onclick="selectAll(this); return false;"> Code:
{vb:raw code} Code:
<code>{vb:raw code}</code> For PHP BBCode: Navigate to AdminCP -> Styles -> Style Manager -> Edit Templates -> bbcode_php Find: Code:
{vb:rawphrase php_code}: Code:
{vb:rawphrase php_code}: <input type="button" value="{vb:rawphrase select_code}" onclick="selectAll(this); return false;"> Code:
{vb:raw code} Code:
<code>{vb:raw code}</code> Then add the following to your css_additional.css: Code:
.bbcode_container .bbcode_description { You may need to make some adjustments. Enjoy! |
All times are GMT. The time now is 10:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|