PDA

View Full Version : I need conditional to show code at the top of all forums pages


DamasGate
04-17-2020, 03:57 PM
Hello,

I need vb5 conditional to show some code at the top of all forums pages but NOT in topics ( to use it in module_title template )

Example:

If this is channel ( All forumdisplay pages) show this code

CODE HERE

end if


Thank you for help.

Seven Skins
04-18-2020, 08:36 AM
This may help you.

https://forum.vbulletin.com/forum/vbulletin-5-connect/vbulletin-5-connect-questions-problems-troubleshooting/vbulletin-5-support-issues-questions/4407471-convert-vb3-conditional-statement-to-vb5

DamasGate
04-18-2020, 02:45 PM
This may help you.

https://forum.vbulletin.com/forum/vbulletin-5-connect/vbulletin-5-connect-questions-problems-troubleshooting/vbulletin-5-support-issues-questions/4407471-convert-vb3-conditional-statement-to-vb5


Thank you but I need the for all channel NOT specific channel numbers.



<vb:if condition="!in_array($channel['nodeid'], array(ALL channels))">

delicjous
04-27-2020, 12:02 PM
Just check if channelid is equal to nodeid.
If it is, it's a channel.