Results 1 to 5 of 5

Thread: Special Import of GT links

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

    Default Special Import of GT links

    Dody

    I have attached a stripped down version of the indexu lite version of db_import.

    It is designed to import nothing but links from GT Links 2. Categories have already been added.

    I haven't tested it yet ( not enough time and I have a meeting to go to for a few hours ). But I wanted you to look at it to see if it has any serious problems.

    Assume the fields all line up and would end up in the correct columns of the SQL table. Come to think of it, I'm not sure how it knows to use the idx_link table.

    I have added the necessary columns to the table thru the admin center of 3.1 ( and previously imported the links with no problems )

    I want to use this since the import for v3.1 does not do several things:

    * Does not handle dates for custom fields
    * Does not convert Yes/No to 1/0
    * Does not "match" data in the GT links file to any corresponding fields in the standard indexu table ( for example, I already have a password field ).

    With over 800 links, I need to do something like this.
    Attached Files Attached Files
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

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

    Default

    Thank you for your addition. I was not use gt link, but I already tested with my friend data that spidered with Dmoz extractor in gt link 2 format. The data itself contain 10000 links and 1500 categories, it's soccer related web directory.
    www.nicecoder.com
    www.dodyrw.com

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

    Default

    my question is:

    will the attached file work???

    I already know that I need to add

    ShowFormImport();

    after the

    ConnectDB();

    how does it know to use the table idx_link?
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

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

    Default

    esm, gt link 2 import will work with data without custom field. Indexu may can't import if the data is different with original data provided by gt link.

    If you have custom fields data, you should use csv (tab delimiter) file import. It will work. The data should be correctly ordered like idx_link table structure that is provided in technical notes.

    But surely, your hack for gt link import will be a great addition.
    www.nicecoder.com
    www.dodyrw.com

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

    Default

    yes, I know that "gt link 2 import will work with data without custom field"

    I have used it and it does import the GT links. I have been able to browse thru my imported links.

    BUT...

    I want to use the attached file since the "gt link 2 import" for v3.1 does not do several things:

    * Does not handle dates for custom fields
    * Does not convert Yes/No to 1/0
    * Does not "match" data in the GT links file to any corresponding fields in the standard indexu table ( for example, I already have a password field ).

    BUT THE ATTACHED FILE HAS ERRORS. CAN YOU HELP ME WITH THE ERRORS. To see the errors, run it yourself.

    It uses the db_import_form.html file from the lite version.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

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. import certain links from dmoz
    By Cooler in forum Pre-Sales Questions
    Replies: 1
    Last Post: 03-29-2004, 10:38 AM
  3. Delete 800 links one at a time ?
    By killipso in forum v5.x
    Replies: 2
    Last Post: 01-26-2004, 11:55 AM
  4. INDEXU FEATURES
    By Hart_House in forum Pre-Sales Questions
    Replies: 13
    Last Post: 06-30-2003, 12:57 PM
  5. MOD for importing GT links
    By esm in forum v3.2
    Replies: 1
    Last Post: 05-24-2003, 04:18 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
  •