Results 1 to 7 of 7

Thread: Problems with edit links

  1. #1
    Frank71 is offline Active Member
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Question Problems with edit links

    Hello,

    often if I want to change a link, I have the problem, that I don't change the link and the script adds the same edited link to the links to approve ?!
    If I approve it, I have the link two times, one time with change and one time without change....

    Do you know any solution for that ?

    Greetings
    Frank

  2. #2
    Frank71 is offline Active Member
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default again

    Tody I had the same problem again - I edited an new link and after that the old wasn't changed and I have the same changed link to approve and after that I had two links..

    No one else has this problem ?

    Frank

  3. #3
    esm's Avatar
    esm
    esm is offline Active Member
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    are you logging in as the Admin or as an Editor?

    For some reason there is an INSERT SQL Statement in the modify function to put the link in the TEMP table to be validated. Seem weird! Shouldn't be inserting during a modify - should be updating. but I have not looked thru all the code.

    Code:
            elseif($add_permission==1) {
            
              //insert into temp db
          
              $this->table_name_temp = $this->table_name . "_temp";
     
              $query = "insert into $this->table_name_temp ($custom_fields_name) values ($custom_fields_value)";
              $result = $this->db_connect->Execute($query);
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  4. #4
    Frank71 is offline Active Member
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default admin

    As admin, I don't use editors...

    Hm, you know my php knowledge and if you ask for mysql orders....

    I wonder that no one else has this problem ?!

    Frank

  5. #5
    Frank71 is offline Active Member
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Thumbs down DODY ?

    DODY ???

  6. #6
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    Frank, is it always happend or sometimes? Where you edit it?
    Admin cp -> Links -> View/Search -> Edit ??

    If you edit in this area, indexu will use 'update' statement, not 'insert'.
    But if you validate links, indexu will see whenever the link already exist or it's a new submission. Please make it more clear.
    www.nicecoder.com
    www.dodyrw.com

  7. #7
    Frank71 is offline Active Member
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default ..

    admin - edit links -> sometimes the link went to the validate area and after that I have it twice.

    The error only apperas sometimes and I don't know why - also I didn't see the error in the first moment, because I think I changed the link, but if I control my change or go to the validate area I see it - strange error

    Frank

Similar Threads

  1. Moving from G-T Links 2
    By esm in forum Pre-Sales Questions
    Replies: 14
    Last Post: 05-30-2005, 05:26 PM
  2. Delete 800 links one at a time ?
    By killipso in forum v5.x
    Replies: 2
    Last Post: 01-26-2004, 11:55 AM
  3. Cannot edit categories or links
    By bradisco in forum v5.x
    Replies: 0
    Last Post: 12-15-2003, 06:52 AM
  4. Replies: 0
    Last Post: 06-30-2002, 03:15 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
  •