MyBB Hacks

Full Version: $parser-> not working?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

This piece of code used to work, but after upgrading my PHP it no longer does. I'm not sure why and was hoping for some assistance Smile

Code:
<? print $parser->parse_message(htmlspecialchars_decode($userfields['fid52']),array("allow_mycode" => 1)); ?>


PHP version:  PHP Version 7.2.26
MyBB version: 1.8.22
SQL version: MySQLi 5.6.47


PS; Is there any way to force all the $userfields to parse the MyCode? Without having to use some variation of the code above on each one?
I avoided suggesting this approach to you but the only other way would be to use a plugin.

IIRC the following plugin used to allow this:
http://mybbhacks.zingaburga.com/showthread.php?tid=1271

But I checked the code and apparently it doesn't.
https://github.com/Sama34/Additional-Set...https://github.com/Sama34/Additional-Settings-For-Custom-Profile-Fields/blob/master/Upload/inc/plugins/xt_proffields.php
Reference URL's