The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Paul:
If somewhere to put in http://www.yourplace.com Go to my place. I want it to have only "Go to my place" (without the quotes) striping out the url. Or if they try to use < img src="http://......." > it would strip out the everything from < to >. Also, I would like to strip out any { } or [ ]. Thanks, Parker |
#12
|
||||
|
||||
I don't think there is a single vb function to do all of that - the best way would probably be to use preg_replace() with some custom regex.
|
#13
|
|||
|
|||
Paul:
Thanks. I am very much a newbee when it comes to code. Could you write up something that I could see what you are recommending done that I could expand on? Parker |
#14
|
||||
|
||||
You need someone who knows regex quite well to use my suggestion, sadly that's not me, it just gives me a bad headache.
|
#15
|
|||
|
|||
Would something like this work?
if ($userinfo['field15']) { $userinfo['field15'] = preg_replace('#(?<!<http>|<img>|<www>)#', ' ', $userinfo['field15']); } |
#16
|
||||
|
||||
PHP Code:
|
#17
|
|||
|
|||
Dismounted:
Still no go. If I put in http://www that is what shows up in the field. If I put in <http that is what shows up. Thanks, Parker |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|