View Full Version : allow css in user profile fields
could i do this so my users could customise there profile page ??
sabret00the
03-11-2005, 06:04 PM
you could just edit the template and put <style>$userinfo[fieldXX]</style> anywhere :)
deathemperor
03-12-2005, 01:56 AM
<style> isn't a tag for <body>, it can only be used in the <head> to define the css. If you want to use style in <body> then you can put it in either <div style=""></div> or in <span> all the tag like <table> or <hr /> supports 'style'. My recommend is <div style="">$userinfo[fieldXX]</div>
so just add a custom profile field ?? then use the code you specified... is there anything special i need to set to allow <style> codes in the custom field ?
deathemperor
03-13-2005, 01:20 PM
I said <style> is not a valid tag for <body>
and yes just add a custom field and use <div style="">$userinfo[fieldXX]</div>, of course you specify 'style' as your need, something like color:red
then put that code where you want it to be displayed. If $userinfo[fieldXX] doesn't work then $bbuserinfo[fieldXX].
But I think sabret00the drove me far away from your question.
For the 1st question:
it's like using multi styles. You will need a hack to redefine the css, then make it seleteable for users.
but why this ? I think you can install multi styles then your users will have more selection for their profile page.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.