View Full Version : Template Conditions
rabbits slayer
10-25-2007, 04:08 PM
Hi I need help. I want my members to be able to select different page headers by selecting the choices given in the User Profile Field. If I have to modify the header template, how will I do that? Thanks.
Opserty
10-25-2007, 04:16 PM
Is it possible just to change the source of the image. For example you could do:
<img src="/path/to/header/image/folder/header_$bbuserinfo[fieldX].gif" alt="" />
Then you just match up the file names to the values of the user profile field options. It's a tiny bit complicated but its the simplest set-up once its running.
rabbits slayer
10-25-2007, 06:16 PM
Hey thanks, I can actually make use of that too. The thing is that I want to change the header layout style completely, not just the the image. Is there another way?
Opserty
10-25-2007, 07:20 PM
How about just setting up new styles or Child styles instead. It would be far easier to manage that way.
rabbits slayer
10-27-2007, 02:41 AM
It has to be selected through User Profile Field. If I were to use "If" condition, would it work? And if someone can guide me. Thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.