vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Hat Santa in username (https://vborg.vbsupport.ru/showthread.php?t=321033)

Manoel J?nior 12-10-2015 12:18 AM

Hat Santa in username
 
Does anyone know make this change to put a hat on the user's name?

https://vborg.vbsupport.ru/external/2015/12/29.png

Dave 12-10-2015 09:29 AM

It's just a matter of setting a background image.
Something like: background: url(urltosantahat.png) no-repeat 1px;

Cody.9791 12-10-2015 07:15 PM

Quote:

Originally Posted by Dave (Post 2560099)
It's just a matter of setting a background image.
Something like: background: url(urltosantahat.png) no-repeat 1px;

I was browsing this site and came across this thread and that's something that I'd like to do with my site as well. What would need modified for something like that to appear on the site by the usernames? I'm assuming in the template area?

MarkFL 12-10-2015 07:21 PM

Quote:

Originally Posted by Cody.9791 (Post 2560150)
I was browsing this site and came across this thread and that's something that I'd like to do with my site as well. What would need modified for something like that to appear on the site by the usernames? I'm assuming in the template area?

I'm thinking it would be easier to do with plugins (one for each area in which the image is to be added). The existing usernames could be then wrapped with the appropriate HTML. :)

Dave 12-10-2015 07:22 PM

It's done by an addition to the additional.css template.
I can't tell you the exact CSS code for it since each style is different, I need a URL to the forum for that.

Manoel J?nior 12-10-2015 07:51 PM

I'm trying to do but to no avail, something like a plugin with Mark said would exelente. It would be possible?

MarkFL 12-10-2015 07:56 PM

Quote:

Originally Posted by Manoel J?nior (Post 2560161)
I'm trying to do but to no avail, something like a plugin with Mark said would exelente. It would be possible?

It would likely be more efficient to use CSS as Dave suggested, using CSS class selectors. If you wish to upload an image, I would be willing to give it a shot later tonight. I am about to log off for a few hours now. :D

Manoel J?nior 12-10-2015 08:07 PM

Of course my friend :D

https://vborg.vbsupport.ru/external/2015/12/26.png

Lol waiting for this :)

MarkFL 12-10-2015 10:55 PM

Quote:

Originally Posted by Manoel J?nior (Post 2560165)
Of course my friend :D

https://vborg.vbsupport.ru/external/2015/12/26.png

Lol waiting for this :)

Okay, I have it working, so just let me know all of the places you want the hat to appear...on my local dev site, I have it working in postbits, profile page and visitor messages...but it's just a matter of adding the classes to the selector. :)

Manoel J?nior 12-12-2015 11:35 AM

Quote:

Originally Posted by MarkFL (Post 2560173)
Okay, I have it working, so just let me know all of the places you want the hat to appear...on my local dev site, I have it working in postbits, profile page and visitor messages...but it's just a matter of adding the classes to the selector. :)

These you have commented was excellent !!


All times are GMT. The time now is 11:34 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.01636 seconds
  • Memory Usage 1,734KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete