Copy PHP CODE
Adds the ability to copy text to the clipboard with a tooltip for [PHP] and [CODE] blocks
Project Details
Hi all,
It's been a very long time since I've been away from the Mybb community due to personal reasons. It feels good to be back . So to refresh my memories on everything, I decided to take a tutorial I posted way back then, the "SELECT ALL" for [PHP] and [CODE] blocks, and turn it into an actual plugin. With this plugin, we skip the select all step, and we go straight to copy the text with just a click of a button. Also, it's a plugin now, even easier and faster to use.
Since it's a straightforward plugin, there is no setting for it. Maybe in the future, I will add more settings for more customizations, but for now, please enjoy this simple plugin
Let's get started
Plugin Description:
***Installation***
***Upgrade from version 1 to version 2***
Video Demo:
[Video: https://www.youtube.com/watch?v=RWPbvB1lDc8]
Live Demo: https://mybb.vn/Thread-test-copy-php-code
Support Thread: https://community.mybb.com/thread-239516.html
It's been a very long time since I've been away from the Mybb community due to personal reasons. It feels good to be back . So to refresh my memories on everything, I decided to take a tutorial I posted way back then, the "SELECT ALL" for [PHP] and [CODE] blocks, and turn it into an actual plugin. With this plugin, we skip the select all step, and we go straight to copy the text with just a click of a button. Also, it's a plugin now, even easier and faster to use.
Since it's a straightforward plugin, there is no setting for it. Maybe in the future, I will add more settings for more customizations, but for now, please enjoy this simple plugin
Let's get started
Plugin Description:
- Adds the ability to copy text to the clipboard with a tooltip for [PHP] and [CODE] blocks.
***Installation***
- Upload everything in the "UPLOAD" folder to your root
- Activate plugin in Admin CP
- Change settings in Admin CP
***Upgrade from version 1 to version 2***
- Deactivate plugin
- You will need to delete this line from headerinclude (I'm just being lazy): <script type="text/javascript" src="{$mybb->asset_url}/jscripts/copyphpcode/copyphpcode.js"></script>
- Delete folder "jscripts/copyphpcode" and everything inside it
- Upload everything in the "UPLOAD" folder to your root
- Activate plugin in Admin CP
- Change settings in Admin CP
Video Demo:
[Video: https://www.youtube.com/watch?v=RWPbvB1lDc8]
Live Demo: https://mybb.vn/Thread-test-copy-php-code
Support Thread: https://community.mybb.com/thread-239516.html
Previews
- Author
- Joey_Pham423
- Collaborators
- None
- Version
- 2.0
- Submitted
- 2023-11-09, 11:46 AM
- Last Updated
- 2024-11-27, 09:50 AM
- Bug Tracking
- Open
- MyBB Versions
- 1.8.x