Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:link check problems (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:link check problems
#83
Sullivan (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
link check problems 8 Months, 1 Week ago Karma: 0  
Everything works fine, except for the link check. I have a lot of sites in the directory, but everytime I go to check, it just shows the same sites over and over again. Is there any way to see all the sites that are linking back to mine?

When I change the link ID range, it just reloads the same list of sites over and over again.

Can anyone help me with this?

Also, if anyone can define select range, and interval, that would be great. I can't find info on this anywhere.

Thanks for everything
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#91
Dewed (User)
Administrator
Posts: 250
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:link check problems 8 Months, 1 Week ago Karma: 7  
How it's supposed to work...

1. Set the interval to the # of sites you want to check per run.
2. Click Rebuild Range
3. Select the (next) range 1 - X (note changing this submits the form)
4. Wait for the results to display in the main frame..

repeat steps 3 and 4 until all your sites have been checked.
If it's timing out, or just painfully slow, decrease the interval number and click Rebuild Range to check fewer sites per run.

If it's not working at all, then it sounds like the script isn't getting some expected variables. The link check routine in particular is admitadly outdated, and will be given some TLC soon...

In the mean time..

Edit /admin/linkcheck_top.php
locate near line #19
Code:

if(!isset($many)){$many=6;}
change to
Code:

$many = $_POST['many']; if(empty($many)){$many=6;}
Edit /admin/linkcheck_main.php locate near line # 17
Code:

if(!isset($start)){ $start=0; } if(!isset($many)){ $many=10; }
change to
Code:

$start = $_GET['start']; if(empty($start)){$start=0;} $many = $_GET['many']; if(empty($many)){$many=10;}
A note for coders.. and reminder for myself.. although linkcheck_main.php is POSTed to via the form in linkcheck_top.php because it uses a URL jump select box, the paramters are actually passed in the URL linkcheck_main.php?start=4&many=3 .. so need to fetch those values from the $_GET array and not $_POST
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/02 09:53 By Dewed. Reason: correction $_GET array, not $_POST
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#163
jnasta (User)
Senior Boarder
Posts: 70
graphgraph
User Offline Click here to see the profile of this user
Gender: Male John Nasta Photography Location: Brooklyn, NY
Re:link check problems 7 Months, 4 Weeks ago Karma: 1  
Mine was doing exactly the same thing and this fix has brought up a couple of new issues:

1) On my main page I see that I have a total of 21 links on my site, yet only 20 show in link check. When I choose the 19-21 range there are only two links on the screen. I also went through all of the ranges and counted them. I also tried resetting the range to 25 and counting them. There are 20 showing up in link check, not 21. There are no sites that need to be verified, so that's not the problem.

2) The reciprocal link check only verifies that a web document exists at the URL they entered. It does not in fact verify that there is a reciprocal link, which makes it rather self-defeating.

Any ideas?

Thanks
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#165
Dewed (User)
Administrator
Posts: 250
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:link check problems 7 Months, 4 Weeks ago Karma: 7  
DOH ! I can't believe I never noticed this.. You are right, teh way its coded, it will skip a site.. . at least one.

I am currently doing a rewrite of the related files, but in the meantime, see if this slight tweak helps..

Edit the file /admin/linkcheck_top.php

Locate ...
Code:

while($x<$count){ echo "<option value=\"linkcheck_main.php?" . session_name() . "="; echo session_id() . "&start=" . ($x+1); echo "&many=" . $many . "\">" . ($x+1) . " - "; if(($x+$many)>$count){echo $count;} else {echo ($x+$many);} echo "</option>\n"; $x=$x+$many; }
Replace with . . . .
Code:

while($x<$count){ echo "<option value=\"linkcheck_main.php?" . session_name() . "="; echo session_id() . "&start=" . $x; echo "&many=" . $many . "\">" . $x . " - "; if(($x+$many)>$count){ echo $count; } else { echo ($x+$many); } echo "</option>\n"; $x=$x+$many; }
Secondly.. yes, the actual link check is limited... but it does actually look for the link.. Here is the admitadly clunky code that does it..
Code:

