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

    #2
    This mod is now available!

    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.

      Comment


        #4
        Hello Glenn,

        I am allowing pictures, attachments, embedded videos... etc for guests.

        Could I just disallow code and this mod and let it only visible to logged in users? I mean regarding computers and codes i would like to push gusts to login or sign up, could it be possible?

        Thank you
        -----
        One more thing, many times now I am trying to post reply here on the forum and it is not posted, and I get this merssage:

        Click image for larger version

Name:	image.png
Views:	84
Size:	34.8 KB
ID:	29709
        I have to refresh page and restore and post reply again, is it intended by you? or is it an issue you need to have look at it?

        Regards

        Comment


          #5
          I have a mod that makes replies and comments unreadable for Guests to encourage signups. But this hides the entire replies and comments and not just a specific section in a post.

          One way to encourage user signups is to prevent guests from seeing non-image attachments and codes (https://vbmods.rocks/forum/vbulletin-5-modifications/vbulletin-5-template-only-modifications/238-prevent-guests-from-seeing-non-image-attachments-and-codes-using-code-php-and-html-bb-codes?p=246). Another way is to blur out

          Comment


            #6
            Originally posted by Blackhorse View Post
            One more thing, many times now I am trying to post reply here on the forum and it is not posted, and I get this merssage:
            So when you press the Post Reply button, it doesn't do anything? No error message is displayed?

            Comment


              #7
              Originally posted by glennrocksvb View Post
              I have a mod that makes replies and comments unreadable for Guests to encourage signups. But this hides the entire replies and comments and not just a specific section in a post.

              https://vbmods.rocks/forum/vbulletin...ourage-signups
              Yes, I see, but for my site, it is important to be read for all, so this mod won't help, Except for some sections that I wonder, If it is possible to hide from guests.

              Originally posted by glennrocksvb View Post
              So when you press the Post Reply button, it doesn't do anything? No error message is displayed?
              It shows me this message
              Click image for larger version

Name:	image.png
Views:	75
Size:	6.2 KB
ID:	29720
              with the timing that i posted the reply, with empty reply box with restore option. and no reply sent. I have to restore and reply again

              Comment


              • glennrocksvb
                glennrocksvb commented
                Editing a comment
                The "no new replies" appears at it attempts to load new replies (from other users) after you submit your post. I haven't seen that myself.

              #8
              Originally posted by Blackhorse View Post
              Except for some sections that I wonder, If it is possible to hide from guests.
              The mod hides it for all forum channels. If you want to do it for specific channels only, then I could create a custom mod for you.


              Comment


                #9
                Originally posted by glennrocksvb View Post
                The mod hides it for all forum channels. If you want to do it for specific channels only, then I could create a custom mod for you.

                Yes please, If it can be done that way allowing me to choose specific channels it will be very valuable and great mod for me.

                Thank you so much

                Comment


                  #10
                  Originally posted by glennrocksvb View Post
                  The mod hides it for all forum channels. If you want to do it for specific channels only, then I could create a custom mod for you.
                  Just a reminder please Glenn, if You could send me a quote on developing this mod. Thank You

                  Comment


                    #11
                    Originally posted by Blackhorse View Post
                    Just a reminder please Glenn, if You could send me a quote on developing this mod. Thank You
                    You can actually purchase the mod and then I'll update it to only blur the replies for only your desired forum channel(s).

                    Comment


                      #12
                      Originally posted by glennrocksvb View Post
                      You can actually purchase the mod and then I'll update it to only blur the replies for only your desired forum channel(s).
                      Thank You so much, purchased,

                      the modification can allow me to choose a specific channel, also, just if possible, could it be possible to show 1st line and then blur the rest?

                      Thanx

                      Comment


                        #13
                        Originally posted by Blackhorse View Post
                        Thank You so much, purchased,
                        Thanks but I was actually referring to the mod I mentioned in post #5. That's the mod that blurs out post content.

                        The mod (Copy code button) in this topic that you purchased does not do that.​

                        Comment


                          #14
                          Originally posted by glennrocksvb View Post
                          Thanks but I was actually referring to the mod I mentioned in post #5. That's the mod that blurs out post content.

                          The mod (Copy code button) in this topic that you purchased does not do that.​
                          Thank you Glenn, done for the other.

                          Update:
                          For copy poaste code, It works but once I translated the phrase, it is no longer working . update: It worked, after I reinstalled it and change float to right.

                          Comment


                          • glennrocksvb
                            glennrocksvb commented
                            Editing a comment
                            If you still need to change the Blur mod to apply to specific sections only, please PM me.

                          #15
                          Originally posted by glennrocksvb View Post
                          If you still need to change the Blur mod to apply to specific sections only, please PM me.


                          Yes plz

                          Comment

                          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 "|||"