10-25-2014, 08:46 AM
I have just updated mybb and lost some templates so i have to try and redo what i did, since i cant find my backup
so logic wise it would be,
if forum id = "7" then > do this
if forum id = "8" then > do this
Else > do this
i cant rememeber how the hell i did it before can anyone help
i did find this using google
<if in_array($thread['fid'], array(1,4,22)) then>
code
<else>
code
</if>
But it does not work the way i need, as i need each forum id to do something else, and then have the single else statement at the bottom.
And in case your wondering why, i have a single forum forum, with a hidden subscriber forum and a hidden staff forum, and i would like to be able to click the banner at the top and have it redirect me to somewhere different depending on which forum i am viewing.
so logic wise it would be,
if forum id = "7" then > do this
if forum id = "8" then > do this
Else > do this
i cant rememeber how the hell i did it before can anyone help
i did find this using google
<if in_array($thread['fid'], array(1,4,22)) then>
code
<else>
code
</if>
But it does not work the way i need, as i need each forum id to do something else, and then have the single else statement at the bottom.
And in case your wondering why, i have a single forum forum, with a hidden subscriber forum and a hidden staff forum, and i would like to be able to click the banner at the top and have it redirect me to somewhere different depending on which forum i am viewing.