MyBB.de Forum

Normale Version: Copy PHP CODE
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Eine neue Erweiterung wurde veröffentlicht: Copy PHP CODE

Zitat: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:
  • 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
Eine neue Version wurde veröffentlicht: Copy PHP CODE 2.0