vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - Rainbow (Multicolour) Username for Usergroups (https://vborg.vbsupport.ru/showthread.php?t=204838)

n.sinha.p 02-09-2009 10:00 PM

Rainbow (Multicolour) Username for Usergroups
 
1 Attachment(s)
Info:
  • Rainbow effect (Multicolour) for Usernames

This simple hack enables to display usernames for any usergroup in random multicolour (rainbow) effect.

Having searched for the same effect for my board unsuccessfully where most of the modifications were for BBCodes, I came up with my own and though of sharing.

Please note that since it is based on pure HTML and JavaScript and in no way uses any BBcode of VB function/hooks, this is compatible with all versions of vBulletin.

Installation:
Time Required: 2 minutes

1. FTP rainbow.js to clientscript directory on your server in ASCII mode

2. Open headinclude template and add the following code at any reasonable place:
Code:

<script type="text/javascript" src="$vboptions[bburl]/clientscript/rainbow.js"></script>
3. Open footer template and add the following code at the bottom:
Code:

<!-- rainbow text initialize -->
<script type="text/javascript">
<!--
rain();
//  End -->
</script>
<!-- rainbow text end -->

4. Open the Usergroup Manager throug ACP and edit the desired user group.

5. Put start tag as:
Code:

<span class="rainbow">
6. Change the end tag to be:
Code:

</span>
You're Done! Enjoy!!

Versions:
v1.0 - 10 February 2009
- Rainbow text effect for usernames

I may think of creating a plugin for this if I get time and people ask for it. But for now it is pretty simple and I would prefer having a hack rather than going for a plugin which would increase the load on your board's performance.

A Note: If you are using vbshout.. the effect will not show in the AJAX area. However, it will still display the usernames in the AJAX area and the rainbow effect will be available in shoutbox archive.

:up:Added & hidden bonus is that you can use this hack anywhere where you can use HTML code.. in almost any area you can think of!

kellyandmark04 02-10-2009 12:56 AM

Nice first installed!!

n.sinha.p 02-10-2009 01:02 AM

Many Thanks! If it is working for you.. would you mind posting your board's URL so that other's can see also?

dreads 02-10-2009 03:04 AM

Thats very unique and cool, thanks

you can use this also for forum categories

dai-kun 02-10-2009 04:21 AM

Hm... it would be cooler if it has a gradient animation effect :)

I like it but it looks too bright on my white background so can hardly see... :(

n.sinha.p 02-10-2009 04:26 AM

Quote:

Originally Posted by dreads (Post 1739335)
Thats very unique and cool, thanks

you can use this also for forum categories

You can use it anywhere if you can use HTML code. It's just about enclosing the required text into span! :)

Quote:

Originally Posted by dai-kun (Post 1739385)
Hm... it would be cooler if it has a gradient animation effect :)

I like it but it looks too bright on my white background so can hardly see... :(

No worries! I'll come up with the hack that you require shortly. :up:

dai-kun 02-10-2009 04:53 AM

^ Thanks, that'll be so awesome :)

RobbieZ 02-10-2009 07:09 AM

Looks pretty kewl :)

n.sinha.p 02-10-2009 10:34 AM

Quote:

Originally Posted by RobbieZ (Post 1739506)
Looks pretty kewl :)

Ah! Thank you! It's just that I came up for my board and thought of sharing! :D

michi123 02-11-2009 11:51 AM

nice mod dude! how can i change the colors to my liking?


All times are GMT. The time now is 03:20 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.03167 seconds
  • Memory Usage 1,736KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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