Announcement

Collapse
No announcement yet.

Creating an error message for broken links from import

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating an error message for broken links from import

    Greetings!

    Is there a url that will generate an error with possibly an email sent to the moderators/admin? Ideaily it would be like:
    "http://www.domain.com/portal/error.php"

    After importing, I have many posts with broken links since they point to the old forum software pages. I would like to use the cleaner to modify the url to the error page url. If the error message could provide the referer, then one of the moderators could go back and manually fix the url to the new location.

    I hope that makes sense...

  • #2
    This is internal link parsing.

    If you are using apache mod_rewrite can be used to catch the old links.

    Though at the moment there isn't a links_cleaner.php released.
    I wrote ImpEx.

    Blog | Me

    Comment


    • #3
      ...but I could use cleaner to change the link (it is all the same link) to point to one error page...but I'm not sure what page that would be.

      Comment


      • #4
        Originally posted by majorxp
        ...but I could use cleaner to change the link (it is all the same link) to point to one error page...but I'm not sure what page that would be.
        All exactly the same link ? If you are talking about inter board links, to threads and posts, the URL will be different you will need a regex to match them.
        I wrote ImpEx.

        Blog | Me

        Comment


        • #5
          Originally posted by Jerry
          All exactly the same link ? If you are talking about inter board links, to threads and posts, the URL will be different you will need a regex to match them.
          Enough of the link is exactly the same.

          IE:

          www.domain.com/forums/readthread.asp?post=234432
          www.domain.com/forums/readthread.asp?post=263452
          www.domain.com/forums/readthread.asp?post=567867
          www.domain.com/forums/readthread.asp?post=123415

          I could replace them with:

          http://www.domain.com/forums/errorre...hp?post=234432
          http://www.domain.com/forums/errorre...hp?post=263452
          http://www.domain.com/forums/errorre...hp?post=567867
          http://www.domain.com/forums/errorre...hp?post=123415


          The post=xxxx wouldn't be read, but simply the referer page to the error page so that moderators can be notified that the referer page has a bad link that should be fixed.

          Error page would just need to email the mods the referer and an error message. I could write this, but I was wondering if a general error handling page is already a part of vB.

          Comment


          • #6
            I see what you mean now.

            Yes I can see what working, and no there isn't a page like that in vBulletin.

            Though if you did read the postid, you could email that to mod/admin, and at the same time query for the importpostid from the database so you know what the link id should be.
            I wrote ImpEx.

            Blog | Me

            Comment


            • #7
              Originally posted by Jerry
              Though if you did read the postid, you could email that to mod/admin, and at the same time query for the importpostid from the database so you know what the link id should be.
              That is a great idea. I might spend the time to do it that way instead of just showing a 'broken link...will redirect to where you were' page.

              Comment


              • #8
                Originally posted by majorxp
                That is a great idea. I might spend the time to do it that way instead of just showing a 'broken link...will redirect to where you were' page.
                It's basically how internal link parsing works, but without the human intervention.
                I wrote ImpEx.

                Blog | Me

                Comment

                Related Topics

                Collapse

                Working...
                X