PDA

View Full Version : Does anyone have version 2.1.03 running totally?


webtime
04-06-2007, 05:32 PM
Hi All,
Out of Patience, Does anyone have version 2.1.03 running totally?
I have install, after several hours trying to get cron to work, a new cron job for v2.1.03 comes out. My category are installed, but can't input to the categories, reciprocal link not working or I'm missing something. if you have this running please post code changes.:cry:
Thanks

Dave Baker
04-06-2007, 06:41 PM
Hello webtime,
Try to apply Sergey's fixes:
http://www.esyndicat.com/forum/about9212.html (post # 6)

webtime
04-06-2007, 09:03 PM
Hi Dave,
Thanks for your post, and I tried it, and then went into admin panel and disable the link checking (domain sensitive) but still can't find the link, it on xxxxx.net every page, in the admin panel reciprocal link is h**p://www.xxxx.net , cron is set up correctly from John,
The script from sergy post:
/**
* Checks if the given content has the given URL in it
*
* @param string $aText content
* @param string $aUrl URL
*
* @return bool true on success, false otherwise
*/
function has_url($aText, $aUrl)
{
$aUrl = preg_quote($aUrl);
$aUrl = str_replace('/', '\/', $aUrl);

//$pattern = '/<a[^>]+href=([\'"]?)'.$aUrl.'\/?\1.*>.*<\/a>'.'/is'; The pattern by default
$pattern = '/<a href=([\'"]?)'.$aUrl.'\/?\1.*>.*<\/a>'.'/is'; // Edited

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


now the script from update v 2.1.03:
/**
* Checks if the given content has the given URL in it
*
* @param string $aText content
* @param string $aUrl URL
*
* @return bool true on success, false otherwise
*/
function has_url($aText, $aUrl)
{
$aUrl = preg_quote($aUrl);
$pattern = '/<a href=([\'"]?)'.$aUrl.'\/?\1.*>.*<\/a>'.'/is';

return preg_match($pattern, $aText);
}

I did make the change and If I'm in the right spot (give a line number you'll see this on line #124) would be helpful, but there not quite the same, and as we know a spacebar mistake or period..... can screw things up so I wasn't sure to use this fix. Another problem I'm having, is sergy fix was in 3-02-07 and I got the new script on 4-02-07 so I'm trying not to look at old stuff as much as the code has had major changes. So not sure what to try! Thanks

Found the problem reading sergey ten post on the script fix it say one line edited::That's correct
$aUrl = preg_quote($aUrl);
$aUrl = str_replace('/', '\/', $aUrl);

//$pattern = '/<a[^>]+href=([\'"]?)'.$aUrl.'\/?\1.*>.*<\/a>'.'/is'; The pattern by default
$pattern = '/<a href=([\'"]?)'.$aUrl.'\/?\1.*>.*<\/a>'.'/is'; // Edited <----and it say edited so that's what I fixed and move on.

But didn't see:: $aUrl = str_replace('/', '\/', $aUrl); This is from the old script and I'm running the new updated? Put old script in after noticed extra line..Reciprocal link sign up works great!!