Trying to get my sidebar banner to work on RM. It works fine on portal/forum home (for all) and threadview (for guests) using the expression in the picture on a resource page that has no discussion thread associated with it, the banner will show since it has no discussion button https://www.quantnet.com/resources/university-of-minnesota-financial-mathematics-program.21/ University of Minnesota Financial Mathematics program The Master of Financial Mathematics ( MFM) program at the University of Minnesota (UMN) is part of MCFAM (Minnesota Center for Financial and Actuarial Mathematics) within the School of... quantnet.com On resources that have discussion thread, it will disappear. https://www.quantnet.com/resources/stevens-institute-of-technology-financial-engineering-program.20/ Stevens Institute of Technology Financial Engineering program Stevens Institute of Technology has been a rapidly rising leader in business education, ranking #14 for value for its business master's programs by the Georgetown University Center on Education... quantnet.com I can remove the empty($thread) but then the banner will disappear on forum home and xenporta portal.
So it works correctly but for resource with an associated thread, it applied the rule for thread_view (because $thread variable is found). You can try this: PHP: empty($thread)OR !empty($resource)OR $visitor['user_id'] == 0 Hope this helps.
You forgot the condition on the last line PHP: empty($thread)OR !empty($resource)OR $visitor['user_id'] ==0