03-18-2015, 09:59 AM
03-18-2015, 05:03 PM
Well, have you tried?
03-19-2015, 06:00 AM
Neither of these worked:
Actually, I can't get any str_replace function to work.
Code:
|
Code:
|
Actually, I can't get any str_replace function to work.
03-20-2015, 01:15 PM
Your first example won't work, because the <func> shortcut only works with single argument functions.
However, your second example works fine for me.
However, your second example works fine for me.
Code:
|
Above prints "PS4"
03-20-2015, 11:11 PM
Strange. I have the above in my memberlist_user template and it outputs nothing. Any ideas?
03-21-2015, 09:43 AM
Install a completely fresh version of MyBB and see if you can reproduce the problem. If so, post step by step instructions on how to make it fail.
03-21-2015, 11:47 PM
(03-21-2015 09:43 AM)ZiNgA BuRgA Wrote: [ -> ]Install a completely fresh version of MyBB and see if you can reproduce the problem. If so, post step by step instructions on how to make it fail.If I have time, I'll try this.
However, I just switched from Template Conditionals to PHP in Templates and Template Conditionals and the <?=str_replace line now works.
03-22-2015, 05:59 AM
You were probably just missing the white-list txt file.
03-22-2015, 11:01 AM
(03-22-2015 05:59 AM)Sama34 Wrote: [ -> ]You were probably just missing the white-list txt file.
Now I feel like an idiot.
07-08-2015, 05:01 AM
hi,
i want to use this code into a template
i want to use this code into a template
PHP Code:
|
if i use "PHP in Templates / Complex Templates" everything is ok!
if i use "Template Conditionals" nothing is happen.
my question is: is it possible to make this code work for me using "Template Conditionals"?