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 - [bmw] Rainbow (Gradient) Username for Usergroups (https://vborg.vbsupport.ru/showthread.php?t=208274)

DobieGillis? 03-14-2009 12:42 PM

Quote:

Originally Posted by bodaudinh (Post 1767829)
If you want to variations in your color, you can do follow instruction below:

Edit file rainbow.js:

find Line 44:
Code:

function nickmausac(classname){
var txtValue = "";
    var b = getElementsByClassName(classname);

    for ( var i = 0; i < b.length; i++ ) {
        txtValue = colorText(b[i].innerHTML,1);
        b[i].innerHTML = txtValue;
    }
}

Change :
Code:

txtValue = colorText(b[i].innerHTML,1);
To (1 => i):
Code:

txtValue = colorText(b[i].innerHTML,i);
Result:
Code:

function nickmausac(classname){
var txtValue = "";
    var b = getElementsByClassName(classname);

    for ( var i = 0; i < b.length; i++ ) {
        txtValue = colorText(b[i].innerHTML,i);
        b[i].innerHTML = txtValue;
    }
}


works like a charm

y2krazy 03-16-2009 01:19 PM

Installed and working well. <3

~ Sean

SliceofLife 03-25-2009 04:13 AM

This one doesn't work either.

Frondy 03-25-2009 09:26 AM

It works, txnx!

To make it e.g. bold:

<span class="rainbow" style= "font-weight: bold">

Jasem 03-25-2009 11:11 PM

good job, thank you

Installed

SliceofLife 03-26-2009 12:07 AM

Nevermind my previous post! This is working brilliantly! The other one didn't work at all, but this one is working and my users are in heaven! Thanks heaps!

Hornstar 04-12-2009 10:29 PM

Is there a way to automate the template edit? that way when I upgrade I don't forget to do this. thanks.

Hornstar 04-12-2009 11:48 PM

I thought it wasnt working but then realised it just took a few extra seconds to load the rainbow affect over the username. Thanks.

pincrackergod 05-29-2009 01:58 AM

How do I : 1. Upload clientscript directory (included rainbow.js) on your server in ASCII mode??

I have FTP access, but how do I do that, just in the forum? or a specific place?

bodaudinh 05-29-2009 03:49 AM

Quote:

Originally Posted by pincrackergod (Post 1819230)
How do I : 1. Upload clientscript directory (included rainbow.js) on your server in ASCII mode??

I have FTP access, but how do I do that, just in the forum? or a specific place?

Yup! Upload folder clientscript in your forum.


All times are GMT. The time now is 02:08 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.01110 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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