Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [jeffb] Possible to Mass Validate links?

Quote Reply
Re: [jeffb] Possible to Mass Validate links? In reply to
It really depends on how good you are with sql, and computer stuff, how comfortable you will be with really heavy tricks.

You can dump tables in admin->database->export area. If you do that, you can export your Links database to a file with all the insert commands, download the file, cut off the top of it (old links) and then quickly delete lines from the list, and then do a delete from prefix_Links where ID => first_link_delete and ID <= last link deleted, then reimport the "good" links using a a cut/past to the SQL monitor box. If there are only a few links you want to keep, after looking at the list, you could do something like:

update Links set isValidated = "Yes" where ID IN ( ) ; I'm not sure the _exact_ command, then you could just

delete from Links where isValidated = 'No'

I'm being a bit sketchy, since all these are pretty dangerous, as they require direct database manipulation.

You can also issue your own SQL commnad to export only the links where isValidated = No, which will cut down the size of your export file drasticly, and let you pick up unvalidate files you might have missed.

The *best* way to fix things, would be to use th IN() list method, once you get the "good" ID's. The reason is that it uses the data already in the database, with an update and a delete. Once you set all the good links to isValidated you can get rid of all the bad links that have isValidated="No". It also does not required deleting good data from the database then reimporting it, which has some risk to it.

If you are going to use the IN method, you can go to the sql monitor in links, and simply ask:

select * from prefix_Links where isValidated="No"

and then do a cut/paste from the results screen into an editor, and take down a list of the "good" ID's that you probably want to keep.

If you can tell the good/bad from just the title and URL, just ask for:

select ID,Title,URL from prefix_Links where isValidated="No"

It would be a really quick 2-finger type delete pattern from there on <G>. Use a block-select/delete to remove the Title, URL data from the editor, change \n to \n, via a regex search/replace, and insert that into the IN (...) portion of the update.

I do something very similar when trying to add new links in bulk, and assign them categories.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread Possible to Mass Validate links? jeffb 11392 May 20, 2003, 9:48 AM
Thread Re: [jeffb] Possible to Mass Validate links?
pugdog 11149 May 21, 2003, 9:16 AM
Thread Re: [pugdog] Possible to Mass Validate links?
jeffb 11225 May 23, 2003, 5:01 AM
Post Re: [jeffb] Possible to Mass Validate links?
Andy 11120 May 23, 2003, 6:52 AM
Thread Re: [jeffb] Possible to Mass Validate links?
Andy 11188 May 23, 2003, 7:45 AM
Thread Re: [Andy] Possible to Mass Validate links?
Paul 11160 May 23, 2003, 8:14 AM
Thread Re: [Paul] Possible to Mass Validate links?
Andy 11186 May 23, 2003, 8:28 AM
Thread Re: [Andy] Possible to Mass Validate links?
Paul 11185 May 23, 2003, 11:39 AM
Thread Re: [Paul] Possible to Mass Validate links?
Andy 11244 May 24, 2003, 2:33 AM
Thread Re: [Andy] Possible to Mass Validate links?
jeffb 11190 May 28, 2003, 7:59 AM
Thread Re: [jeffb] Possible to Mass Validate links?
Andy 11172 May 28, 2003, 8:15 AM
Thread Re: [Andy] Possible to Mass Validate links?
jeffb 11152 May 28, 2003, 9:12 AM
Thread Re: [jeffb] Possible to Mass Validate links?
Andy 11091 May 28, 2003, 1:54 PM
Thread Re: [Andy] Possible to Mass Validate links?
jeffb 11180 May 28, 2003, 4:25 PM
Thread Re: [jeffb] Possible to Mass Validate links?
Andy 11131 May 29, 2003, 1:21 AM
Thread Re: [Andy] Possible to Mass Validate links?
jeffb 11084 May 29, 2003, 5:34 PM
Post Re: [jeffb] Possible to Mass Validate links?
Andy 11062 May 30, 2003, 1:16 AM
Thread Re: [Andy] Possible to Mass Validate links?
Sire 11062 May 2, 2004, 6:35 AM
Thread Re: [Sire] Possible to Mass Validate links?
Andy 10911 May 3, 2004, 12:40 AM
Thread Re: [Andy] Possible to Mass Validate links?
Andy 10880 Jun 25, 2004, 2:45 AM
Thread Re: [Andy] Possible to Mass Validate links?
Stephan99 10832 Dec 15, 2004, 8:17 PM
Thread Re: [Stephan99] Possible to Mass Validate links?
Andy 10882 Dec 16, 2004, 12:02 AM
Post Re: [Andy] Possible to Mass Validate links?
Stephan99 10746 Dec 16, 2004, 9:03 AM
Thread Re: [Andy] Possible to Mass Validate links?
hegu 10622 Aug 9, 2006, 4:34 PM
Thread Re: [hegu] Possible to Mass Validate links?
fuzzy logic 10541 Aug 9, 2006, 6:59 PM
Post Re: [fuzzy logic] Possible to Mass Validate links?
hegu 1616 Aug 9, 2006, 7:45 PM