Hi, I've tried editing the "bdmedal_message_medals" template, so that I can stop the medals showing to non members. I've tried using the "<xen:if is="{$visitor.user_id}">" conditional, however it appears that {$visitor.user_id} isn't available. Am I doing something wrong or is there another way to do this? Cheers
When I use it to replace all the template as below, it never shows anything for the guest or members: Code: <xen:if is="{$visitor.user_id}"> $0 </xen:if> Also, if I use "{xen:helper dump, $visitor}" it never shows anything other than "null". It seems as if I can't use the global visitor variables in this template for some reason. Is there a fix or a way around it?
Thanks for the quick reply . Do you happen to know what I could add to the addon file to do this, as I'm not much of a coder .
You can do this in file library/bdMedal/Listener.php, find PHP: $positionInPost = XenForo_Application::get('options')->get('bdMedal_positionInPost'); Add below: PHP: $hookParams = $template->getParams() + $hookParams;