Back to vBulletin 3.5 Add-ons

Fading credits in admincp
Mod Version: 1.00, by Protoman

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 4
Released: 28 Feb 2006 Last Update: Never Downloads: 0
Not Supported Code Changes Is in Beta Stage  

Fading vBulletin Credits

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

How is this useful?
ugh.. 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:

Download

No files for download.

Screenshots

 


vblts.ru supports vBulletin®, 2022-2024