Reciprocal link checking ERROR - Page 6 - eSyndiCat User Forums
eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > Bug Reports

Bug Reports "Brrr! Bugs!" Yes, we do hate them as well. But nothing is perfect in this world and if you found a bug let us know so that we can make eSyndiCat Directory Software even better.

Reply
 
Thread Tools Display Modes
Old 08-08-2007   #51
John Turner
 
Join Date: Sep 2006
Posts: 1,428
John Turner is a jewel in the roughJohn Turner is a jewel in the roughJohn Turner is a jewel in the roughJohn Turner is a jewel in the rough
Default

Hi Tamagochi,

open '../includes/util.php'
find function check_reciprocal
find following code in it
Code:
	$reciprocal = "#<a[^>]+href=(?:[\'\"]{0,1})(?:\s*)".preg_quote($config->get('reciprocal_text'), "#")."(?:\s*)(?:[\'\"]{0,1})(?:[^>]*)>(?:.*)<\/a>#is";
replace with following code
Code:
	$reciprocal = "#<a href=(?:[\'\"]{0,1})(?:\s*)".preg_quote($config->get('reciprocal_text'), "#")."(?:\s*)(?:[\'\"]{0,1})(?:[^>]*)>(?:.*)<\/a>#is";
HTH
John Turner is offline   Reply With Quote
Old 08-08-2007   #52
Simon Cave
 
Simon Cave's Avatar
 
Join Date: Aug 2007
Posts: 84
Simon Cave is on a distinguished road
Default Same problem with reciprocal checking

Link checking set to en,dis,dis,en
keep getting message 1. Please input correct reciprocal link.

Have tried editing both reciprocal line & pattern line

$reciprocal = "#<a href=(?:[
$pattern = '/<a href=([\'"]?

Its getting very late so am probably missing something silly but have tried both separately & together

running version
2.1.03

any help appreciated my /includes/util.php attached as txt
Attached Files
File Type: txt util.txt (19.3 KB, 12 views)
Simon Cave is offline   Reply With Quote
Old 08-08-2007   #53
Tamagochi
 
Join Date: Apr 2007
Location: Madrid, Espaņa
Posts: 93
Tamagochi is on a distinguished road
Default

Hi

I'll Try it Thanks a lot.

Best Regards
Tamagochi is offline   Reply With Quote
Old 08-28-2007   #54
Mark Brookes
 
Join Date: Mar 2006
Posts: 650
Mark Brookes has disabled reputation
Default

Hello

I have tried working through the suggested changes, and tried to distinguish pro-version -changes from omega-version-changes etc. However The results are not ok

People are now able to suggest links without the error message cause by reciprocal check falsely failing, but instead any valid url is now considered to be a valid reciprocal.

Clearly I am doing something wrong :-/

Does anyone have a properly working ../includes/util.php which they can attach, so I can "adopt" it ?


Also - does correcting the util.php script make the correction for both the suggest-link process, and for the regular cron.php checking process?

or is the cron.php checking system separate from the suggest-link system?

Regards
mark
__________________
.
.
.
Fine Wedding Speeches
Be remembered for the right reasons.
http://www.finespeeches.com

Last edited by Mark Brookes; 09-21-2007 at 11:18 AM.
Mark Brookes is offline   Reply With Quote
Old 09-21-2007   #55
antex
 
Join Date: Jun 2007
Posts: 11
antex is on a distinguished road
Default

Quote:
Originally Posted by Sergey Ten View Post
Hello all,

I have found another solution

[ Open your includes/util.php ]
[ Find function ]

PHP Code:
function has_url($aText$aUrl)
{
    
$aUrl preg_quote($aUrl);
    
$pattern '/<a[^>]+href=([\'"]?)'.$aUrl.'\/?\1.*>.*<\/a>'.'/is';

    return (bool)
preg_match($pattern$aText);

[ Replace with ]

PHP Code:
function has_url($aText$aUrl)
{
    
$aUrl preg_quote($aUrl"/");  
    
$pattern "(^|[])((ftp|http|https):(([A-Za-z0-9$_.+!*(),;/?:@&~=-])|%[A-Fa-f0-9]{2}){2,}({$aUrl})?([A-Za-z0-9$_+!*();/?:~-]))";
    
    return 
eregi($pattern$aText);

[ Save change ]


After that when I add link all is ok.
But when I want edit link (as editor),
I still see: "Please input correct reciprocal link."

Any ideas?
antex is offline   Reply With Quote
Old 11-17-2007   #56
banyo
 
Join Date: Oct 2007
Location: Thailand
Posts: 9
banyo is on a distinguished road
Default Wondering

Just ran into the same issue.

How come this has not been included into the latest release (or at least the manual) - somehow not very encouraging if it is required to change code in files to get basic functionality to work....

Thank you.

Last edited by banyo; 12-21-2007 at 03:28 AM. Reason: typo
banyo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 01:41 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us | SEO Resources