[Ayuda] Nicks de usuarios.

  • Autor Autor p'erita
  • Fecha de inicio Fecha de inicio
Estas pegando parte del código solamente, no lo pegas entero. Te falta todo esto
shimmercount=shimmercount+1; eval('var shimmerspeed' +shimmercount+ '="' +a_speed+ '"'); eval('var shimmercolor' +shimmercount+ '="' +scolor+ '"'); document.write("<b><span id='" + shimmercount + "shine'>"); </SCRIPT>

Por favor, ¿puedes poner la URL de tu foro en el perfil? Así podremos verlo y quizás encontrar por qué no te funciona.

Por cierto, ¿cual es tu versión de vBulletin y cual el estilo que estas utilizando?
 
Vbulletin 3.8.4 - Theme Black Out.

Yo pego todo el codigo , pongo "GUARDAR" y despues entro otra vez al grupo y me fijo y esta mal puesto , como que lo guarda mal. :S
 
El problema puede ser porque lo copias desde un code y no se selecciona todo el texto.

Copialo y pégalo desde aquí y dime si te pasa lo mismo.

Es demasiado raro, porque he repetido esto en varios foros y en todos funciona bien.
 


Copie todos los codigos en distintos blog de notas para ver si funcionaba y nada.

los pego de la siguiente manera.

Este al final de HEADINCLUIDE "</script>".

Insertar CODE, HTML o PHP:
<script type="text/javascript">
var rainbowcount = 0;
var glitcount=0;
var glitstring='';
var shimmercount=0;
var shimmerstring='';
var ie4 = false;
if(document.all) {
ie4 = true; 
} 
function setContent(name, value) {
var d; 
if (ie4) { 
d = document.all[name];
} else {
d = document.getElementById(name);
} 
d.innerHTML = value; 
} 
function getContent(name) {
var d;
if (ie4) {
d = document.all[name];
} else {
d = document.getElementById(name);
}
return d.innerHTML;
}
function setColor(name, value) {
var d; 
if (ie4) { 
d = document.all[name];
} else {
d = document.getElementById(name);
}
d.style.color = value; 
}
function getColor(name) {
var d;
if (ie4) {
d = document.all[name];
} else {
d = document.getElementById(name);
}
return d.style.color;
}
function toSpans(span) {
var str=span.firstChild.data;
var a=str.length;
span.removeChild(span.firstChild);
for(var i=0; i<a; i++) {
var theSpan=document.createElement("SPAN");
theSpan.appendChild(document.createTextNode(str.charAt(i)));
span.appendChild(theSpan);
}
}
function glitter(name, col, speed) {
var value = getContent(name);
while ( value.indexOf("&nbsp;", "-10") != (-1) ) {
var value = value.replace("&nbsp;", "");
};
if (value.indexOf('<span') >= 0) { return; }
var length = 0;
var str = '';
var ch;
var token = '';
var htmltag = false; 
for (i = 0; i < value.length; i++) {
ch = value.substring(i, i+1);
if (i < value.length - 1) { nextch = value.substring(i+1, i+2); } else { nextch = ' '; }
token += ch;
if (ch == '<' && '/aAbBpPhHiIoOuUlLtT'.indexOf(nextch) >= 0) { htmltag = true; }
if (ch == '>' && htmltag) { htmltag = false; }
if (!htmltag && ch.charCodeAt(0) > 30 && ch != ' ' && ch != '\n') { 
str += '<span id="' + name + '_' + length + '">' + token + '</span>';
token = '';
length++;
}
}
setContent(name, str);
glitcommand = 'glitterloop(\'' + name + '\', ' + length + ', 0, 1, \'' + col + '\', ' + speed + ')';
setTimeout(glitcommand , speed);
}
function shine(name, col, speed) {
var value = getContent(name);
while ( value.indexOf("&nbsp;", "-10") != (-1) ) {
var value = value.replace("&nbsp;", "");
};
if (value.indexOf('<span') >= 0) { return; }
var length = 0;
var str = '';
var ch;
var token = '';
var htmltag = false; 
for (i = 0; i < value.length; i++) {
ch = value.substring(i, i+1);
if (i < value.length - 1) { nextch = value.substring(i+1, i+2); } else { nextch = ' '; }
token += ch;
if (ch == '<' && '/aAbBpPhHiIoOuUlLtT'.indexOf(nextch) >= 0) { htmltag = true; }
if (ch == '>' && htmltag) { htmltag = false; }
if (!htmltag && ch.charCodeAt(0) > 30 && ch != ' ' && ch != '\n') { 
str += '<span id="' + name + '_' + length + '">' + token + '</span>';
token = '';
length++;
}
}
setContent(name, str);
shinecommand = 'shineloop(\'' + name + '\', ' + length + ', 0, 1, \'' + col + '\', ' + speed + ')';
setTimeout(shinecommand , speed);
}
function RainbowSpan(span, hue, deg, brt, spd, hspd) {
this.deg=(deg==null?360:Math.abs(deg));
this.hue=(hue==null?0:Math.abs(hue)%360);
this.hspd=(hspd==null?3:Math.abs(hspd)%360);
this.length=span.firstChild.data.length;
this.span=span;
this.speed=(spd==null?50:Math.abs(spd));
this.hInc=this.deg/this.length;
this.brt=(brt==null?255:Math.abs(brt)%256);
this.timer=null;
toSpans(span);
this.moveRainbow();
}
RainbowSpan.prototype.moveRainbow = function() {
if(this.hue>359) this.hue-=360;
var color;
var b=this.brt;
var a=this.length;
var h=this.hue;
for(var i=0; i<a; i++) {
if(h>359) h-=360;
if(h<60) { color=Math.floor(((h)/60)*b); red=b;grn=color;blu=0; }
else if(h<120) { color=Math.floor(((h-60)/60)*b); red=b-color;grn=b;blu=0; }
else if(h<180) { color=Math.floor(((h-120)/60)*b); red=0;grn=b;blu=color; }
else if(h<240) { color=Math.floor(((h-180)/60)*b); red=0;grn=b-color;blu=b; }
else if(h<300) { color=Math.floor(((h-240)/60)*b); red=color;grn=0;blu=b; }
else { color=Math.floor(((h-300)/60)*b); red=b;grn=0;blu=b-color; }
h+=this.hInc;
this.span.childNodes[i].style.color="rgb("+red+", "+grn+", "+blu+")";
}
this.hue+=this.hspd;
}
function shineloop(name, length, ind, delta, col, speed) {
var next = ind + delta;
if (next >= length) { delta = delta * -1; next = ind + delta; }
if (next < 0) { delta = delta * -1; next = ind + delta; }
setColor(name + '_' + ind, getColor(name + '_' + next));
setColor(name + '_' + next, col);
shinecommand = 'shineloop(\'' + name + '\', ' + length + ', ' + next + ', ' + delta + ', \'' + col + '\', ' + speed + ')';
setTimeout(shinecommand , speed);
}
 
function glitterloop(name, length, ind, delta, col, speed) {
var new_spd = Math.floor(Math.random()*31);
var new_spd = (new_spd - 15);
var new_spd = (new_spd + speed);
var next = Math.floor(Math.random()*(length+1));
if (next >= length) { delta = delta * -1; next = (-1); }
if (next < 0) { delta = delta * -1; next = 1; }
setColor(name + '_' + ind, getColor(name + '_' + next));
setColor(name + '_' + next, col);
glitcommand = 'glitterloop(\'' + name + '\', ' + length + ', ' + next + ', ' + delta + ', \'' + col + '\', ' + speed + ')';
setTimeout(glitcommand , new_spd);
}
</script>

Este al final de "Footer" </if>".

Insertar CODE, HTML o PHP:
<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>

Y esto de la siguiente manera.

Etiquetado HTML: Primer solapa
Insertar CODE, HTML o PHP:
<font color="#0000FF" style="font: Arial"><SCRIPT language="JavaScript">var scolor='#FFFFFF'; var a_speed='80'; var shimmercount=shimmercount+1; eval('var shimmerspeed' +shimmercount+ '="' +a_speed+ '"'); eval('var shimmercolor' +shimmercount+ '="' +scolor+ '"'); document.write("<b><span id='" + shimmercount + "shine'>"); </SCRIPT>

Segunda solapa :
Insertar CODE, HTML o PHP:
</span></b></font>
 
El problema parece ser que no se copia todo el texto en el Etiquetado HTML y no se me ocurre por qué puede ser.

Por cierto ¿cuál es tu foro?
 
Perdon pero prefieron no hacer mi foro publico :O por temas de vb 😛.

El codigo lo copio y pego bien , el tema es que cuando guardo y vuelo a entrar es como que lo pega mal :S.

EDIT: No es solo mi foro en 2 foros me pasa los mismo , esta seguro que los codigos van bien al final ¿o van antes de que termine algun codigo?
 
El primer código puede ir tanto al final de headinclude como al principio de header, el segundo código debe ir al final de la plantilla footer, pero eso no influye para que no se copie el código en el Etiquetado HTML.

En todas las pruebas que he hecho y han sido varias, no he tenido ese problema. La única cosa que se me ocurre es que en usergroup.php estuviera limitado el numero de caracteres a escribir en ese campo, pero eso es muy extraño.

Si pones la URL de tu foro en tu perfil, no se hace pública. Solo la vemos los miembros del Staff.

Si te ocurre en otros foros, puede ser porque estas utilizando los mismos archivos de vBulletin y ahí es donde puede estar el problema.
 


Y como veo / Modifico eso?.
 
Antes de ponerte a trastear con los archivos, ve al admincp -> Mantenimiento -> Diagnóstico -> Versiones de Archivos Sospechosas y mira cuál es el resultado.
 
Evidentemente tu vBulletin es nulled y ello es el causante de todos esos errores que te aparecen y de algunos otros que te pueden surgir en el futuro. Sobre todo la falta de seguridad.

No tiene sentido, ni oportunidad, seguir intentando solucionar lo de los colores. Cuando tengas un vBulletin con licencia,seguro que se soluciona solito.
 
Enlace eliminado tu crees que se podría poner el tuto de los nick en la zona de tutoriales 🙂

Derrepente mas gente lo esta buscando.

Saludos
 
Déjame que mire si encuentro quien es el autor de esta modificación y luego lo ponemos.

Alguien ha debido idearlo y es justo reconocer su autoría.