Warning: The author of this contribution does not provide support for it anymore.

Tweet this topic or post

error on search - Tweet this topic or post

error on search

by Neuropass » Fri Apr 29, 2011 12:23 am

it seems that when you get to a post through a search the twitter button gets all weird with the search keyword in it.. bug? :?:
User avatar
Neuropass
Registered User
Posts: 1158
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3
Contact:

Re: error on search

by tumba25 » Fri Apr 29, 2011 11:30 am

Thanks. I have found the error, now all I need is to come up with a solution. Could you please report this in the tracker at phpbbmodders.net so it don't get forgotten?
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net
User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva
Contact:

Re: error on search

by Neuropass » Fri Apr 29, 2011 2:07 pm

done.
User avatar
Neuropass
Registered User
Posts: 1158
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3
Contact:

Re: error on search

by tumba25 » Fri Apr 29, 2011 4:03 pm

Thanks. Fix is...

Open viewtopic.php
FIND

Code: Select all

      $post_subject = htmlspecialchars(urlencode($post_subject . ': '));

REPLACE WITH

Code: Select all

      // Remove search highlight span if post subject contains the search keyword.
      $post_subject = str_replace(array('<span class="posthilit">', '</span>'), '', $row['post_subject']);
      $post_subject = htmlspecialchars(urlencode($post_subject . ': '));
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net
User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva
Contact:

Re: error on search

by Neuropass » Fri Jun 10, 2011 10:55 pm

Thx for the fix. It works great.
User avatar
Neuropass
Registered User
Posts: 1158
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3
Contact: