Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #11  
Old 22nd August 2011, 18:44
CL_Utility CL_Utility is offline
Member
 
Join Date: Jul 2011
P2P
Posts: 9
Default
that picks up the single word still but not when its in a sentence
Reply With Quote
  #12  
Old 23rd August 2011, 02:55
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
I removed the blank space after the hello in preg_match and test it and it well now return true for
hello
hello all
hello!
Hello
HeLLo
But for safty It well return false for

hello <-note the blank in front

just said hello to jane and she is not happy
PHP Code:
if(strtolower($message) == 'hello' OR preg_match("/^hello(.*)/",strtolower($message),$m)) 
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #13  
Old 23rd August 2011, 11:55
CL_Utility CL_Utility is offline
Member
 
Join Date: Jul 2011
P2P
Posts: 9
Default
thanks joe, ur a legend!
Reply With Quote
Reply

Tags
206 , auto , reply , shout , torrenttrader

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 01:58. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.