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)

Mellymonster 02-24-2009 03:36 AM

Quote:

Originally Posted by bodaudinh (Post 1740939)
Replace this code for rainbow.js. ^^ It'll be cool...

Code:

/**
Rainbow Text
**/
function RGB2Color(r,g,b)
{
  return '#' + byte2Hex(r) + byte2Hex(g) + byte2Hex(b);
}

function byte2Hex(n)
{
  var nybHexString = "0123456789ABCDEF";
  return String(nybHexString.substr((n >> 4) & 0x0F,1)) + nybHexString.substr(n & 0x0F,1);
}


function colorText(str,phase)
{
        var result="";
  if (phase == undefined)
    phase = 0;
  center = 128;
  width = 127;
  frequency = Math.PI*2/str.length;
  for (var i = 0; i < str.length; ++i)
  {
    red  = Math.sin(frequency*i+2+phase) * width + center;
    green = Math.sin(frequency*i+0+phase) * width + center;
    blue  = Math.sin(frequency*i+4+phase) * width + center;
    result += ( '<font color="' + RGB2Color(red,green,blue) + '">' + str.substr(i,1) + '</font>');
  }
  return result;
}

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;
    }
}

Use same as this mod...
Code:

<span class="rainbow">
add to footer//
Code:

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

>> http://mytam.info/forum/member.php?u=50973
https://vborg.vbsupport.ru/external/2009/02/22.jpg

I have same as ideas by my sister, she asked me take her nickname has rainbow color... ^^

I would love to use this, but its not working correctly.

Mellymonster 02-25-2009 12:38 AM

Ok I got the above to work, but now I'm having a problem with some of my members names does not catch it... Any idea what can be causing this?

n.sinha.p 02-25-2009 06:00 AM

Quote:

Originally Posted by Mellymonster (Post 1753789)
Ok I got the above to work, but now I'm having a problem with some of my members names does not catch it... Any idea what can be causing this?

Did you use the js file I supplied or the one supplied by bodaudinh? If it is the code given by Bodaudinh, then sorry I do not own the code and hence would not be able to support. Try sending a PM to him. If it is about the code that I've posted, let me know the exact problem and I'll try to resolve it.

celikforum 02-25-2009 11:42 AM

1 Attachment(s)
my problemm

DannyC55 02-26-2009 01:44 AM

Users using IE are saying it doesn't work for them. It comes up undefined....
Please sort this.

Neptun 02-26-2009 05:16 PM

i have a problem with this hack

i installed everything like in the description ... but aber i change the tag in the usergroup

-> instead of the username is there "undefinedundefinedundefinedundefinedundefined "

what is going wrong or where is the probleme ?!


in IE i have the big problem - in firefox it works fine - what i have done wrong ?! :((((

DobieGillis? 02-26-2009 05:24 PM

Quote:

Originally Posted by YantieDan (Post 1754831)
Users using IE are saying it doesn't work for them. It comes up undefined....
Please sort this.

it's an IE killer....

DobieGillis? 02-26-2009 05:25 PM

Quote:

Originally Posted by Neptun (Post 1755396)
i have a problem with this hack

i installed everything like in the description ... but aber i change the tag in the usergroup

-> instead of the username is there "undefinedundefinedundefinedundefinedundefined "

what is going wrong or where is the probleme ?!


in IE i have the big problem - in firefox it works fine - what i have done wrong ?! :((((

nothing, it just doesn't work with IE...I uninstalled it

Neptun 02-26-2009 05:41 PM

has the coder no idea to fix the problem ?!

n.sinha.p 02-28-2009 12:49 PM

This is not compatible with usergroup legend hack.. I am working on making it a full blown mod so that it would change all the required templates.


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