Page 1 of 2 12 LastLast
Results 1 to 15 of 20

Thread: Broken Link Report Feature

  1. #1
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default Broken Link Report Feature

    Hello, this is a suggestion that can (i think) be really easily implemented in indexu.

    You know when someone reports a link, is usually because the link is brokeng.

    Well when you get a directory so big that you have like 40 pages or reported "broken" links, is really hard to manage... specially because many of this reported links were reported broken maybe because there was a down time in the server this page is hosted or something similar to this matter... meaning that the page is not totally broken but "temporarly" unavaiable...

    some time ago, I used this software that added an integer number (just like the inhits mod, I'm sure ESM knows what I'm talking about)that everytime the link was reported broken, there was a number added...

    so when you went to the reported links page... there was a list with the link most reported being listed first... and not by cronological order (as indexu does it at this point) this would make the procces of deleting broken links really easy...

    since I knew that the first links were usually permanently broken.. and those links that were reported maybe once or twice because a downtime were at the bottom of the page.... so real broken links were deleted while the rest were left there to the admin discretion...

    I hope someone understand what I"m trying to get across, like i said, this would be a really usefull feature to make directories more efficient...

    i'm sure that it can be easily implemented and I hope someone can get the hands on it... i would but my coding skills are not that good...

    regards, and thanks for your attention...
    Polo

    --------------------------------------
    Christian Website

  2. #2
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    anyone has any clues? or maybe can lead me in the right direction
    Polo

    --------------------------------------
    Christian Website

  3. #3
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    this is a nice feature if you think about it.... dody..?
    Polo

    --------------------------------------
    Christian Website

  4. #4
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Originally posted by Polo5
    this is a nice feature if you think about it.... dody..?
    Historically, querying a site's status can take a few seconds for some sites. I have the working end of this MOD completed. Some INDEXU pages load quickly others not so quickly.

    updates to follow
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  5. #5
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    Originally posted by esm
    Historically, querying a site's status can take a few seconds for some sites.
    not sure if that was what i was looking for

    Originally posted by esm
    updates to follow
    will wait... for further info...
    Polo

    --------------------------------------
    Christian Website

  6. #6
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Originally posted by esm
    Historically, querying a site's status can take a few seconds for some sites.
    Trying running the checkurl option (or whatever it is named) in the admin control panel.

    Some urls return quickly, other slowly, others very slowly, some really slowly while some might even cause a "timeout."

    Did you ever click on a link that did not return the site fairly quickly and after several seconds you just knew you would get a "page not found" error msg?

    Same thing here...


    which is why most link directories rely on the surfer doing that and reporting the link as a bad link. A slow, manual process but it does have advantages.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  7. #7
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    yes i know, but that is not what i was looking for...

    how will this hack behave if I have more than 50,000 links?
    Polo

    --------------------------------------
    Christian Website

  8. #8
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    ok, i'm confused

    I was not looking to be querying a site's status to check if the site is avaiable or not
    Polo

    --------------------------------------
    Christian Website

  9. #9
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    I re-read your original post. You just want to sort and summarize the bad links list. I'll take a look at it....
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  10. #10
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    Originally posted by esm
    I re-read your original post. You just want to sort and summarize the bad links list. I'll take a look at it....
    exactly... i want a list of broken links (just like the current version of indexu) but with the links more reported being at the top of the list...

    for example, lets say i have a two links...


    link1

    link 2


    someone reports both links as broken... but more people report link 2 more...

    then in the list...

    the broken links list would show link2 first and then link1...

    hope you understand... if you have any questions please let me know...
    Polo

    --------------------------------------
    Christian Website

  11. #11
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    find the ViewBadLink function in the link.class.php file and make the changes below

    elseif($status=='view_all') {

    global $pg_which;

    // query
    if(empty($this->query))
    // mod
    // $this->query = "select * from $this->bad_link_table_name order by date desc";
    $this->query = "SELECT *, count(link_id) as cs FROM $this->bad_link_table_name GROUP BY link_id order by cs desc";
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  12. #12
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    I will try it and I will see how it goes...
    Polo

    --------------------------------------
    Christian Website

  13. #13
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    yup... seems like you hit it right in the spot!!
    Polo

    --------------------------------------
    Christian Website

  14. #14
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    I Implemented this in indexu 5.0.1 and it seems to work great...

    now I would like to konw if it could be possible to display in the broken link report page the number of times that links have been reported broken... this is possible right?
    Polo

    --------------------------------------
    Christian Website

  15. #15
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Polo5, just to remind you, please update to the latest version, or patch security fix for 5.0.1

Similar Threads

  1. Broken link report
    By aladdin in forum v5.x
    Replies: 8
    Last Post: 07-25-2003, 03:31 AM
  2. INDEXU FEATURES
    By Hart_House in forum Pre-Sales Questions
    Replies: 13
    Last Post: 06-30-2003, 11:57 AM
  3. broken links report not working
    By Veg in forum v5.x
    Replies: 0
    Last Post: 05-20-2002, 11:04 AM
  4. Reviews and Broken Link Report
    By duser in forum v5.x
    Replies: 7
    Last Post: 04-07-2002, 01:40 AM
  5. Replies: 0
    Last Post: 08-29-2001, 07:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •