Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Re: [chris2002] how to reorganise links.db

Quote Reply
Re: [chris2002] how to reorganise links.db In reply to
I don't know if this is what you mean but I thought about making a mod that will work like this.
You take linksid.txt and turn it back to 0 or whatever. Then the script would go put the db in an array, and then foreach line of the array(splitting the lines of course by links fields) change the ID's with the incremental $count++ or something like that and then print it back to the linksid.txt. I imagine this would be a really long process. This would make it so if you have lets say 10 links and they go
1, 3, 9, 7, 4, 82, 128, 345, 34, 23
lets say they got unorganized by deleting and modifying and a bad kept linksid.txt. It would go through and change them to 1-10

But of course, if you have link owners, this would be bad if you use a modify.cgi security thing that goes by ID, because their ID will change. If you use the newer mods like Paul's, this would work.

Lavon Russell
LookHard Mods
lavon@lh.links247.net

Last edited by:

Bmxer: Nov 24, 2001, 9:11 AM
Subject Author Views Date
Thread how to reorganise links.db chris2002 5659 Nov 23, 2001, 11:41 PM
Thread Re: [chris2002] how to reorganise links.db
Andy 5584 Nov 24, 2001, 7:07 AM
Thread Re: [AndyNewby] how to reorganise links.db
chris2002 5591 Nov 24, 2001, 7:54 AM
Thread Re: [chris2002] how to reorganise links.db
Paul 5582 Nov 24, 2001, 8:25 AM
Thread Re: [PaulW] how to reorganise links.db
chris2002 5569 Nov 24, 2001, 8:26 AM
Post Re: [chris2002] how to reorganise links.db
Paul 5545 Nov 24, 2001, 8:34 AM
Thread Re: [chris2002] how to reorganise links.db
Bmxer 5577 Nov 24, 2001, 9:09 AM
Thread Re: [Bmxer] how to reorganise links.db
Paul 5568 Nov 24, 2001, 9:17 AM
Thread Re: [PaulW] how to reorganise links.db
Bmxer 5570 Nov 24, 2001, 9:53 AM
Thread Re: [Bmxer] how to reorganise links.db
Paul 5518 Nov 24, 2001, 10:29 AM
Thread Re: [PaulW] how to reorganise links.db
Bmxer 5527 Nov 24, 2001, 12:18 PM
Post Re: [Bmxer] how to reorganise links.db
Paul 5481 Nov 24, 2001, 12:30 PM
Thread Re: [PaulW] how to reorganise links.db
sponge 5516 Nov 24, 2001, 11:59 PM
Post Re: [ThatPerson1024] how to reorganise links.db
Paul 5535 Nov 25, 2001, 3:32 AM
Post Re: [Bmxer] how to reorganise links.db
Stealth 5565 Nov 24, 2001, 5:54 PM