Wildcard Usage:* matches any number of characters% matches exactly one character
Vladimir's WordPress Forum Plugins [SEO Smart Links] Fix for you SEO Smart Links plugin
[SEO Smart Links] Fix for you SEO Smart Links plugin
19:5918 October, 2010
Antonio
Post edited 20:00 – 18 October, 2010 by Antonio
Hello Vladimir,
I have found an important bug in your plugin and would like you to propose a modification.
I use internal linking to sections with #section, so I have a TOC at the beginnig (
….) pointing to
. With this plugin activated, this method doesn't work and pages don't scroll down.
The modifications to be done in the code in order to work:
After line 27 we have:
Modify this line
to
And also, around line 300
modify it to
$result=$this->SEOLinks_process_text($text, 0); $result = str_replace('\"',"'",$result); $result = str_replace("\'","'",$result); $result = str_replace('\"',"'",$result);
$options = $this->get_options(); $link=parse_url(get_bloginfo('wpurl')); $host='http://'.$link['host'];
I hope this help!
BR Antonio
Guest Name (Required):
Guest Email (Required):
Guest URL (required)
Math Required! What is the sum of: 3 + 7
Vladimir’s WordPress Forum
[SEO Smart Links] Fix for you SEO Smart Links plugin
19:59
18 October, 2010
Antonio
Post edited 20:00 – 18 October, 2010 by Antonio
Hello Vladimir,
I have found an important bug in your plugin and would like you to propose a modification.
I use internal linking to sections with #section, so I have a TOC at the beginnig (
….) pointing to
. With this plugin activated, this method doesn't work and pages don't scroll down.
The modifications to be done in the code in order to work:
After line 27 we have:
function SEOLinks() {
$options = $this->get_options();
if ($options)
{
if ($options['post'] || $options['page'])
add_filter('the_content', array(&$this, 'SEOLinks_the_content_filter'), 1);
if ($options['comment'])
add_filter('comment_text', array(&$this, 'SEOLinks_comment_text_filter'), 10);
}
Modify this line
to
And also, around line 300
$result=$this->SEOLinks_process_text($text, 0);
$options = $this->get_options();
$link=parse_url(get_bloginfo('wpurl'));
$host='http://'.$link['host'];
modify it to
$text = str_replace('\"',"'",$text);
$text = str_replace("\'","'",$text);
$text = str_replace('\"','',$text);
$result=$this->SEOLinks_process_text($text, 0);
$result = str_replace('\"',"'",$result);
$result = str_replace("\'","'",$result);
$result = str_replace('\"',"'",$result);
$options = $this->get_options();
$link=parse_url(get_bloginfo('wpurl'));
$host='http://'.$link['host'];
I hope this help!
BR
Antonio