Results 1 to 2 of 2

Thread: Problem validating links

  1. #1
    Join Date
    Jul 2004

    Exclamation Problem validating links

    I have a problem with validated links to my site others have submitted.
    The problem only occurs if I change the category the user have proposed before the links is validated (no problem if I accept the proposed category).

    After the link has been validated, the number of links in this category on the browsecategory page has been incrememented by 1 in the category I have chosen as administrator. However, when I go the category, the link is not present (and neither in the category the user has proposed)

    If I then use the tool "update categories" the link is now being shown OK in the category the user did propose, and he number of link in this category is also incremented by 1.

    PROBLEM: As adminsistrator I selected another category for the link, and this function does not work.

    And update: WEIRD - When I edit the link that erroneously is shown in the user-submitted category, it actually says at the "edit link page" that the link is actually in the administror selected category. If I do nothing and saves, the link is moved to the administrator selected category
    Last edited by HenrikHansen; 03-20-2011 at 06:07 PM.

  2. #2
    Join Date
    Jan 2004
    Georgia, USA


    Thank you for pointing this out. I've just updated the links/moderate.php file in the download v3.3.0 and v4.2.0 packages here to inlcude the fix, so if you will download the files again and update that one on your sever, that should take care of the issue.
    Or if you would rather apply the fix manually, just look in the file for this code:
    PHP Code:
                                $movedtocats array_diff($link['extracatids'], $oldcatids[$linkid]);
                                if (!empty(
    $catidsinsert .= "($linkid, " implode("), ($linkid, "$movedtocats) . '),';

    $movedfromcats array_diff($oldcatids[$linkid], array_merge(array($link['catid']), $link['extracatids']));
                                if (!empty(
    $catidsremove .= '(linkid = ' $linkid' AND catid IN(' implode(', '$movedfromcats) . ')) OR ';
    And replace with this:
    PHP Code:
                                // set an array of categoryids to compare
    $allcatids $link['extracatids'];
    $allcatids[] = $link['catid'];

    $movedtocats array_diff($allcatids$oldcatids[$linkid]);
                                if (!empty(
    $catidsinsert .= "($linkid, " implode("), ($linkid, "$movedtocats) . '),';

    $movedfromcats array_diff($oldcatids[$linkid], $allcatids); 
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to see custom fields when validating links
    By HenrikHansen in forum "How Do I..." Questions
    Replies: 1
    Last Post: 03-16-2009, 12:22 PM
  2. validating errors
    By larina in forum Troubleshooting & Problems
    Replies: 5
    Last Post: 09-12-2008, 11:18 AM
  3. Custom Fields when validating...
    By Polo in forum Troubleshooting & Problems
    Replies: 4
    Last Post: 04-04-2005, 12:12 PM
  4. Validating Link Error
    By nealparry in forum Troubleshooting & Problems
    Replies: 9
    Last Post: 11-04-2004, 10:40 PM
  5. Error validating web urls
    By deb0 in forum Troubleshooting & Problems
    Replies: 1
    Last Post: 11-02-2004, 11:39 AM

Posting Permissions

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