Jump to content

pandailo

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

pandailo's Achievements

Member

Member (2/5)

0

Reputation

  1. how to match [b ]blabla[/u] with bold bbcode <b>blabla</b>
  2. Damn...still not solve....me headache...
  3. Thank you all for your help. PROBLEM SOLVED USING MINASE FUNCTION...THANK YOU VERY MUCH.
  4. i use space for example of "test" word result...i know there is no space using bbcode...anyway thank you for the function..i will test it out right away. tq
  5. i know what y'all trying to help but all your function is working bbcode..no problem to me also...my above function also 4 working bbcode.....my problem still remain unsolve because what i explain in this topic is mistype bbcode just as show in the example above...and to prove the mistype bbcode is working prefectly is in this forum itself. If i type [b ][u ]test[ /b][ /u] --> see the result test that is what i want, when user mistype the bbcode, the function automatically detect bold and underline bbcode like example above.
  6. your function is working but the result is empty message(no single word appear in message)..and still not solve..any way to improve it?
  7. sorry i have to make you clear on this. Actually the actual problem is like below when user type [xx][yy]testing[/xx][/yy] <-- this is mistype by user and give me parse error. So i do i solve that kind of issue?
  8. Hi all, Actually i manage to create bbcode function but there is a problem especially with user accidentally mistype the bbcode For example, if user type the bbcode like this test, it will give an parse error. How do i solve the issue Here is my bbcode function function getbbcode($text, $ses="", $filtered) { $text = htmlspecialchars($text); $text=preg_replace("/\[b\](.*?)\[\/b\]/i","<b>\\1</b>", $text); $text=preg_replace("/\[b\](.*?)\[\/u\]/i","<b>\\1</b>", $text); $text=preg_replace("/\[i\](.*?)\[\/i\]/i","<i>\\1</i>", $text); $text=preg_replace("/\[u\](.*?)\[\/u\]/i","<u>\\1</u>", $text); $text=preg_replace("/\[u\](.*?)\[\/b\]/i","<u>\\1</u>", $text); $text=preg_replace("/\[big\](.*?)\[\/big\]/i","<big>\\1</big>", $text); $text=preg_replace("/\[small\](.*?)\[\/small\]/i","<small>\\1</small>", $text); return $text; } I tried belows way to solve the issue: $text=preg_replace("/\[b\][u\](.*?)\[\/b\][\/u\]/i","<b>\\1</b>", $text); $text=preg_replace("/\[b\][u\](.*?)\[\/b\]\[\/u\]/i","<b>\\1</b>", $text); $text=preg_replace("/\[b\]/\[u\](.*?)\[\/b\]\[\/u\]/i","<b>\\1</b>", $text); but none is working. Anybody can solve the issue?
  9. it works but why preg_replace? any problem with eregi_replace? can you give a little bit explaination on your above php statement. By the way thank you for helping.
  10. yeah you have good point there but my initial stage is to detect URL base on word "dot" and follow by international domain "com", etc etc...doesnt matter how does it looks like in front. Anyway i manage to solve it partially like below.. $str = eregi_replace("([-a-z0-9!#$%&\'*+/=?^_`{|}~][^<]*)(dot[ ]*)(com|org|net|biz|mobi|mobile|0rg|c0m)", "SPAMMING ARE PROHIBITED ", $str); for temporary only but still not good enough. Anybody can help fix it more smoothly.
  11. sorry second post, im not only wanted to replace blabla dot com but also blabla d0t com, blabla d0t c0m, blabladotcom, blablad0tc0m, b l a d o t c o m and b,l,a,b,l,a,d,o,t,c,o,m can somebody help me?
  12. Hi all, i having a problem with eregi_replace below...its really NOT working... $str = eregi_replace("[-a-z0-9!#$%&\'*+/=?^_`{|}~](dot[ ]*)(com|org|net|biz|mobi|mobile|0rg|c0m)", "SPAMMING ARE PROHIBITED! ", $str); Actually if somebody try to type blabla dot com, it will replace with word SPAMMING ARE PROHIBITED but then above statement not working at all. Somebody can help
  13. Did anyone knows any chatbot quiz script that can be download?
  14. Hi all, How do i detect various user handphone number using php script?
  15. Dear all, This chat script give error "the requested page cannot be display" [attachment deleted by admin]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.