How to detect in overall_header template that on the page is displayed L_NO_TOPIC?
I had the same issue with ads on login pages and I found this solution:
Code: Select all
<!-- IF SCRIPT_NAME != "ucp" -->
// ads HTML code
<!-- ENDIF -->
Code: Select all
<!-- IF SCRIPT_NAME != "ucp" -->
// ads HTML code
<!-- ENDIF -->
You cannot.
This is correct. If your ads are in viewtopic, rather than the header, you would not be having this problem. The "No topic" error you are seeing is not displaying the viewtopic_body template, so it would not show your ads.janus_zonstraal wrote: ↑Thu Apr 19, 2018 11:11 am Don't put the ads in the header!!
See:
viewtopic.php?f=46&t=2133053#p13013518