The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Category header color and background via UserCP
How would I go about allowing the user to choose their own category header color as well as their own custom background image via profile fields located in the UserCP?
|
#2
|
||||
|
||||
You can create the profile fields and then insert css into your headinclude template
Code:
.tcat { background: $bbuserinfo[fieldFIELDIDFORCOLOR]; } |
Благодарность от: | ||
Dave Strider |
#3
|
|||
|
|||
Use advice given above, but in your header template you should put something more like
HTML Code:
<if condition="$bbuserinfo[fieldFIELDIDFORCOLOR]"> .tcat { background: $bbuserinfo[fieldFIELDIDFORCOLOR]; } </if> |
Благодарность от: | ||
Dave Strider |
#4
|
||||
|
||||
Thank you, that worked for me!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|