vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Tips & Tricks (https://vborg.vbsupport.ru/forumdisplay.php?f=239)
-   -   Nexia's HowTo: add style to usergroups html markups (https://vborg.vbsupport.ru/showthread.php?t=213531)

nexialys 05-12-2009 10:00 PM

Nexia's HowTo: add style to usergroups html markups
 
1 Attachment(s)
You see my markup?



How did i attach an umbrella beside my name, is a mystery for many of you who are interested to make their membernames unique.

But it's quite simple when you play a little with CSS elements.

First, instead of placing all the code in your Usergroup HTML Markup, you make it easier to edit and lighter for the browser by making your markups small and quick. Write is the same way as i did, creating a new class for the style.


Remember that this detail is found when you edit your usergroups... this example is the admins one.

Then you go to your Style Manager, and edit the Main CSS of your prefered style... you go to the bottom of the page, in the "Additional CSS Definitions" and put the new class style in the SECOND field (the first one is overwritten by most of the products you can play with).

the example of my own class looks like this:
HTML Code:

.ug_admin {
font-family: "Lucida Grande", sans-serif;
font-weight: bold;
color: #800080;
background-image: url(style/umbrella.png);
background-repeat: no-repeat;
padding-left: 13px;
}

example explained:
1- i changed the family of the font to have a more ergonomical one, Lucida is great
2- made the font in bold
3- changed the color for magenta
4- to make the umbrella show everywhere, i make it the background-image, no repeat
5- i add some padding to the left so the background image is without text over it
See, it's easy. but to learn about the CSS elements is more complicated than that, and you can have a need for a tutorial... here is a great link: CSS Tutorial

have some fun designing your usergroups!

HyperActiv 05-21-2009 11:29 AM

GREAT ONE!
thanks!

plazzman 05-21-2009 12:18 PM

This is pretty awesome. And on that note, would it be possible to have a username of a banned member have a strikethrough?

Lynne 05-21-2009 02:55 PM

Quote:

Originally Posted by plazzman (Post 1814601)
This is pretty awesome. And on that note, would it be possible to have a username of a banned member have a strikethrough?

Doing that is default vbulletin and has nothing to do with this article. Just use the HTML markup in the Banned Usergroup. Hit the ? mark next to this feature in the admin cp if you need help. The css to use to strikethrough is:
Code:

text-decoration: line-through;


All times are GMT. The time now is 12:00 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01445 seconds
  • Memory Usage 1,719KB
  • 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)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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