Announcement

Collapse
No announcement yet.

Copy Code Button for [PHP], [HTML] and [CODE] BBCode Tags

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Paid Mod Copy Code Button for [PHP], [HTML] and [CODE] BBCode Tags

    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:
    1. 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.
    2. Clicking the Copy Code button copies the code into the clipboard.
    3. Can be easily enabled or disabled in the mod settings.
    4. Can configure which Usergroups can use this feature in the mod settings.
    5. No existing vB5 template edit required.
    6. Easy to install/upgrade.
    7. Allows language translation of the following phrases in Phrase Manager.
      1. vbmods_copycode: Copy Code
      2. vbmods_copycode_copied: Copied!
    Demo:
    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:
    HTML Code:
    <h1>Hello World</h1>
    PHP:
    PHP Code:
    echo "Hello World"

    This is how it looks like on the vB5 Default Style:
    Click image for larger version  Name:	copy-code-button.png Views:	0 Size:	376.1 KB ID:	23637​


    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)

    Buy Now Add to Cart View Cart

    Need help or not comfortable installing this mod? Purchase the installation service below:

    Product Installation Add-On: $20
    Purchase this product add-on to get professional installation of this mod from us.

    Add to Cart View Cart


    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! ​
    Last edited by glennrocksvb; 10-31-2023, 09:54 PM. Reason: Added vB6 compatibility
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    #2
    This mod is now available!
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      I have released v1.1 to fix the red dot issue. Existing buyers of this mod have been sent an email containing the download link.
      Helpful? Donate. Thanks!
      Buy me a coffeePayPal QR Code
      Fast VPS Host for vBulletin:
      A2 Hosting & IONOS

      Comment

      Users Viewing This Page

      Collapse

      There is 1 user viewing this forum topic.

      • Guest Guest

      Latest Posts

      Collapse

      Working...
      X
      Searching...Please wait.
      An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

      Please push the back button and reload the previous window.'
      An unexpected error was returned: 'Your submission could not be processed because the token has expired.

      Please push the back button and reload the previous window.'
      An internal error has occurred and the module cannot be displayed.
      There are no results that meet this criteria.
      Search Result for "|||"