For computer coding and support kind of forums, it is very helpful and convenient for users to be able to quickly copy the code posted using [PHP], [HTML] and [CODE] BBCode tags with a single click instead of manually highlighting the code and copying it. If you have such forum, this mod is a must!
This plugin is very useful for forums that share code examples and tutorials with their users. It helps users to copy the code easily and accurately without any formatting issues. It also enhances the user experience and makes your forum more convenient and functional.
Features:
This mod is installed on this site. You can see the Copy Code button for each code below if you are logged in and have at least one post.
Code:
HTML:
PHP:
This is how it looks like on the vB5 Default Style:
CSS Fix (Added on Feb 16, 2022)
There's an issue on Search Modules where if the first line in a post contains a code, the Copy Code button is misplaced. To fix this issue, it's better to just hide the Copy Code button in Search moudle because the code may not be complete since the module only includes an excerpt of the post. To hide the button in Search modules, add this CSS code in css_addtional template:
Compatibility:
Version History:
v1.1
v1.0
Price:
$25 (branding-free)
Enjoy!
This plugin is very useful for forums that share code examples and tutorials with their users. It helps users to copy the code easily and accurately without any formatting issues. It also enhances the user experience and makes your forum more convenient and functional.
Features:
- The Copy Code button appears for all code posted using [code], [html] and [php] BBCode tags on topic pages, PMs and activity stream on Homepage and Profile page.
- Clicking the Copy Code button copies the code into the clipboard.
- Can be easily enabled or disabled in the mod settings.
- Can configure which Usergroups can use this feature in the mod settings.
- No existing vB5 template edit required.
- Easy to install/upgrade.
- Allows language translation of the following phrases in Phrase Manager.
- vbmods_copycode: Copy Code
- vbmods_copycode_copied: Copied!
This mod is installed on this site. You can see the Copy Code button for each code below if you are logged in and have at least one post.
Code:
Code:
alert('Hello World');
HTML Code:
<h1>Hello World</h1>
PHP Code:
echo "Hello World";
This is how it looks like on the vB5 Default Style:
CSS Fix (Added on Feb 16, 2022)
There's an issue on Search Modules where if the first line in a post contains a code, the Copy Code button is misplaced. To fix this issue, it's better to just hide the Copy Code button in Search moudle because the code may not be complete since the module only includes an excerpt of the post. To hide the button in Search modules, add this CSS code in css_addtional template:
Code:
/* Hide Copy Code Button in Search Modules - START */ .search-widget .bbcode_container .vbtrCopyCodeBtn { display: none; } /* Hide Copy Code Button in Search Modules - END */
Compatibility:
- Compatible with vB5 and 6 (self-hosted and vBCloud)
Version History:
v1.1
- Removed red dot in the copied code from clipboard. This was invisible when pasted in some code editors but visible in others and it caused invalid CSS code.
v1.0
- Initial version
Price:
$25 (branding-free)
Don't have a PayPal account yet or want to use a new account to purchase this mod? Sign up with PayPal now and get $5 reward!
Want to pay using Credit/Debit Card? Contact us and we will send you an invoice where you can use your own card.
Enjoy!
Comment