The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
str_replace Question That Seems REALLY Familiar
It's 5:30 in the morning. I slept for about three hours in my daughter's bed making sure she stopped jumping up like a prairie dog and yelling at the night light. (Don't ask. It's something she does. On school nights.) So I'm not sure why my plugin isn't working.
[minicode]parse_templates[/minicode] PHP Code:
|
#2
|
||||
|
||||
Perhaps try this:
PHP Code:
|
#3
|
||||
|
||||
Thanks. This doesn't appear to work for me, either. I suppose I could replace the link a bit at a time, but that seems messy (not to mention gives me weird looking templates.) So I guess it isn't just conditionals and line breaks that are a problem with str_replace.
Thank you for bearing with my 5AM silliness. |
#4
|
||||
|
||||
What is not working, the link, the replace, or all of it?
|
#5
|
||||
|
||||
It's not replacing the link. I am curious as to why that doesn't work, but I went ahead and replaced the link in a couple of parts, instead of all at once.
|
#6
|
||||
|
||||
Yeah that is curious, what hook were you using, so if I ever get board I can play around.
|
#7
|
||||
|
||||
<i>parse_templates</i>, which is working for other str_replace functions I have in the same plugin.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|