Google+

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Username animat
#1
1- Mergi in AdminCP >>> Templates >>> Tema ta>>> Ungrouped Templates >>> headerinclude >>> și adăugați următorul cod:

PHP Code:
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/midori_rainbow_username.js"></script> 

2. Acum, du-te in template-ul "footer" și inserați acest cod la capăt.

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<SCRIPT language="JavaScript">
while(shimmercount>0) {
   var shimmerstring=shimmercount+ 'shine';
   eval('var colcon= shimmercolor' +shimmercount);
   eval('var shimspeed="shimmerspeed' +shimmercount+ '"');
   eval('var shimcolor="' +colcon+ '"');
   shine(shimmerstring, shimcolor, shimspeed);
   var shimmercount=shimmercount-1;
};
while(glitcount>0) {
   var glitstring=glitcount+ 'glitter';
   eval('var colcon= glitcolor' +glitcount);
   eval('var glitspeed="glitspeed' +glitcount+ '"');
   eval('var glitcolor="' +colcon+ '"');
   glitter(glitstring, glitcolor, glitspeed);
   var glitcount=glitcount-1;
};
while(rainbowcount>0) {
    eval('var rain'+rainbowcount+'=document.getElementById("rain'+rainbowcount+'");');
    eval('var rainbowspanning'+rainbowcount+'=new RainbowSpan(rain'+rainbowcount+', 0, 360, 255, 50, 348);');
    eval('rainbowspanning'+rainbowcount+'.timer=window.setInterval("rainbowspanning'+rainbowcount+'.moveRainbow()", 50);');
    var rainbowcount=(rainbowcount-1);
};


</script> 

3. Următorul cod este de a oferi unui anumit grup animatia "curcubeu"
Mergi in AdminCP>>> Users & Groups >>>Groups >>> grupul dorit>>>Option>>Edit user group>>Username Style -----> Si adauga aceasta:

PHP Code:
<span style="font-weight: bold; color:#27A727;"><i><SCRIPT language="JavaScript">var rainbowcount=(rainbowcount+1); document.write("<span id='rain"+rainbowcount+"'>"); </SCRIPT>{username}</i></span> 

4. Încărcați "midori_rainbow_username.js" în directorul "jscripts" din FTP.
Download fisier.
Tutorial tradus de adiXM.

Sursa: mybb.com
Reply
#2
Ar trebui sa pui si o imagine sa vedem ce iese :p
[Image: logo1.png]
Reply
#3
Super tare
Reply
#4
La Username Style cand vreau sa introduc codul imi apare urmatoarea eroare:


The following errors were encountered:

You can't use script, meta or base tags in the username style.
Pentru a mentine un forum unitar si pentru a utiliza informatia intr-un numar cat mai mic de subiecte, va rugam ca inainte de a deschide o Discutie Noua sa folositi functia Cautare (Search) !
Cititi periodic
Regulamentul
Reply
#5
Se pare ca doar pe versiune mybb 1.6.12 merge!
It always seems impossible until its done.


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)