Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Some help with this if statement is appreciated
Ukshep Offline
Junior Member
**
Posts: 9
Joined: Oct 2014
Post: #1
Some help with this if statement is appreciated
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 Frown

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 Frown 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.
(This post was last modified: 10-25-2014 09:26 AM by Ukshep.)
10-25-2014 08:46 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Some help with this if statement is appreciated - Ukshep - 10-25-2014 08:46 AM

 Standard Tools
Forum Jump: