Re: Link Manager 3.0 Support Thread
Quote:
Originally Posted by
weezee
I am using links_manager_v3-5-2
Quote:
Originally Posted by
weezee
When I click check link I get this message:
Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /home/content/w/e/e/weezee/html/xxxxxx_admin/links.php on line 625
I am running Zen Cart v1.3.8a. I reuploading all the links manager files, before that, the line was 623
I think I posted this in the wrong forum. help with logo sideboxes sorry.
This is the entire section of code that applies to this issue:
Please compare the following with your copy of admin/links.php
PHP Code:
break;
case 'check':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_CHECK_LINK . '</b>');
$url = $lInfo->links_reciprocal_url;
$link_check_status = false;
$link_check_status_text = '';
if (function_exists('curl_exec')) {
$c = curl_init();
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_URL, $url);
$content = curl_exec($c);
curl_close($c);
if ($content) {
// I *think* this is the right preg_match syntax ... please double-check that it works as desired.
if (preg_match('/'.LINKS_CHECK_PHRASE.'/i', $content)) {
$link_check_status = true;
}
}
} else if (ini_get('allow_url_fopen') == TRUE && file($url)) {
$file = fopen($url,'r');
while (!feof($file)) {
$page_line = trim(fgets($file, 4096));
// I recommend changing this eregi to a preg_match for PHP 5.3 compatibility:
if (preg_match('/'.LINKS_CHECK_PHRASE.'/i', $page_line)) {
$link_check_status = true;
break;
}
}
fclose($file);
} else {
$link_check_status_text = TEXT_INFO_LINK_CHECK_ERROR;
}
if ($link_check_status == true) {
$link_check_status_text = TEXT_INFO_LINK_CHECK_FOUND;
} elseif ($link_check_status_text == '') {
$link_check_status_text = TEXT_INFO_LINK_CHECK_NOT_FOUND;
}
$contents[] = array('text' => TEXT_INFO_LINK_CHECK_RESULT . ' ' . $link_check_status_text);
$contents[] = array('text' => '<br /><b>' . $lInfo->links_reciprocal_url . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br /><a href="' . zen_href_link(FILENAME_LINKS, zen_get_all_get_params(array('lID', 'action')) . 'lID=' . $lInfo->links_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
Re: Link Manager 3.0 Support Thread
Clyde -
I seem to have a problem with the upgrade of this mod / new zen.
I recently upgraded a client to 1.3.9e zen and v 3.5.3 Links Manager.
All data retained and everything just fine but now the display page is not picking up the HTML in the descriptions of the links.
You can see what I mean HERE. It is showing the coding instead of the actual display.
I have increased description to 2500 characters but that didn't help. :no:
Have you any suggestions ?
thanks!
Re: Link Manager 3.0 Support Thread
Quote:
Originally Posted by
TinaS
Clyde -
I seem to have a problem with the upgrade of this mod / new zen.
I recently upgraded a client to 1.3.9e zen and v 3.5.3 Links Manager.
All data retained and everything just fine but now the display page is not picking up the HTML in the descriptions of the links.
You can see what I mean
HERE. It is showing the coding instead of the actual display.
I have increased description to 2500 characters but that didn't help. :no:
Have you any suggestions ?
thanks!
How were the descriptions entered?
NB: the description area of links manager was designed for plain text and NOT to include HTML tags.
NOTE: you also seem to be missing a couple of language definition files:
includes/languages/english/YOUR_TEMPLATE/links_submit.php
includes/languages/english/YOUR_TEMPLATE/links.php
Re: Link Manager 3.0 Support Thread
thanks for the heads up on the includes - i will drop those right in.:oops:
as for the descriptions the html code is entered as code just as you would in the plain text area of a product description.
is there a way (that i can do easily) to make the description field accept html ??
thanks again :bigups:
Re: Link Manager 3.0 Support Thread
Quote:
Originally Posted by
clydejones
This is the entire section of code that applies to this issue:
Please compare the following with your copy of
admin/links.php
PHP Code:
break;
case 'check':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_CHECK_LINK . '</b>');
$url = $lInfo->links_reciprocal_url;
$link_check_status = false;
$link_check_status_text = '';
if (function_exists('curl_exec')) {
$c = curl_init();
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_URL, $url);
$content = curl_exec($c);
curl_close($c);
if ($content) {
// I *think* this is the right preg_match syntax ... please double-check that it works as desired.
if (preg_match('/'.LINKS_CHECK_PHRASE.'/i', $content)) {
$link_check_status = true;
}
}
} else if (ini_get('allow_url_fopen') == TRUE && file($url)) {
$file = fopen($url,'r');
while (!feof($file)) {
$page_line = trim(fgets($file, 4096));
// I recommend changing this eregi to a preg_match for PHP 5.3 compatibility:
if (preg_match('/'.LINKS_CHECK_PHRASE.'/i', $page_line)) {
$link_check_status = true;
break;
}
}
fclose($file);
} else {
$link_check_status_text = TEXT_INFO_LINK_CHECK_ERROR;
}
if ($link_check_status == true) {
$link_check_status_text = TEXT_INFO_LINK_CHECK_FOUND;
} elseif ($link_check_status_text == '') {
$link_check_status_text = TEXT_INFO_LINK_CHECK_NOT_FOUND;
}
$contents[] = array('text' => TEXT_INFO_LINK_CHECK_RESULT . ' ' . $link_check_status_text);
$contents[] = array('text' => '<br /><b>' . $lInfo->links_reciprocal_url . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br /><a href="' . zen_href_link(FILENAME_LINKS, zen_get_all_get_params(array('lID', 'action')) . 'lID=' . $lInfo->links_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
Sorry just getting back, I lost my site.
yes its the same as my copy starting on line 610-659.
I run the uninstall SQL, and reinstalled v3.5.2 and when I run the install v3.5.2 SQL I got this:
1109 Unknown table 'links_status' in where clause
in:
[DELETE FROM zen_links_status WHERE links_status.links_status_id = 3;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Re: Link Manager 3.0 Support Thread
Quote:
Originally Posted by
TinaS
thanks for the heads up on the includes - i will drop those right in.:oops:
as for the descriptions the html code is entered as code just as you would in the plain text area of a product description.
is there a way (that i can do easily) to make the description field accept html ??
thanks again :bigups:
The description is input in a <textarea> form element.
AND
The contents are interpreted as text only; HTML markup is ignored.
Re: Link Manager 3.0 Support Thread
Quote:
Originally Posted by
weezee
Sorry just getting back, I lost my site.
yes its the same as my copy starting on line 610-659.
I run the uninstall SQL, and reinstalled v3.5.2 and when I run the install v3.5.2 SQL I got this:
1109 Unknown table 'links_status' in where clause
in:
[DELETE FROM zen_links_status WHERE links_status.links_status_id = 3;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
run this sql patch using the Zen-Cart Sql Patches tool
(admin -> tools -> install sql patches)
For best results,copy-and-paste the code into the query field and press 'Send'
Code:
DELETE FROM `links_status` WHERE `links_status`.`links_status_id` = 3;
Re: Link Manager 3.0 Support Thread
Quote:
Originally Posted by
clydejones
run this sql patch using the Zen-Cart Sql Patches tool
(admin -> tools -> install sql patches)
For best results,copy-and-paste the code into the query field and press 'Send'
Code:
DELETE FROM `links_status` WHERE `links_status`.`links_status_id` = 3;
I ran this sql in (admin -> tools -> install sql patches) the same as I did before and I got the same thing.
1109 Unknown table 'links_status' in where clause
in:
[DELETE FROM zen_links_status WHERE links_status.links_status_id = 3;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Re: Link Manager 3.0 Support Thread
Quote:
Originally Posted by
weezee
I ran this sql in (admin -> tools -> install sql patches) the same as I did before and I got the same thing.
1109 Unknown table 'links_status' in where clause
in:
[DELETE FROM zen_links_status WHERE links_status.links_status_id = 3;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Should be OK all the error message is telling you is that that particular field has already been deleted.
Re: Link Manager 3.0 Support Thread
But I still can't check my links. When I click check link still getting this message:
Warning: preg_match() [function.preg-match]: Unknown modifier '/' in /home/content/w/e/e/weezee/html/xxxxxx_admin/links.php on line 625