I guess the code doesn't work for anything child level including subsections. I used $_GET and put all of my sections and subsections in an array in the vbcms, but only the top level sections will show the tab as hightlighted with the proper subnavbar below. If I click on a subsection, the correct tab stays highlighted, but the subnavbar selections disappear.
This is what I am using in the vbcms
PHP Code:
<vb:if condition="$vboptions['selectednavtab'] == 'vbcms' AND !in_array($_GET['r'], array(181,182,183,184,185,186,187,188,189,190,199,200,201,202,203,210,211,212,213,214,215,216,217,218,219,220,221,222))">
I tried using this in my tab plug-in to see if this fixed the issue
PHP Code:
if (((in_array($_GET['r'], array(181,182,183,184,185,186,187,189,190)) && (THIS_SCRIPT == 'vbcms')))
but I get this error
Parse error: syntax error, unexpected '{' in /data/22/2/56/92/2056418/user/2253608/htdocs/forumsbb/includes/class_bootstrap.php(399) : eval()'d code on line 14