The website is for sale. Check here for more information.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.
str_replace
#1
Hi,

I have something like that


PHP Code:
$message str_replace(' twist'' <a href="http://www.slotstrana.com/?track=NTgyOjE">Twist</a>'$message); 

why this code replace twist in this message, i dont wont replace in links and img


Code:
[url=http://www.slotstrana.com/?track=NTgyOjE][img]http://i1208.photobucket.com/albums/cc363/FAZIII1/twists_zps93e003ec.png[/img][/url]
Reply
#2
Hi,

I didn't understand your issue very clear. Please try to explain it better.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#3
i wont replace all "twist" in message but not in url and image links
Reply
#4
Well, you'll need to use preg_replace to do that. You need to use a regular expression to replace in all entries BUT urls and images.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply





Users browsing this thread: 1 Guest(s)

About MyBB-Plugins

Plug Yourself into the best MyBB AddOn.

Copyright © 2009-2021 MyBB-Plugins Forums.

Statistics

  • 51,000+ Posts
  • 19,000+ Members
  • 3,600+ Threads

Impressed? For sure
Check Full Stats here