PDA

View Full Version : Create a conditional for different views of forumhome?


jilly
Tue 29th Jan '08, 11:29pm
In my old version of vb, 3.5.4, when you view forumhome, each category shows all the forums under it in a long list. When I upgrade it to 3.7, I am going to switch it to using the compressed view, where the subforums show up as the mini icons and the forum home display does not stretch on forever. However I have some users that will prefer the 'classic' view, and not the new compressed sub forum look. How can I make it an option in user cp for them to choose the 'classic' layout or the 'new' compressed layout?

Onimua
Tue 29th Jan '08, 11:32pm
Can you not make a seperate child/new style with that change?

jilly
Wed 30th Jan '08, 12:38pm
Can you not make a seperate child/new style with that change?
I don't know - the issue with that would be we have a lot of different styles, and I woul;dn't want it tied specifically to the style, bcause I'd have to create too many extra styles to have the old and new version of each style..

Lynne
Wed 30th Jan '08, 1:18pm
I don't know - the issue with that would be we have a lot of different styles, and I woul;dn't want it tied specifically to the style, bcause I'd have to create too many extra styles to have the old and new version of each style..
But, if it's just a child style, then all you have to do is modify a couple of the forum_home templates for it and leave the other templates alone. Then, it will just inherit all the templates from the parent style. So, if you later change the postbit in the parent, it will automatically be changed in the child style also.