I'm trying to upgrade from an old version of Linksql. Still fooling around with it on a test server getting ready for the upgrade. What I'm not sure of, is there a way to get nph-build-verify to temporarily disable bad links if they show certain errors for X days? I don't like the old way of just deleting a link that goes bad. I would have preferred to keep the data and just disable bad links and having a record of whoever was in the database in the past.
Jul 26, 2004, 2:02 AM
Enthusiast (700 posts)
Jul 26, 2004, 2:02 AM
Post #2 of 9
Views: 2911
I'm pretty sure there is NOT a way to do this using the file.
I cannot remember one time in the hundreds of dead links I have found manually and by complaint that I would want to temporarily disable the link. Usually the link is dead for good or something completely new. If that is the case, it is worth taking the time to delete and add again. Sometimes, however, you get the case where the site is temporarily down. In my case, by the time I check the link it is back up.
I do not know you situation or for sure the capabilities of links, but I do know my experiences...
Time Passes, live...
- Jonathan
I cannot remember one time in the hundreds of dead links I have found manually and by complaint that I would want to temporarily disable the link. Usually the link is dead for good or something completely new. If that is the case, it is worth taking the time to delete and add again. Sometimes, however, you get the case where the site is temporarily down. In my case, by the time I check the link it is back up.
I do not know you situation or for sure the capabilities of links, but I do know my experiences...
Time Passes, live...
- Jonathan
Two reasons I want it temporary. First, I run this daily. Sometimes there are sites that don't return a 200 code because the server is temporarily down. No need to remove those, but I wouldn't mind putting them on hold. The other reason, I want to remember a link that I took down for whatever reason so if the original person comes back, I can have an internal note as to why I put it in "hold"
Jul 26, 2004, 3:03 AM
Veteran / Moderator (18436 posts)
Jul 26, 2004, 3:03 AM
Post #4 of 9
Views: 2899
AFAIK, it shouldn't delete the link if its found to be inactive (it will just set "Status" to whatever code was returned, i.e 404, 200, 401, 403, etc).
Hope that helps.
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Hope that helps.
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Jul 26, 2004, 3:04 AM
Enthusiast (700 posts)
Jul 26, 2004, 3:04 AM
Post #5 of 9
Views: 2905
There are two options...
A.) Add a field in links that says display link (yes, no)... and somehow modify links so that it does not display any link if check no... (it would be nice if this were already written but I'm pretty sure its not)...
B.) Make a new database for the links to be placed in (more practical)...
Seems to me it would take some work... if its not worth it you can always copy the links out manually...
Let your heart decide...
- Jonathan
A.) Add a field in links that says display link (yes, no)... and somehow modify links so that it does not display any link if check no... (it would be nice if this were already written but I'm pretty sure its not)...
B.) Make a new database for the links to be placed in (more practical)...
Seems to me it would take some work... if its not worth it you can always copy the links out manually...
Let your heart decide...
- Jonathan
Jul 26, 2004, 3:51 AM
Veteran / Moderator (18436 posts)
Jul 26, 2004, 3:51 AM
Post #7 of 9
Views: 2906
Yeah, simply setting a link to "isValidated => No" should do the trick. You have to make double sure any globals you are using takes this into consideration though (or else, you may get links showing up with your globals, even if they are not validated).
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Jul 26, 2004, 6:43 AM
Veteran / Moderator (18436 posts)
Jul 26, 2004, 6:43 AM
Post #9 of 9
Views: 2884
Correct. Otherwise, add a new flag (i.e "Stopped", Yes/No), and then modify the validate_links (not sure which file I'm afraid, try a 'grep' to find out).
It should be as simple as adding in an extra argument to the condition, i.e;
{ Stopped => 'No' }
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
It should be as simple as adding in an extra argument to the condition, i.e;
{ Stopped => 'No' }
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!