The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
preg_replace() issues
I'm having an issue with a thread
for example, if someone puts a < (less than symbol) in a thread, it turns a result into a link. Right now I'm using PHP Code:
I've tried using PHP Code:
I've not had to deal with preg_replace before, but I've also never seen preview issues where it turns the text into a link because of the < symbol either. Any help is appreciated. |
#2
|
||||
|
||||
Interesting. Do you have a link to an example?
Do you have any vbcode hacks installed or any custom vbcode in use? |
#3
|
||||
|
||||
I can't recreate the issue on my website (its something that someone is testing for me and I can see it there), so I don't know if its the code or if its me, but I did find a work around using < instead. I don't know why it didn't occur to me that the when using dreamweaver and using split mode the result of using < is < AND thinking back to URLs in templates changing & symbols to & the < fixed that problem. So now I have that problem fixed.
What do you mean by vbcode hacks installed or any custom vbcode in use? It's installed on my live website. I've got probably 15-20 hacks installed on the website, but nothing should conflict as I took out the plugin (it had an issue when I did use a plugin). Of course, the project I'm working on is custom code as no one has done it before. Is that what you mean? I also noticed I had to add the preg_replace to the $news['title'] to fix other issues. I can give you a link to where it is working good, but that won't do any good. I don't have the link offhand of where its corrupt. I wish I could recreate the problem that way I could show you what it does. |
#4
|
||||
|
||||
It's probably something on that persons site. If you can't recreate it anywhere else then that is the only conclusion you can come to without further evidence to the contrary.
|
#5
|
||||
|
||||
It was. Problem resolved
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|