$file = @fopen($rows[RecipURL], "r"); while (!feof($file)) {$line = fgets($file, 4096); if (preg_match("/.*href.*". $our_site .".*a/i",$line, $out)){ $rlink="<font color=green>Rlink found</font><br>";$rlink2=$line; } if (preg_match("/noindex/i",$line,$out)){ $bad_recip = 1;$note.="<font color=red>No Index</font><br>"; } if (preg_match("/nofollow/i",$line,$out)){ $bad_recip = 1;$note.="<font color=red>No Follow</font><br>"; } } fclose($file); // end rlink search
So, it looks for noindex/nofollow mentioned anywhere on teh page.. which could be a sneaky webmaster up to no good. It also checks for the existance of "hrefSOMETHING$sitenameSOMETHINGa" in the file. First, make sure $sitename is correctly defined in /include/config.php The two big drawbacks of this method are .. 1. fopen is horribly slow at opening/closing multiple sockets. 2. The preg_match method will only detect your link if the "href", sitename and closing </a> tag are all on the same line. To address these problems, I hope to have new versions of linkcheck_main.php and linkcheck_top.php available for download in a couple days. If you would be so kind to try them out, your feedback would be greatly apreciated. And if they are just really superiffic, maybe consider buying me a cup of coffee via the paypal donate button to the left.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/15 12:51 By Dewed.
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#173
jnasta (User)
Senior Boarder
Posts: 70
graphgraph
User Offline Click here to see the profile of this user
Gender: Male John Nasta Photography Location: Brooklyn, NY
Re:link check problems 7 Months, 4 Weeks ago Karma: 1  
Thanks for the Link Check skipping links fix. I'll give it a try.

About the reciprocal link verification, I guess the best thing to do is wait a few days and try out the new files but in the meantime I'll check out the things you mentioned.

In include/config.php I do not find $sitename but I do find $our_site and it is correct. I do see the line in your code example that says if (preg_match("/.*href.*". $our_site .".*a/i", so I see what it's supposed to be doing.

So, I looked for that and found this in my admin/linkcheck_main.php:

if (preg_match("/.*href.*promopeddler.*promopeddler.*a/i",$line, $out))

WHOOPS!

I changed it to:

if (preg_match("/.*href.*". $our_site .".*a/i",$line, $out))

per your example but I still get the green message "Links Page Up" for a site that does not have my link on it. I also searched the source code of that site for my first name (as it is part of my domain name), noindex and nofollow and none of those terms are there. The site owner actually has a links page and my site isn't there either. The nerve!

So, something doesn't seem to be working right...

About the coffee, maybe in a week or so. Right now I'm playing hide and seek with my landlord because it's the 15th and I don't have the rent money. Trying to fix that situation by getting more freelance work...

Thanks,
John
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#174
Dewed (User)
Administrator
Posts: 250
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:link check problems 7 Months, 4 Weeks ago Karma: 7  
DOH.. how the heck did that get out in the wild..

I literally have dozens opf different versions of this script roaming around. Apparently at some point I got my versions mixed up.

Also to clarify, the possible responses from the link checker..

Site up (means the site URL was found)

Links page up (means the URL where your link is supposed to be was found)

Links Page Not Found (self explanatory)

No Index / No Follow (even though your link may exist, it may be excluded by bots due to noindex/noffollow on your link)

Rlink found (means you recipcrocol link was found

MANUAL (means while the reciprocol link page was found, your link wasn't..
Your link may actually be there, it simply wasn't detected.

So in this case "Links Page Up / MANUAL" is a correct assessment.. the page exists, but your link was not found on it. The MANUAL link is there for you to see for yourself because the link detection is not perfect.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008