Topic Closed
fly06
263 Posts
18.4K Downloads
1 Themes
8 Plugins

A very short notice to mention that in the RunQuery() method (file special_search.php) the line:

$this->SearchBlog();

is non longer needed.

 

7 years ago#5545

fly06
263 Posts
18.4K Downloads
1 Themes
8 Plugins

Some more information.

This line of code creates duplicates with SimpleBlogSEO installed.

A solution to this problem consists in making sure that the parameters given when calling the FindString() method are the same in the (deprecated) SearchBlog() method (special_search.php) and in the BlogSearch() method (Search.php).

This is currently not the case for the third parameter (slug). 

 

 

 

7 years ago#5549

fly06
263 Posts
18.4K Downloads
1 Themes
8 Plugins

(cont.)

This line of code in the SearchBlog() method (line 404 of the special_search.php file):

$this->FindString($content, $title, $slug, '?cmd=post&id='.$id);

should be replaced by this one:

$this->FindString($content, $title, 'Special_Blog', '?cmd=post&id='.$id);

Additionally, we can also remove the question mark (?) in front of the query string (fourth parameter).

Hope this helps ;-)

7 years ago#5551

fly06
263 Posts
18.4K Downloads
1 Themes
8 Plugins

Hi Josh,

I must admit that your arguments are irrefutables.

I will have to fix this problem in the SimpleBlogSEO plugin.

No way to escape.

;-)

Edited: 7 years ago#5556

Josh S.
2K Posts
269K Downloads
16 Themes
18 Plugins

$this->SearchBlog(); was left in the code so that blog searching would work for someone who updates gpEasy but doesn't update the SimpleBlog plugin. The duplicates are removed in the ShowResults() method of special_search.php based on the url. Do you think this is something that can be worked around in SimpleBlogSEO?

 

I just updated the FindString() methods to the following:

FindString($content, $title, 'Special_Blog', 'cmd=post&id='.$id);

Sorry for the slow response

Edited: 7 years ago#5563

fly06
263 Posts
18.4K Downloads
1 Themes
8 Plugins

I just updated the FindString() methods to the following

Thanks a lot Josh! This does the trick.

Do you think this is something that can be worked around in SimpleBlogSEO?

Yes. I managed to solve this problem within the GetUrl() method.

I will keep this fix to have this problem solved in v3.5 as well.

The fix will be available in the next release v1.1.

7 years ago#5568

Topic Closed

 

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register