The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How this code works in vBulletin 5?
This code is for blocking ads in specific channels
He was working at vb4 <vb:if condition="!in_array($GLOBALS[forumid], array(5,47,2))"> Ads Here </vb:if> How to https://19216801.onl/ https://routerlogin.uno/https://192168ll.link/ use it with vBulletin 5 I changed [forumid] to [nodeid] but did not work I hope to find the solution Best Regards |
#2
|
||||
|
||||
Quote:
If you want to select the channel only the $page['channelid'] have to be equal to $page['nodeid'] |
#3
|
|||
|
|||
To adapt the code for vBulletin 5, you would need to make a few changes. Instead of using [forumid], you would need to use [nodeid] as you mentioned. However, you would also need to update the syntax to reflect the changes in vBulletin 5.
Here is an updated version of the code that should work in vBulletin 5: <vb:if condition="!in_array($node->nodeid, array(5,47,2))"> Ads Here </vb:if> This code checks if the node ID of the current page is not in the array of blocked node IDs (5, 47, and 2 in this example), and only displays the "Ads Here" content if the condition is true. Make sure to replace the node IDs in the array with the actual IDs of the channels where you want to block ads. You can find the node ID by going to the channel's page and looking at the URL in your browser's address bar. The node ID is the number after the last hyphen. If you have already tried this updated code and it is still not working, you may need to check your vBulletin 5 installation to ensure that it is configured correctly and that there are no conflicts with other add-ons or customizations. |
#4
|
|||
|
|||
Hii, Live The Orange Life
You can add this code for it: Code:
<vb:if condition="!in_array($GLOBALS['nodeid'], array(5,47,2))"> Ads Here </vb:if> Best regard, Tyler |
#5
|
|||
|
|||
Hello, i am new, can i ask a question?
|
#6
|
|||
|
|||
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> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|