vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   allow css in user profile fields (https://vborg.vbsupport.ru/showthread.php?t=77918)

Benj 03-11-2005 04:35 PM

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>

Benj 03-13-2005 08:11 AM

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.


All times are GMT. The time now is 06:23 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00977 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete