vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Custom Profile Field for Username HTML Mark Up (https://vborg.vbsupport.ru/showthread.php?t=285432)

DaveNGU 07-11-2012 09:05 PM

Custom Profile Field for Username HTML Mark Up
 
Anyone got an idea for how I could use a custom profile field to override the HTML mark-up of the username? I tried wrapping it with a div with an !important; but that didn't work. :p

Obviously we could use {vb:raw username} instead of {vb:raw musername} and do several conditionals for each usergroup etc. and then ones for the custom profile fields, but thats just too much. :D

Edit: Just realised I was a little unclear. I want to use several conditionals referencing a custom profile field so users can select the colour of their username.

kh99 07-11-2012 10:59 PM

Someone else was doing that same thing not too long ago. They were using a plugin on hook fetch_musername to override the markup.

Edit: here's one of the threads: www.vbulletin.org/forum/showthread.php?t=285209. It's for vb3 but I think it's the same for vb4. It's a little complicated because he was trying to cache the markups, but you don't really need to do that.


All times are GMT. The time now is 05:41 PM.

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.01130 seconds
  • Memory Usage 1,709KB
  • 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
  • (2)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