Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 $parser-> not working?
ThistleProse Offline
Junior Member
**
Posts: 4
Joined: Sep 2019
Post: #1
$parser-> not working?
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?
(This post was last modified: 01-23-2020 04:03 PM by ThistleProse.)
01-23-2020 04:01 PM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #2
RE: $parser-> not working?
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

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
01-24-2020 02:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: