MyBB Community Forums

Full Version: Hiding things in USER-CP based on previous selection
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey Hey 

I am currently working on my user cp and have split the profile fields into different pages. Each of the areas now has its own link and it all works perfectly.

Now though, I'd like to hide/show some of these links based on what you've selected in a specific profile panel that's accessible to all.

My menu roughly looks like this:

- General
-- ABC (hidden)
-- DEF (hidden)
-- GHI (hidden)
- Anything

If you now select the value Y in Field X under General, the link for ABC should be visible after saving. Basically, an if query should be enough for this, but I have no idea how I can address individual, specific profile fields... if that even works at all.

Maybe someone has an idea or solution.


Thank you <3
Solution is found. 

Used the following for a simple if code and it works just fine!

$mybb->user['fidX']