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.

        Comment


          #19
          Can i deactivate link Content?

          Comment


            #20
            You can disable "Can create link" permission in Usergroup Manager in AdminCP.

            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.

                    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?

                        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.

                              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.
                            Working...
                            X