Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BBtoNuke Mods
Author Message
VinDSL
Life Cycles Becoming CPU Cycles



Joined: Jul 11, 2004
Posts: 614
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com

PostPosted: Tue Jul 19, 2005 9:15 pm Reply with quote

I don't know about you, but here's an 'improvement' to phpBB I personally didn't care for...

Quote:
l.iii. Changes since 2.0.13
Hardened author and keyword search a bit to not allow very server intensive searches


I constantly use 'search' by placing an asterisk in the author field, clicking on "1 day", "view as posts", and "all available".

Before 2.0.13 I used to be able to see all the posts for the day in reverse chronological order, just to ensure I didn't miss seeing anything that might be interesting/important.

Why the heck did they change the allowable search parameters without making it an Admin option? *I* wasn't having a server load issue, were you?!?!?!

Anyway, I decided to reverse this nonsense...

In 'modules/Forums/search.php'

Find and delete:
Code:
            if (preg_match('#^[\*%]+$#', trim($search_author)) || preg_match('#^[^\*]{1,2}$#', str_replace(array('*', '%'), '', trim($search_author))))

            {
               $search_author = '';
            }

Code:
            if (preg_match('#^[\*%]+$#', trim($split_search[$i])) || preg_match('#^[^\*]{1,2}$#', str_replace(array('*', '%'), '', trim($split_search[$i]))))

            {
               $split_search[$i] = '';
               continue;
            }

Code:
         if (preg_match('#^[\*%]+$#', trim($search_author)) || preg_match('#^[^\*]{1,2}$#', str_replace(array('*', '%'), '', trim($search_author))))

         {
            $search_author = '';
         }


End of 'problem'... Groovy

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: VinDSL's Lenon.com | The Disipal Site ::. 
View user's profile Send private message Visit poster's website ICQ Number
sting
Involved
Involved



Joined: Sep 23, 2003
Posts: 456
Location: Somewhere out there...

PostPosted: Tue Jul 19, 2005 9:19 pm Reply with quote

There are a lot of changes in the phpbb upgrades recently that I am suspicious of. When I find proof... I will get some sleep...

-sting
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BBtoNuke Mods

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©