![]() |
Replacing words problem
I am trying to make something that replaces certain words:
I tried: PHP Code:
Is there another way to do this? I then tried: PHP Code:
What am I doing wrong? Or is there another way to do this? Thanks. |
Try this:
Code:
$bbcode=str_replace(trim("word"),"replacementword",strtolower($bbcode)); |
strt isn't a php function
|
*sighs*
Ooops, I did use str (which is a PHP funciton) but typed it wrong up there. Sorry. :speechless: And Amy, that still didn't work, now every post is entirely in lowercase still... :ermm: |
006, I got it.
See the text file here: https://vborg.vbsupport.ru/showthrea...threadid=50116 It has the function you need called stri_replace. Funny the things google can find for you :D Amy |
Oh, :) I saw that but I had already fixed it. I searched around here at VBorg and found it. Amazing what searching here can do for you too :) Thanks.
;) |
All times are GMT. The time now is 10:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|