Replacements in Templates

MiricalBernd

New member
I am running a large community with about 50+ themes for single forums von vBulletin 4. All of these themes don't only reflect the color codes for the associated website, but have only parts (Footer, Header) of the associated website in them. Is this possible out of the box with Xenforo? I cannot find something like this in the demo.
 

Brogan

XenForo moderator
Staff member
There is an option to force a style for a node so yes, it's possible.

It could also be done with conditional statements and template edits.

50 styles is a lot though - rebuilds on upgrades, etc. would likely take some time.
 

MiricalBernd

New member
How do the conditional statements work?

Until now, the big work (rebuilding each and every header and footer) had to be done, when upgrading from one mayor version of vBulletin to another. Hence from vB 3 to vB 4. And of course it would be necessary from vB4 to vB5. However upgrading to a lesser version normally didn't require any work. Would that be different with Xenforo?
 

mjda

Well-known member
Put that doesn't help me with my question. I need to know, if these conditional statemens are a viable solution to my problem.

As Brogan said in the first reply, if all you're wanting to do is use a different style (theme) for each forum then, yes, you will be able to do that out of the box.
 

Brogan

XenForo moderator
Staff member
However upgrading to a lesser version normally didn't require any work. Would that be different with Xenforo?
If you have edited a template and it is changed in a later release, after upgrading you will be prompted to merge the changes you have made with the new version.

In most cases that is all that's required, so it's very easy to manage.

The conditional statements would just be part of the template edit, along the lines of if node=x then apply header x, etc.
 
Top