![]() |
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:
|
Perhaps try this:
PHP Code:
|
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. |
What is not working, the link, the replace, or all of it?
|
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.
|
Yeah that is curious, what hook were you using, so if I ever get board I can play around.
|
<i>parse_templates</i>, which is working for other str_replace functions I have in the same plugin.
|
All times are GMT. The time now is 12:53 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:
|