Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

checking only a certain part of the directory?

Home: Plugins Support - Paid: Recip_Link:

 

 


theobeest
Novice

Karma: -0 / +0

Oct 7, 2005, 3:36 PM

Post #1 of 6 (1476 views)
Shortcut

Send theobeest a wink
checking only a certain part of the directory? Can't Post

Hi Andy,

Is it possible to only check a certain part of the directory for recip links?

My directory contains a Dmoz dump en a link partners section, and only the link partner section should be checked for recip links.

I was thinking of
if the recip field of the link contains a url then this link should be checked for a recip link.

Theo

--
http://www.atyourspace.com


Andy
Enthusiast

Karma: -1 / +7


Oct 10, 2005, 1:34 AM

Post #2 of 6 (1468 views)
Shortcut

Send Andy a wink
Re: [theobeest] checking only a certain part of the directory? [In reply to] Can't Post

Hi,

Do you have any kind of "flag" for the links you want to check? i.e DoCheck=> Yes, or similar. If so, this should be simple =) Let me know, and I'll post the appropriate code changes for you.

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com



theobeest
Novice

Karma: -0 / +0

Oct 10, 2005, 6:38 AM

Post #3 of 6 (1460 views)
Shortcut

Send theobeest a wink
Re: [Andy] checking only a certain part of the directory? [In reply to] Can't Post


In Reply To
Hi,

Do you have any kind of "flag" for the links you want to check? i.e DoCheck=> Yes, or similar. If so, this should be simple =) Let me know, and I'll post the appropriate code changes for you.

Cheers



I have to start over with my link partners section, so I can make a DoCheck field if needed.



Theo

--
http://www.atyourspace.com


theobeest
Novice

Karma: -0 / +0

Oct 12, 2005, 8:03 AM

Post #4 of 6 (1402 views)
Shortcut

Send theobeest a wink
Re: [theobeest] checking only a certain part of the directory? [In reply to] Can't Post

bump

--
http://www.atyourspace.com


Andy
Enthusiast

Karma: -1 / +7


Oct 14, 2005, 1:12 AM

Post #5 of 6 (1368 views)
Shortcut

Send Andy a wink
Re: [theobeest] checking only a certain part of the directory? [In reply to] Can't Post

Hi,

Sorry about that Frown

Ok, here goes.

1) In check.cgi, find;


Code
    my $sth   = $table->select();


..and change to;


Code
    my $sth   = $table->select( { DoCheck => 1 } );


Also, in /admin/Plugins/Recip_Link.pm, please find the "Check_All" sub, and change;


Code
    my $sth   = $table->select();


..to;


Code
    my $sth   = $table->select( { DoCheck => 1 } );


...and then in Check_Staggered(), please change;


Code
   my $cond = GT::SQL::Condition->new('ID','>',$last_id); 
my $sth = $table->select( $cond );


..to;


Code
    my $cond = GT::SQL::Condition->new('ID','>',$last_id,'DoCheck','=','1'); 
my $sth = $table->select( $cond );



That should do it Cool

Hope that helps.

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


theobeest
Novice

Karma: -0 / +0

Oct 14, 2005, 1:47 AM

Post #6 of 6 (1365 views)
Shortcut

Send theobeest a wink
Re: [Andy] checking only a certain part of the directory? [In reply to] Can't Post


In Reply To
Hi,

Sorry about that Frown

Ok, here goes.

1) In check.cgi, find;

....

That should do it Cool

Hope that helps.

Cheers



Thanks Andy.

Theo



--
http://www.atyourspace.com

(This post was edited by Andy on Oct 14, 2005, 3:12 AM)

 
 
 


Search for (options) Powered by Gossamer Forum v.1.2.4