To adapt the code for blocking ads in specific channels from vBulletin 4 to vBulletin 5, you'll need to make a few changes. The primary difference is in how nodes (forums) are structured in vBulletin 5. The variable [nodeid] can be used, but you also need to specify the node IDs for the specific channels you want to block ads in. Here's how you can modify the code:
Code:
<vb:if condition="!in_array($GLOBALS['nodeid'], array(5, 47, 2))">
Ads Here
</vb:if>
Make sure to replace the node IDs (5, 47, 2) with the actual node IDs of the channels where you want to block ads. This code should work in vBulletin 5 to block ads in the specified channels.