Announcement

Collapse
No announcement yet.

How to change external links to internal links to do something before redirecting to the destination

Collapse
This is a sticky topic.
X
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Thanks for this modification. It works fine for me.

    Edit: one question.
    How can i made this for the "insert link" button?
    This mod is for the links that the member type in text

    a.e.: www.google.de

    But the button ... (sorry i have to made a double post)

    Comment


      #17
      Originally posted by Menderley View Post
      But the button ... (sorry i have to made a double post)
      ... it doesnt work Do you have a modification for this too? Or did i smth wrong?

      Comment


        #18
        This hack doesn't work in Link content type. It only works in external links entered inside the editor itself.
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        Comment


          #19
          Can i deactivate link Content?

          Comment


            #20
            You can disable "Can create link" permission in Usergroup Manager in AdminCP.
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            Comment


              #21
              Thank you so much.

              Comment


                #22
                is it working with Version 5.3.4 ?
                Regards

                Comment


                  #23
                  Hello how are you !
                  What do I have to change so that it does not redirect automatically? I want it to redirect with a click, not automatically.

                  Comment


                    #24
                    Remove the <script> </script> tag and the Javascript code inside it.
                    Helpful? Donate. Thanks!
                    Buy me a coffeePayPal QR Code
                    Fast VPS Host for vBulletin:
                    A2 Hosting & IONOS

                    Comment


                      #25
                      Originally posted by moded View Post
                      is it working with Version 5.3.4 ?
                      Regards
                      is it working with Version 5.3.4 ?

                      Comment


                        #26
                        I have not personally tried on 5.3.4 but theoretically it should work. Did you try it?
                        Helpful? Donate. Thanks!
                        Buy me a coffeePayPal QR Code
                        Fast VPS Host for vBulletin:
                        A2 Hosting & IONOS

                        Comment


                          #27
                          This is a great add-on. You should consider making this an option in your vB AutoLinker Mod.

                          Comment


                            #28
                            is there any way to apply to the signatures?

                            Comment


                              #29
                              Originally posted by germaninfl View Post
                              is there any way to apply to the signatures?
                              The suggested PHP changes for this mod should apply to any [url] BBCodes in the posts including those in signatures. Can you double check the signature is using [url][/url] BBCode tags?

                              If it is and still doesn't work, then try doing the exact same changes in /core/vb/library/bbcode.php.
                              Helpful? Donate. Thanks!
                              Buy me a coffeePayPal QR Code
                              Fast VPS Host for vBulletin:
                              A2 Hosting & IONOS

                              Comment


                              • germaninfl
                                germaninfl commented
                                Editing a comment
                                I checked and the signatures do use the [url] BBCodes but it doesn't do anything for me in signatures. It works in posts though.
                                I tried editing /core/vb/library/bbcode.php the same way and I'm getting this error:
                                Parse error: syntax error, unexpected '$rightlink' (T_VARIABLE) in /home/kasinofo/public_html/core/vb/library/bbcode.php on line 2488

                              • glennrocksvb
                                glennrocksvb commented
                                Editing a comment
                                You made a syntax error in the code. Can you post the before and after code?

                              #30
                              I got the error figured out. For some reason I was suddenly missing some backslashes when copy&pasting the code
                              So the error is gone.

                              However, the redirect still does not apply to links in signatures


                              Here is a sample signature code from one of my users:
                              PHP Code:
                              [URL="http://goo.gl/xxxxxjQkx"][SIZE=4][COLOR=#008000][B]Blah blag[/B][/COLOR][/SIZE][/URL] 
                              Should the redirect work with that?

                              Comment


                              • glennrocksvb
                                glennrocksvb commented
                                Editing a comment
                                Hmm, I don't know why it doesn't work. I'll have to take a deeper look.

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