Log in

View Full Version : Condition for parent forum id?


007
10-20-2005, 04:56 PM
I'm looking to write a condition where if a forum has a top level parent forum it will display differently on forumhome.

Is this possible?

Say for example.

-Forum A
--General
---DVDs

-Forum B
--Help
---Answered

I need DVDs to display differently than Answered.

Thanks for any suggestions. :)

~007

Marco van Herwaarden
10-20-2005, 09:11 PM
Hmm i don't really understand you. Both DVDs & Answered dont have a top level as parent.

007
10-21-2005, 02:20 AM
Well I know, that's what I am trying to figure out how to write into a conditional.

So, if the highest parent forum = Forum A, execute condition, else, do not execute.

So Since DVD's is under General, which is Under Forum A, the condition would apply to it.

Does that make sense? Thanks for the help. :)

Andreas
10-21-2005, 02:32 AM
Well, the key is parentid - now the question is which array it is in ;)
In which Template do you want to use the condition?

007
10-24-2005, 09:57 PM
I'm looking to use it in 4 templates that start with forumhome_forumbit_ . :)