vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Fading credits in admincp (https://vborg.vbsupport.ru/showthread.php?t=109069)

Protoman 02-26-2006 10:00 PM

Fading credits in admincp
 
Fading vBulletin Credits

What does it do?
It makes the vbulletin credits fade in on your admincp / modcp


How is this useful?
ugh.. :rolleyes: It's really not, I just liked how it looks

How do i install it?

1. open includes/vbulletin_credits.php

search for
PHP Code:

print_column_style_code(array('white-space: nowrap''')); 

delete all lines in the file after the one above ^
2. paste this at the end of the file.
PHP Code:

?>
<tr><td class="alt1" colspan="2" align="center">
<script type="text/javascript">

/***********************************************
* Fading Scroller- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var delay = 5000; //set delay between message change (in miliseconds)
var maxsteps=30; // number of steps to take to change from start color to endcolor
var stepdelay=40; // time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(0,152,204); // start color (red, green, blue)
var endcolor=new Array(255,255,255); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div align="center" style="font: normal 14px Arial; padding: 0px;">'; //set opening tag, such as font declarations
fcontent[0]="<b>Software Developed By</b><br><br><a href='http://www.jelsoft.com/' target='vbulletin'>Jelsoft Enterprises Limited</a>";
fcontent[1]="<b>Product Managers</b><br><br><a href='http://www.vbulletin.com/forum/member.php?u=1034' target='vbulletin'>Kier Darby</a>, <a href='http://www.vbulletin.com/forum/member.php?u=1' target='vbulletin'>John Percival</a>";
fcontent[2]="<b>Business Development</b><br><br><a href='http://www.vbulletin.com/forum/member.php?u=2' target='vbulletin'>James Limm</a>, <a href='http://www.vbulletin.com/forum/member.php?u=22709' target='vbulletin'>Ashley Busby</a>";
fcontent[3]="<b>Software Development</b><br><br><a href='http://www.vbulletin.com/forum/member.php?u=1034' target='vbulletin'>Kier Darby</a>, <a href='http://www.vbulletin.com/forum/member.php?u=224' target='vbulletin'>Freddie Bingham</a>, <a href='http://www.vbulletin.com/forum/member.php?u=1814' target='vbulletin'>Scott MacVicar</a>,<br><a href='http://www.vbulletin.com/forum/member.php?u=37' target='vbulletin'>Mike Sullivan</a>, <a href='http://www.vbulletin.com/forum/member.php?u=24628' target='vbulletin'>Jerry Hutchings</a>, <a href='http://www.vbulletin.com/forum/member.php?u=42096' target='vbulletin'>Andreas Kirbach</a>";
fcontent[4]="<b>Graphics Development</b><br><br><a href='http://www.vbulletin.com/forum/member.php?u=1034' target='vbulletin'>Kier Darby</a>, <a href='http://www.meshweaver.com' target='vbulletin'>Fabio Passaro</a>";
fcontent[5]="<b>Other Contributions Provided By</b><br><br><a href='http://www.vbulletin.com/forum/member.php?u=2026' target='vbulletin'>Jake Bunce</a>, <a href='http://www.vbulletin.com/forum/member.php?u=65' target='vbulletin'>Doron Rosenberg</a>, <a href='http://www.vbulletin.com/forum/member.php?u=219' target='vbulletin'>Overgrow</a>, <a href='http://www.vbulletin.com/forum/member.php?u=2751' target='vbulletin'>Kevin \'Tubedogg\' Schumacher</a>, <a href='http://www.vbulletin.com/forum/member.php?u=5755' target='vbulletin'>Chen \'FireFly\' Avinadav</a>, <a href='http://www.vbulletin.com/forum/member.php?u=11606' target='vbulletin'>Floris Fiedeldij Dop</a>, <a href='http://www.vbulletin-germany.com/forum/member.php?u=2' target='vbulletin'>Stephan \'pogo\' Pogodalla</a>, <a href='http://www.vbulletin-germany.com/forum/member.php?u=274' target='vbulletin'>Michael \'Mystics\' K?nig</a>, <a href='http://www.vikjavev.com/hovudsida/umtestside.php' target='vbulletin'>Torstein H?nsi</a>";
fcontent[6]="<b>Copyright Enforcement Provided By</b><br><br><a href='http://www.piratereports.com/' target='vbulletin'>Pirate Reports</a>";
closetag='</div>';

var fwidth='700px'; //set scroller width
var fheight='70px'; //set scroller height

var fadelinks=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.

///No need to edit below this line/////////////////


var ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var faderdelay=0;
var index=0;


/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
  if (index>=fcontent.length)
    index=0
  if (DOM2){
    document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
    document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
    if (fadelinks)
      linkcolorchange(1);
    colorfade(1, 15);
  }
  else if (ie4)
    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
  index++
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

function linkcolorchange(step){
  var obj=document.getElementById("fscroller").getElementsByTagName("A");
  if (obj.length>0){
    for (i=0;i<obj.length;i++)
      obj[i].style.color=getstepcolor(step);
  }
}

/*Rafael Raposo edited function*/
var fadecounter;
function colorfade(step) {
  if(step<=maxsteps) {
    document.getElementById("fscroller").style.color=getstepcolor(step);
    if (fadelinks)
      linkcolorchange(step);
    step++;
    fadecounter=setTimeout("colorfade("+step+")",stepdelay);
  }else{
    clearTimeout(fadecounter);
    document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
    setTimeout("changecontent()", delay);

  }
}

/*Rafael Raposo's new function*/
function getstepcolor(step) {
  var diff
  var newcolor=new Array(3);
  for(var i=0;i<3;i++) {
    diff = (startcolor[i]-endcolor[i]);
    if(diff > 0) {
      newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
    } else {
      newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
    }
  }
  return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
}

if (ie4||DOM2)
  document.write('<div id="fscroller" style="border:0px;width:'+fwidth+';height:'+fheight+'"></div>');

if (window.addEventListener)
window.addEventListener("load", changecontent, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent)
else if (document.getElementById)
window.onload=changecontent
</script>
</html>

</td></tr>
<?php
print_table_footer
();
?>

upload the new file and you're done!


Like = Click Install :nervous:

Hornstar 02-28-2006 03:36 AM

Once it fades that it stay faded or does it come back to full strength? Or does it completely fade to nothing?

the screen shot confused me lol.

Protoman 02-28-2006 04:43 AM

the script only fades in. so, the text will start invisible and fades into view, then disappears as the next starts to fade into view

Trigunflame 02-28-2006 04:57 AM

Useless hacks have risen to an all-time new high.










*Clicks install* :)

JakeS 03-04-2006 04:55 PM

Nice mod, aint gonna use it because well, i have no use for it :P otherwize i would.

UltimateOreo! 06-07-2007 06:42 PM

Lmao, this may be one of the most useless hacks I have ever seen, although I will use this for a basis for other hacks. Thanks.


All times are GMT. The time now is 11:16 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.01129 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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