Hola gente alguien tendria un scrip navideño para que nieve dentro del foro, bueno solo eso chicos.
saluds
Bueno... aqui te dejo algo que te puede servir:
http://www.tutores.org/?codigo=1841&Efecto-copos-de-nieve-para-todos-los-navegadores-(cross-browser)
http://www.webtaller.com/construccion/lenguajes/javascript/lecciones/efecto_nieve.php
Esta buscado desde
Google Search (http://www.google.es/search?source=ig&hl=es&rlz=1G1GGLQ_ESXX258&=&q=javascript+nieve&btnG=Buscar+con+Google&meta=lr%3D)
asi k no me diras k no... ahi tienes mas links
Quote from: edyco on December 01, 2008, 11:30:20 AM
Hola gente alguien tendria un scrip navideño para que nieve dentro del foro, bueno solo eso chicos.
saluds
Yo ya había publicado hace unas semanas, puedes verlo en el siguiente mensaje.
http://www.simplemachines.org/community/index.php?topic=273943.msg1814005#msg1814005
hol
si te gusta este (http://harrypotteralive.com/) tambien te ayudo
saludos
Quote from: manfred on December 01, 2008, 05:20:14 PM
hol
si te gusta este (http://harrypotteralive.com/) tambien te ayudo
saludos
Ya tengo el scrip ese que tienes pero no lo pones en el foro ¬¬.
yo lo que hice es ponerlo en el foro y cuando quiero registrarme no me aparece la imagen en "introduce las letras mostradas en la imagen" .miren , alguna solucion ?
(http://img126.imageshack.us/img126/9049/asdasdarl3.jpg)
Quote<script type="text/javascript">
/******************************************
* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/
//Configure below to change URL path to the snow image
var snowsrc="snow3.gif"
// Configure below to change number of snow to render
var no = 10;
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "pageheight";
///////////Stop Config//////////////////////////////////
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;
if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
for (i = 0; i < no; ++ i) {
dx = 0; // set coordinate variables
xp = Math.random()*(doc_width-50); // set position variables
yp = Math.random()*doc_height;
am = Math.random()*20; // set amplitude variables
stx = 0.02 + Math.random()/10; // set step variables
sty = 0.7 + Math.random(); // set step variables
if (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
}
}
}
function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp += sty;
if (yp > doc_height-50) {
xp = Math.random()*(doc_width-am-30);
yp = 0;
stx = 0.02 + Math.random()/10;
sty = 0.7 + Math.random();
}
dx += stx;
document.getElementById("dot"+i).style.top=yp+"px";
document.getElementById("dot"+i).style.left=xp + am*Math.sin(dx)+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}
function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}
if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}
</script>
bueno
te dije muy claro que si te gustaba ese yo con mucho gusto te ayudo, yo lo tengo puesto como un mod, y en este momento no esta activado, y si lo quieres incorporar en tu foro con mucho gusto te expongo los cambios a realizar aca mismo.
Por cierto, como tu has dicho que lo has modificado tu mismo pues lo mas seguro que el error se deba a que hay problemas con el javascript del la nieve y el javascript del kapcha, ya sea que el nombre de una variable se repita o que siemple mente hay un error en el openDocumente.
Los javascript en cierta forma son un poco delicados, pues puedn afectar algunos mods y/o afectaran a algunos mods que instalaras en un futuro
saludos
Dale necesito tu ayuda, porque esto me esta volviendo loco, necesitaria ese mod el que nombras vos.
saludps
Búscate algo en JS y lo pones con el global headers and footers es lo mejor pa no editar code, así en enero lo quitas y limpio otra vez :)
No encontre ningunto tienes alguno wn ?
aaa me gusto ese de nieve me dicen que tengo que hacer para aplicarlo a mi site, y los archivos a subir o modificar.
gracias
una duda.. ese codigo del script navideño en que archivo lo copio?
mi foro es 1.1.7
Quote from: eaglecorp on December 02, 2008, 11:23:41 AM
una duda.. ese codigo del script navideño en que archivo lo copio?
mi foro es 1.1.7
index.template.php
ahi copias el otro scrip q puse yo pero te va a psar lo que me pasa a mi.
Gracias ya me funciona de maravilla.
Quote from: manfred on December 01, 2008, 05:20:14 PM
hol
si te gusta este (http://harrypotteralive.com/) tambien te ayudo
saludos
Ya tengo el primero y esta bueno, muchas gracias..
pero quiero intentar este. me dices como coloco el script?
abres
index.template.php
pegas el codigo al inicio y guardas, y acuerdate de darle antes la ruta de la imagen.
Quote from: krvger on December 02, 2008, 03:53:24 PM
abres
index.template.php
pegas el codigo al inicio y guardas, y acuerdate de darle antes la ruta de la imagen.
la cosa es el codigo xD... es que este no me han dado el codigo por eso decia..
pero gracias
hola
aca adjunto el mod que les decia, lo instalan como cualquier mod, como fue un mod que lo hice para mi web pues solo esta soportado para la version 1.1.x.
Basicamente funciona asi: lo instalas, y luego te vas a "caracteristicas y opciones" abajo encontraras tres opciones para este mod:
1. Si lo quieres habilitar, por si te aburres y no quieres que la nieve aparezca
2. Imagen para la nieve, por defecto ya trae una imagen llamada nieve.gif en la carpeta Themes/default/images/
O sea, si quieres poner otra imagen solo subes la imagen de tu gusto a esa carpeta, y en el espacio en blanco pones su nombre con su respectiva extencion (.gif, .png, .jpg)
3. El numero de bolitas de nieve que quieres que caiga, si lo dejas en blanco seria como si fuera un 0
Los idiomas soportados son:
spanish_latin-utf8
spanish_es-utf8
spanish-utf8
spanish
english-utf8
english
adjunto encontraran una imagen ilustrativa y el mod
Ah... casi se me olvida, el script de la nieve no es hecho por mi, solo lo he adaptado para que sirva al foro smf, por lo tanto el autor del script lleva cada uno de sus creditos, espero que ustedes tambien mantengan los creditos ;)
edicion numero #1:
adjunte la nueva version del mod, encontre un problema, el cual ponia cierto codigo donde no iba, a algunos si les afectaba, a otrso no. Version 1.1 esta adjunto
edicion numero #2:
arreglo en los archivos de idioma. Version 1.2 esta adjunto
saludos
esta nice gracias de nuevo ya lo baje pero por ahora dejo el que ya instale manual, ya que tambien lo aplique al MKportal, y me sale en todas partes. y no solamente en el foro.
manfred podrias hecharle una miradita a este post ya he subido mas informacion.
http://www.simplemachines.org/community/index.php?topic=277885.msg1822892#msg1822892
me dice :
3. Ejecutar Modificación ./Themes/default/languages/ModSettings.spanish_latin-utf8.php Archivo no encontrado
4. Ejecutar Modificación ./Themes/default/languages/ModSettings.spanish_es-utf8.php Archivo no encontrado
5. Ejecutar Modificación ./Themes/default/languages/ModSettings.spanish-utf8.php Archivo no encontrado
y no me aparece nada de nieve como en tu configuracion de caracteristicas.
(http://www.simplemachines.org/community/index.php?action=dlattach;topic=277837.0;attach=78291;image)
edyco que español usas?
baja de la carpeta tu-foro/Themes/default/languages el archivo ModSettings.Tu_español.php y agregale antes de ?> lo siguiente:
$txt['enableSnow'] = 'Habilitar nieve';
$txt['imageSnow'] = 'Imagen para la nieve.<div class="smalltext">Themes/default/images/</div>';
$txt['imageSnowCounter'] = 'Numero de bolitas de nieve.';
lo vuelves a subir a la misma carpeta y ya lo tendras.
Saludos.
Bueno al parecer ahora si aparece la configuracion pero cuando pongo todo no me sale la nieve
(http://img132.imageshack.us/img132/7580/noandayc8.jpg)
Alguien sabe porque ?
Si el mod no te instalo el archivo nieve.gif, debes descomprimirlo y subirlo a la carpeta Themes/default/images/.
Saludos.
Es que esta el archivo nieve.gif puesto en Themes/default/images/. nose porque nose ve.
saludos
hola edyco
asegurate que la imgen este en su directorio respectivo, pon la url de tu foro
saludos
a mi me pasa como a ti edyco,no me va y todo esta en su sitio,funciona en el default pero no en el tema que uso,fijate en las modificaciones que hace en el index.template del tema default y hazlas en el index.template de tu tema y te funcionara.
Hola, he estado mirando el paquete para adaptarlo a mi theme, he probado varias maneras, como modificando para que lo haga directamente y nada, puedes postear el codigo que hay que añadirle al theme, uso smf 1.1.7, theme SlickPro_Graphite
Quote from: 1van10 on December 06, 2008, 09:03:08 AM
Hola, he estado mirando el paquete para adaptarlo a mi theme, he probado varias maneras, como modificando para que lo haga directamente y nada, puedes postear el codigo que hay que añadirle al theme, uso smf 1.1.7, theme SlickPro_Graphite
Haz una copia del index.template de tu tema.
Instala el mod
En el index template DE TU TEMA busca esto:
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </td>';
Despues añade esto:
// INICIO DEL CODIGO DE NIEVE
// configuracion del conteo
$imageSnowCounter = $modSettings['imageSnowCounter'];
if(empty($modSettings['imageSnowCounter']))
$imageSnowCounter = 0;
// configuracion de la imagen
$imageSnow = $settings['images_url'].'/nieve.gif"';
if (!empty($modSettings['imageSnow']))
$imageSnow = $settings['images_url']. '/'.$modSettings['imageSnow']."\"";
// INICIO DE CODIGO DE NIEVE
if (!empty($modSettings['enableSnow'])){
echo '
<script type="text/javascript">
/******************************************
* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05\' by DD. This notice must stay intact for use
******************************************/
//Configure below to change URL path to the snow image
var snowsrc="'.$imageSnow,';
// Configure below to change number of snow to render
var no = '.$modSettings['imageSnowCounter'].';
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "pageheight";
///////////Stop Config//////////////////////////////////
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;
if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src=\'"+snowsrc+"\' border=\"0\"><\/a><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src=\'"+snowsrc+"\' border=\"0\"><\/div>");
}
}
}
function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top=yp[i]+"px";
document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}
function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}
if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}
</script>';
}
//FIN DE CODIGO NIEVE
Recuerda que tienes que activarlo en Administracion-----caracteristicas y opiones
Salu2
no funciona y lo he adaptado al theme, la imagen esta en su sitio y la ruta bien, esta activado desde el panel de administracion y nada, en el default si
Quote from: 1van10 on December 06, 2008, 02:10:35 PM
no funciona y lo he adaptado al theme, la imagen esta en su sitio y la ruta bien, esta activado desde el panel de administracion y nada, en el default si
las imagenes tienes que meterlas tambien en la carpeta de tu tema ,a ver si se te ha pasado themes/tutema/imagen.gif
Y en el panel de administracion tienes que decirle exactamente la imagen
Hola.
Este mod vale para la version 1.1.7.
Gracias
A mi tambien me pasa lo mismo!!!! Hize la modificacion necesaria, me fije si estaba la imagen en el theme default y en el que uso! Tambien lo active! Pero no se me ve en el theme que uso, solo en el default!!!!
Saludos! GonZa.
Quote from: toldeman on December 07, 2008, 07:13:04 AM
Hola.
Este mod vale para la version 1.1.7.
Gracias
Si.
¿Alguien sabe porque no podría funcionar?
Saludos Iván
Yo use el parser y me dio esto:
Nota: No importa si un archivo no existe en su tema (dado que será usado el archivo del tema Default).
En el archivo Themes/[your theme]/index.template.php
Busque:
<body>';
Arriba de eso, añada:
// configuracion del conteo
$imageSnowCounter = $modSettings['imageSnowCounter'];
if(empty($modSettings['imageSnowCounter']))
$imageSnowCounter = 0;
// configuracion de la imagen
if (!empty($modSettings['imageSnow']))
$imageSnow = $settings['images_url']. '/'.$modSettings['imageSnow']."\"";
// INICIO DEL CODIGO DE NIEVE
// configuracion del conteo
$imageSnowCounter = $modSettings['imageSnowCounter'];
if(empty($modSettings['imageSnowCounter']))
$imageSnowCounter = 0;
// configuracion de la imagen
$imageSnow = $settings['images_url'].'/nieve.gif"';
if (!empty($modSettings['imageSnow']))
$imageSnow = $settings['images_url']. '/'.$modSettings['imageSnow']."\"";
// INICIO DE CODIGO DE NIEVE
if (!empty($modSettings['enableSnow'])){
echo '
<script type="text/javascript">
/******************************************
* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05\' by DD. This notice must stay intact for use
******************************************/
//Configure below to change URL path to the snow image
var snowsrc="'.$imageSnow,';
// Configure below to change number of snow to render
var no = '.$modSettings['imageSnowCounter'].';
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "pageheight";
///////////Stop Config//////////////////////////////////
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;
if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src=\'"+snowsrc+"\' border=\"0\"><\/a><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src=\'"+snowsrc+"\' border=\"0\"><\/div>");
}
}
}
function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top=yp[i]+"px";
document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}
function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}
if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}
</script>';
}
//FIN DE CODIGO NIEVE
Proba haciendo eso!!!! Pero antes hace un backup del archivo!!!
Quote from: Gonzalo on December 07, 2008, 02:16:47 PM
Yo use el parser y me dio esto:
Nota: No importa si un archivo no existe en su tema (dado que será usado el archivo del tema Default).
En el archivo Themes/[your theme]/index.template.php
Busque:
<body>';
Arriba de eso, añada:
// configuracion del conteo
$imageSnowCounter = $modSettings['imageSnowCounter'];
if(empty($modSettings['imageSnowCounter']))
$imageSnowCounter = 0;
// configuracion de la imagen
if (!empty($modSettings['imageSnow']))
$imageSnow = $settings['images_url']. '/'.$modSettings['imageSnow']."\"";
// INICIO DEL CODIGO DE NIEVE
// configuracion del conteo
$imageSnowCounter = $modSettings['imageSnowCounter'];
if(empty($modSettings['imageSnowCounter']))
$imageSnowCounter = 0;
// configuracion de la imagen
$imageSnow = $settings['images_url'].'/nieve.gif"';
if (!empty($modSettings['imageSnow']))
$imageSnow = $settings['images_url']. '/'.$modSettings['imageSnow']."\"";
// INICIO DE CODIGO DE NIEVE
if (!empty($modSettings['enableSnow'])){
echo '
<script type="text/javascript">
/******************************************
* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05\' by DD. This notice must stay intact for use
******************************************/
//Configure below to change URL path to the snow image
var snowsrc="'.$imageSnow,';
// Configure below to change number of snow to render
var no = '.$modSettings['imageSnowCounter'].';
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "pageheight";
///////////Stop Config//////////////////////////////////
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;
if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src=\'"+snowsrc+"\' border=\"0\"><\/a><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src=\'"+snowsrc+"\' border=\"0\"><\/div>");
}
}
}
function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top=yp[i]+"px";
document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}
function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}
if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}
</script>';
}
//FIN DE CODIGO NIEVE
Proba haciendo eso!!!! Pero antes hace un backup del archivo!!!
Eso me da error te template
Que cosa che, yo tampoco puede!!!!
Alguien que me ayude lo he puesto y me va haciendo la modificación que diijiste man pero solo me sale en el theme default que será?
Quote from: 1van10 on December 07, 2008, 02:58:45 PM
Eso me da error te template
es que cada template es distinto.
Mira haz una cosa,pon aqui el template de tu default y el de tu tema e intento corregirtelo.
Ok, te los adjunto al post.
hola
a ver gente, este mod les va a servir en el theme default sin problemas, en eso estamos de acuerdo. Para todos aquellos que tienen problemas en el tema que ustedes usan, tienen que hacer 2 cosas:
1. hacer las modificaciones del index.template.php en su theme
2. subir la imagen nieve.gif (o cualquier otra) en la ruta de las imagenes de su thema (/foro/Themes/SU-TEMA/images/)
para el paso 1 pueden usar el package parser (esta en mi firma) y prodran ver las modificaciones que hay que hacer. Si no saben como hacer la modificacion adjuntan el archivo index.template de su theme aca y yo mismo les ayudo con la modificacion
edito #1:Quote from: 1van10 on December 08, 2008, 04:51:06 AM
Ok, te los adjunto al post.
ya los he modificado, solo reemplaza
edito #2:
adjunte la nueva version del mod, encontre un problema, el cual ponia cierto codigo donde no iba, a algunos si les afectaba, a otrso no. Version 1.1 esta adjunto
saludos
Quote from: 1van10 on December 08, 2008, 04:51:06 AM
Ok, te los adjunto al post.
Pues ya te los arregló manfred,por eso te pedia que los publicaras por si tenias el codigo mal puesto.A ver si te funciona ahora,recuerda lo que te han dicho ,meter la imagen en /foro/Themes/TUTEMA/images/
y prueba a ver.
ok, muchas gracias manfred
Quote from: sergioropase on December 08, 2008, 02:07:06 PM
Quote from: 1van10 on December 08, 2008, 04:51:06 AM
Ok, te los adjunto al post.
Pues ya te los arregló manfred,por eso te pedia que los publicaras por si tenias el codigo mal puesto.A ver si te funciona ahora,recuerda lo que te han dicho ,meter la imagen en /foro/Themes/TUTEMA/images/
y prueba a ver.
gracias sergioropase ;)
Quote from: 1van10 on December 08, 2008, 02:32:58 PM
ok, muchas gracias manfred
de nada amigo
saludos
funciona al 100%.
Hola.
veo que este mod algunos lo hacen funcionar sin problemas, yo soy nuevo en esto de la creación de foros y poco a poco le voy dando personalidad propia, con la ayuda de todos vosotros.
En fin, he tratado de instalar este mod y me ha salido esta ventana:
http://img220.imageshack.us/my.php?image=71940195rm4.jpg
Y me da miedo de continuar no vaya a ser que me cargue algo del foro, con el trabajo que me esta costando modificarlo... :D :D :D :D
Gracias de nuevo y saludos
Quote from: toldeman on December 10, 2008, 12:47:27 PM
Hola.
veo que este mod algunos lo hacen funcionar sin problemas, yo soy nuevo en esto de la creación de foros y poco a poco le voy dando personalidad propia, con la ayuda de todos vosotros.
En fin, he tratado de instalar este mod y me ha salido esta ventana:
http://img220.imageshack.us/my.php?image=71940195rm4.jpg
Y me da miedo de continuar no vaya a ser que me cargue algo del foro, con el trabajo que me esta costando modificarlo... :D :D :D :D
Gracias de nuevo y saludos
hola
pues mira, te voy a aclarar algo para este mod y todos los demas!!!;)
siempre fijate en que archivos te da error, por ejemplo este mod te dio error en los archivos de idioma (theme/languaje/), esto no afectara el rendimiento de tu foro porque lo unico que hace es ponerte las indicaciones en tu idioma, en tu caso estas usando un idioma distinto al que el mod si se adapta bien, por lo tanto no hay problema que continues con la instalacion del mod, pero eso si, debes hacer las modificaciones para tu archivo de idioma en uso
saludos
o si no quieres que te de ese error ,simplemente crea los 3 archivos,subelos por ftp y prueba a instalarlo y veras como no te da el fallo,pero que en este caso como dice manfred no afecta a tu foro para nada,siempre es aconsejable hacer copias de seguridad antes de hacer cualquier modificacion.
Gracias ya lo solucione...
Salu2...
Muchas gracias ahora mismo lo pruebo ^^
hola
si tienen mas idiomas los pueden adjuntar, asi creamos el mod mas completo ;)
Hola tuve problemas con el index
Instale el mod, guarde el gif en mi theme (tengo el Outline) y modifique el index.template pero no me sale TT_TT
al ir a Caracteristicas y opciones, en la zona de la nieve y eso, No me salen las letras o_Ò no se si tenga que ver con lo del theme y eso me sale asi:
(http://img267.imageshack.us/img267/9571/dibujosa9.th.png) (http://img267.imageshack.us/my.php?image=dibujosa9.png)
Adjunto mi index.template de mi theme
GRACIAS!
hola sandara-chan
lo que pasa es que falta la traduccion para tu idioma. Ve a caracteristicas del servidor y dime que idioma usas.
Te adjunte el index.template.php corregido ;)
saluds
Hola
adjunte una version nueva del mod. Ya no les va a dar error en la instalacion en los archivos de idioma, tambien esta en ingles
Ver el mod aca (http://www.simplemachines.org/community/index.php?topic=277837.msg1824906#msg1824906)
saludos
que tal un saludo, ya hice todos los pasos que aqui indican y lo que me provoca es un error y ya no puedo ver mi foro, por suerte, solo resubo el index template de nuevo y todo bien.
podrian ayudarme, espero no abusar y les adjunto mi index template.
hola haldor
aca esta tu index listo ;)
ok, gracias , ahorita mismo lo pruebo y ojala se error mio.... gracias mil.
Oye Manfred, de verdad gracias por el mod, pero ahora tengo un lío con el index.template.php. El tema que uso no tiene el '; después del <body> y quería saber si me puedes ayudar con el archivo para ver si lo puedes corregir o algo.
claro Gargadon
aca te lo dejo ya listo!!;)
Quote from: manfred on December 11, 2008, 02:18:17 AM
hola sandara-chan
lo que pasa es que falta la traduccion para tu idioma. Ve a caracteristicas del servidor y dime que idioma usas.
Te adjunte el index.template.php corregido ;)
saluds
Gracias, instale el nuevo mod, y el index que me has corregido lo he subido.
Pero sigue saliendome igual y tampoco se ve en el foro la nieve.
El idioma que dice es
Spanish Latin.
Supongo es el idioma pues en la lista de idiomas soportados no viene este verdad?
Como instalo otro idioma??
Saludos^^
hola, pues deberia de funcionarte
has lo que dice aqui:
http://www.simplemachines.org/community/index.php?topic=277837.msg1825260#msg1825260
solo que haces los cambios para tu archivo de idioma, que segun dices es /languajes/ModSettings.spanish_latin-utf8.php
la nieve no empeiza a salir hasta que la habilites, demas tienes que poner una cantidad de bolitas de nieve, pues si la cantidad es 0 o no hay cantidad... pues no se ve la niev
saludos
mil gracias por toda la ayuda manfred, a mi me fue bien desde el principio!! ahora ya tengo nieve!!
manfred me podias hechar una mano con el index. template de mi theme. no encuentro donde colocar el codigo.
muchas gracias
hola
claro, con mucho gusto, te lo dejo adjunto
saludos
mucnas gracias, ya me funciomo.
PD: se puede hacer que caiga por todo el foro. asta abajo me refiero. por que solo se ve en la cabezera.
http://skinmod.es/foro/index.php?action=forum
claro, ya con la modificacion hecha solo busca:
var snowdistance = "pageheight";
y lo cambias por:
var snowdistance = "windowheight";
de hecho voy a poner esa modificacion en la proxima version jeje
saludos
he cambiado lo que me as comentado y sige sin pasar mas de la cabezera. lo puedes ver tu mismo. muchas gracias
vale, tienes razon, adjunta tu index.template.php
Quote from: Gonzalo on December 07, 2008, 02:16:47 PM
Yo use el parser y me dio esto:
Nota: No importa si un archivo no existe en su tema (dado que será usado el archivo del tema Default).
En el archivo Themes/[your theme]/index.template.php
Busque:
<body>';
Arriba de eso, añada:
// configuracion del conteo
$imageSnowCounter = $modSettings['imageSnowCounter'];
if(empty($modSettings['imageSnowCounter']))
$imageSnowCounter = 0;
// configuracion de la imagen
if (!empty($modSettings['imageSnow']))
$imageSnow = $settings['images_url']. '/'.$modSettings['imageSnow']."\"";
// INICIO DEL CODIGO DE NIEVE
// configuracion del conteo
$imageSnowCounter = $modSettings['imageSnowCounter'];
if(empty($modSettings['imageSnowCounter']))
$imageSnowCounter = 0;
// configuracion de la imagen
$imageSnow = $settings['images_url'].'/nieve.gif"';
if (!empty($modSettings['imageSnow']))
$imageSnow = $settings['images_url']. '/'.$modSettings['imageSnow']."\"";
// INICIO DE CODIGO DE NIEVE
if (!empty($modSettings['enableSnow'])){
echo '
<script type="text/javascript">
/******************************************
* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05\' by DD. This notice must stay intact for use
******************************************/
//Configure below to change URL path to the snow image
var snowsrc="'.$imageSnow,';
// Configure below to change number of snow to render
var no = '.$modSettings['imageSnowCounter'].';
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "pageheight";
///////////Stop Config//////////////////////////////////
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;
if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src=\'"+snowsrc+"\' border=\"0\"><\/a><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src=\'"+snowsrc+"\' border=\"0\"><\/div>");
}
}
}
function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top=yp[i]+"px";
document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}
function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}
if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}
</script>';
}
//FIN DE CODIGO NIEVE
Proba haciendo eso!!!! Pero antes hace un backup del archivo!!!
lo puse abajo del body al codigo.. y funciono..
tengo smf 1.1.7 y theme MegaPolis
Espero que les sirva.
Gracias por el mod funciona de 10! ;)
Salu2! ;)