Getting the post author user_id in a custom bbcode with Callback

L

Lee

Guest
Member
I have the following code:

PHP:

Code:

Code:
public static function renderChar(array $children, $option, array $tag, array $options, AbstractRenderer $renderer)
    {
        $output = trim($renderer->renderSubTree($children, $options));

        $charCode = \XF::visitor()->Profile->custom_fields->CharCode;

            return $renderer->wrapHtml(
            '<div style="color: ' . $charCode . '">',
            $output,
            '</div>'
        );
    }
I am looking to get the user entity...

Read more

Continue reading...
 
BlackSpigot General Chat
Rules Help Users
    F @ faddas: Hey guys feel free to add pink_kuromi on discord if you need anything ✨ Can you accept me on...
    Top