Project Snow

Started by Matthew K., January 10, 2010, 03:23:07 AM

Previous topic - Next topic

sattninja

Quote from: Simple Series team on December 28, 2010, 10:41:52 AM
Quote from: IncognitoMuse on December 28, 2010, 10:38:33 AM
QuoteIt should work fine if you have UTF-8 languages installed.

Needs to actually be a UTF-8 forum rather than just installing UTF-8 languages.
That too.

I ran the covert all characters to utf but it still doesn't work how do i install the utf language files?

thanks
Running Rc4

sattninja

when i copy and paste this is what pastes it is html code



I installed the language pack

what am i doing wrong
Running Rc4

NanoSector

You should wait for a response of labradoodle...

It should work though..
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Matthew K.

Here is the "official" response - Sorry for the delay.

Project Snow uses a PHP function called htmlspecialchars which is applied to the output of whatever is inputted to the Snow Character field. I think this is also causing another similar issue, although I have not had time recently to review a fix.

For those wanting to test a possible solution, I would suggest removing htmlspecialchars() from the Load.php edit where Snow Character is added to the JS. Although I cannot guarantee that'll fix the issues until I look at it.

Arantor

Is there a reason for using that vs $smcFunc['htmlspecialchars'] ? If you are using htmlspecialchars, are you giving it the right compatibility and character set settings, particularly for UTF-8?

isparnid

Bonjour,
Ci-joint une proposition de traduction en français de Project-Snow.french-utf8.php

<?php
/*****************************************************
* Project-Snow.french-utf8.php                           *
*====================================================*
* Project Snow 1.1                                   *
* Written by: SMF Modders                            *
* Website:  http://www.SMFModders.com/               *
*====================================================*
* Copyright 2010 - SMFModders.com                    *
*****************************************************/

// Here starts our strings!
$txt['projectsnow_menu'] = 'Neige sur le forum';
$txt['projectsnow_desc'] = 'Modifier les paramètres de la neige';

// Answers
$txt['projectsnow_yes'] = 'Oui';
$txt['projectsnow_no'] = 'Non';

// ModSettings Inputs!
$txt['disable_snow'] = 'Désactiver la neige';
$txt['use_date'] = 'Sélectionner les mois où il neige';
$txt['snow_in_january'] = 'Neige en janvier';
$txt['snow_in_february'] = 'Neige en février';
$txt['snow_in_march'] = 'Neige en mars';
$txt['snow_in_april'] = 'Neige en avril';
$txt['snow_in_may'] = 'Neige en mai';
$txt['snow_in_june'] = 'Neige en juin';
$txt['snow_in_july'] = 'Neige en juillet';
$txt['snow_in_august'] = 'Neige en août';
$txt['snow_in_september'] = 'Neige en septembre';
$txt['snow_in_october'] = 'Neige en octobre';
$txt['snow_in_november'] = 'Neige en novembre';
$txt['snow_in_december'] = 'Neige en décembre';
$txt['flakesMax'] = 'Maximum de flocons';
$txt['flakesMaxActive'] = 'Maximum de flocons actifs';
$txt['targetElement'] = 'Les flocons ne tombent qu\'à l\'intérieur d\'un élément HTML spécifié par son ID';
$txt['followMouse'] = 'Suivre le curseur de la souris';
$txt['animationInterval'] = 'Intervalle de l\'animation<div class="smalltext">Voir l\'aide</div>';
$txt['flakeBottom'] = 'Limite basse de la neige<div class="smalltext">0, la neige va jusqu\'en bas de l\'écran ; 50, elle disparaît à motié de l\'écran</div>';
$txt['snowColor'] = 'Couleur des flocons<div class="smalltext">Choisir une couleur primaire (ie. yellow) ou au format hex (#FFD800).<br />pour le format hex ne pas ajouter ";"</div>';
$txt['snowCharacter'] = 'Caractère pour les flocons<div class="smalltext">Example: &cent;</div>';
$txt['snowStick'] = 'Accumulation de la neige';
$txt['useMeltEffect'] = 'Fonte de la neige empilée<div class="smalltext">ralenti la disparition de la neige empilée</div>';
$txt['useTwinkleEffect'] = 'Flocons scintillants';
$txt['usePositionFixed'] = 'Suivre le défilement';
$txt['flakeLeftOffset'] = 'Décalage à gauche';
$txt['flakeRightOffset'] = 'Décalage à droite';
$txt['flakeWidth'] = 'Largeur des flocons';
$txt['flakeHeight'] = 'Hauteur des flocons';
$txt['vMaxX'] = 'Vitesse maximum horizontale';
$txt['vMaxY'] = 'Vitesse maximum verticale';
$txt['zIndex'] = 'CSS Z-Index';

// SMF Modders; Project Snow
$txt['permissiongroup_project_snow_general'] = 'Neige sur le forum';
$txt['permissiongroup_simple_project_snow_general'] = 'Neige sur le forum';
$txt['permissionname_project_snow'] = 'peut désactiver la neige';
$txt['permissionhelp_project_snow'] = 'En cochant cette case, vous permettez aux membres de ce groupe de désactiver la neige si ce membre le décide.';

// Member Toggle
$txt['show_no_snow'] = 'Désactiver la neige.';

?>

Apllicmz

when Update dont forget portuguese

Project-Snow.portuguese_pt
Project-Snow.portuguese_pt-utf8
in attach

<file name="$themedir/languages/Help.portuguese_pt.php" error="skip">
        <operation>
            <search position="end"></search>
            <add><![CDATA[
// SMF Modders; Project Snow
$helptxt['disable_snow'] = 'Quadndo clica aqui desactiva neve no seu f&oacute;rum.';
$helptxt['flakeBottom'] = 'Definir a altura m&aacute;xima aonde vai cair a neve (a partir do topo).Por exemplo, se difinir em 10 ira fazer a neve parar de cair depois de 10 pixels.';
$helptxt['targetElement'] = 'Fazer que a neve caia dentro em particular HTML de um elemento especificado, &eacute; ID.';
$helptxt['followMouse'] = 'Faz os flocos de neve siga o mouse no  buraco, onde sao amotuados em montes de neve e derrete-se. Causando danos cortar a &aacute;gua para o seu f&oacute;rum, e lhe custar uma fortuna. Este &eacute; considerado, literalmente, jogando seu dinheiro em um buraco de raios.<br /><br />Seriamente embora, ele faz a neve siga o mouse em torno como um resfriado.<br /><br /><div style="font-size: xx-small;">Por SC</div>';
$helptxt['snowCharacter'] = 'The character used for snowflakes. We recommend you use something like &middot;, &copy;, or &amp;. &bull; is used by default.';
$helptxt['snowStick'] = 'Permite que os flocos de neve para coletar no fundo por cerca de 5 segundos, e depois eles desaparecem.';
$helptxt['useMeltEffect'] = 'Derrete a neve empilhada lentamente ao contr&aacute;rio de ter que desaparecer.';
$helptxt['useTwinkleEffect'] = 'Faz tremer os Flocos de neve para criar um efeito cintilante.';
$helptxt['usePositionFixed'] = ' Fazer que flocos de neve mantenha as suas posi&ccedil;&otilde;es durante a rolagem.';
$helptxt['flakeLeftOffset'] = 'Define a margem entre a neve e o lado esquerdo do elemento que cont&eacute;m.';
$helptxt['flakeRightOffset'] = 'Define a margem entre a neve e o lado direito do elemento que cont&eacute;m.';
$helptxt['flakeWidth'] = 'Define a largura m&aacute;xima (em pixels) de flocos de neve.';
$helptxt['flakeHeight'] = 'Define a altura m&aacute;xima (em pixels) de flocos de neve.';
$helptxt['vMaxX'] = 'Define a velocidade m&aacute;xima do movimento de neve (para baixo). Quanto maior o n&uacute;mero, mais r&aacute;pido que ele vai. Simples, n&atilde;o?';
$helptxt['vMaxY'] = 'Define a velocidade m&aacute;xima do movimento de neve (de lado). Quanto maior o n&uacute;mero, mais r&aacute;pido que ele vai. Simples, n&atilde;o?';
$helptxt['zIndex'] = 'P&aacute;ginas da Web s&atilde;o como cebolas. Eles t&ecirc;m v&aacute;rias camadas, de modo que o seu maior n&uacute;mero introduzido, maior at&eacute; que a neve &eacute;. Tente usar -5 e ver o que acontece.<br /><br />Para obter mais informa&ccedil;&otilde;es sobre o CSS attribute "z-index" confira <a href="http://www.w3schools.com/Css/pr_pos_z-index.asp" target="_blank">CSS z-index property</a> a partir de <a href="http://www.w3schools.com/" target="_blank">w3schools.com</a>';
$helptxt['use_date'] = 'Se voc&ecirc; verificar isso, ele s&oacute; neve nos meses em que s&atilde;o verificados abaixo.';
$helptxt['snow_in_january'] = 'Cliquando aqui isso vai fazer nevar em janeiro';
$helptxt['snow_in_february'] = 'Cliquando aqui isso vai fazer nevar em fevereiro';
$helptxt['snow_in_march'] = 'Cliquando aqui isso vai fazer nevar mar&ccedil;o';
$helptxt['snow_in_april'] = 'Cliquando aqui isso vai fazer nevar em abril';
$helptxt['snow_in_may'] = 'Cliquando aqui isso vai fazer nevar maio';
$helptxt['snow_in_june'] = 'Cliquando aqui isso vai fazer nevar em junho';
$helptxt['snow_in_july'] = 'Cliquando aqui isso vai fazer nevar em julho';
$helptxt['snow_in_august'] = 'Cliquando aqui isso vai fazer nevar em agosto';
$helptxt['snow_in_september'] = 'Cliquando aqui isso vai fazer nevar em setembro';
$helptxt['snow_in_october'] = 'Cliquando aqui isso vai fazer nevar em outubro';
$helptxt['snow_in_november'] = 'Cliquando aqui isso vai fazer nevar em novembro';
$helptxt['snow_in_december'] = 'Cliquando aqui isso vai fazer nevar em dezembro';
$helptxt['flakesMax'] = 'Este campo controla o n&uacute;mero m&aacute;ximo de flocos de neve no total.';
$helptxt['flakesMaxActive'] = 'Este campo controla o n&uacute;mero m&aacute;ximo de flocos de neve que s&atilde;o activos ao mesmo tempo.';
$helptxt['snowColor'] = 'Este campo permite definir a cor da neve!<br /><br /><hr /><strong>As entradas poss&iacute;veis</strong><hr /><strong>Hex Code:</strong> #fff or #ffffff;<br /><strong>Nome da Cor Prim&aacute;ria:</strong> branco ou branco<br /><br />Por favor...se voc&ecirc; usar a neve amarela, pelo menos alertar os seus membros para eles n&atilde;o com&ecirc;-lo!';
$helptxt['animationInterval'] = 'Quote - ""milisegundos por quadro Te&oacute;rica medi&ccedil;&atilde;o. 20 = r&aacute;pido + f&aacute;cil, mas o uso de alta CPU. 50 = mais conservador, por&eacute;m mais lento"';
// End SMF Modders; Project Snow suporte smfpt
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Help.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end"></search>
            <add><![CDATA[
// SMF Modders; Project Snow translate by candidosa2
$helptxt['disable_snow'] = 'Quadndo clica aqui desactiva neve no seu f&oacute;rum.';
$helptxt['flakeBottom'] = 'Definir a altura m&aacute;xima aonde vai cair a neve (a partir do topo).Por exemplo, se difinir em 10 ira fazer a neve parar de cair depois de 10 pixels.';
$helptxt['targetElement'] = 'Fazer que a neve caia dentro em particular HTML de um elemento especificado, &eacute; ID.';
$helptxt['followMouse'] = 'Faz os flocos de neve siga o mouse no  buraco, onde sao amotuados em montes de neve e derrete-se. Causando danos cortar a &aacute;gua para o seu f&oacute;rum, e lhe custar uma fortuna. Este &eacute; considerado, literalmente, jogando seu dinheiro em um buraco de raios.<br /><br />Seriamente embora, ele faz a neve siga o mouse em torno como um resfriado.<br /><br /><div style="font-size: xx-small;">Por SC</div>';
$helptxt['snowCharacter'] = 'The character used for snowflakes. We recommend you use something like &middot;, &copy;, or &amp;. &bull; is used by default.';
$helptxt['snowStick'] = 'Permite que os flocos de neve para coletar no fundo por cerca de 5 segundos, e depois eles desaparecem.';
$helptxt['useMeltEffect'] = 'Derrete a neve empilhada lentamente ao contr&aacute;rio de ter que desaparecer.';
$helptxt['useTwinkleEffect'] = 'Faz tremer os Flocos de neve para criar um efeito cintilante.';
$helptxt['usePositionFixed'] = ' Fazer que flocos de neve mantenha as suas posi&ccedil;&otilde;es durante a rolagem.';
$helptxt['flakeLeftOffset'] = 'Define a margem entre a neve e o lado esquerdo do elemento que cont&eacute;m.';
$helptxt['flakeRightOffset'] = 'Define a margem entre a neve e o lado direito do elemento que cont&eacute;m.';
$helptxt['flakeWidth'] = 'Define a largura m&aacute;xima (em pixels) de flocos de neve.';
$helptxt['flakeHeight'] = 'Define a altura m&aacute;xima (em pixels) de flocos de neve.';
$helptxt['vMaxX'] = 'Define a velocidade m&aacute;xima do movimento de neve (para baixo). Quanto maior o n&uacute;mero, mais r&aacute;pido que ele vai. Simples, n&atilde;o?';
$helptxt['vMaxY'] = 'Define a velocidade m&aacute;xima do movimento de neve (de lado). Quanto maior o n&uacute;mero, mais r&aacute;pido que ele vai. Simples, n&atilde;o?';
$helptxt['zIndex'] = 'P&aacute;ginas da Web s&atilde;o como cebolas. Eles t&ecirc;m v&aacute;rias camadas, de modo que o seu maior n&uacute;mero introduzido, maior at&eacute; que a neve &eacute;. Tente usar -5 e ver o que acontece.<br /><br />Para obter mais informa&ccedil;&otilde;es sobre o CSS attribute "z-index" confira <a href="http://www.w3schools.com/Css/pr_pos_z-index.asp" target="_blank">CSS z-index property</a> a partir de <a href="http://www.w3schools.com/" target="_blank">w3schools.com</a>';
$helptxt['use_date'] = 'Se voc&ecirc; verificar isso, ele s&oacute; neve nos meses em que s&atilde;o verificados abaixo.';
$helptxt['snow_in_january'] = 'Cliquando aqui isso vai fazer nevar em janeiro';
$helptxt['snow_in_february'] = 'Cliquando aqui isso vai fazer nevar em fevereiro';
$helptxt['snow_in_march'] = 'Cliquando aqui isso vai fazer nevar mar&ccedil;o';
$helptxt['snow_in_april'] = 'Cliquando aqui isso vai fazer nevar em abril';
$helptxt['snow_in_may'] = 'Cliquando aqui isso vai fazer nevar maio';
$helptxt['snow_in_june'] = 'Cliquando aqui isso vai fazer nevar em junho';
$helptxt['snow_in_july'] = 'Cliquando aqui isso vai fazer nevar em julho';
$helptxt['snow_in_august'] = 'Cliquando aqui isso vai fazer nevar em agosto';
$helptxt['snow_in_september'] = 'Cliquando aqui isso vai fazer nevar em setembro';
$helptxt['snow_in_october'] = 'Cliquando aqui isso vai fazer nevar em outubro';
$helptxt['snow_in_november'] = 'Cliquando aqui isso vai fazer nevar em novembro';
$helptxt['snow_in_december'] = 'Cliquando aqui isso vai fazer nevar em dezembro';
$helptxt['flakesMax'] = 'Este campo controla o n&uacute;mero m&aacute;ximo de flocos de neve no total.';
$helptxt['flakesMaxActive'] = 'Este campo controla o n&uacute;mero m&aacute;ximo de flocos de neve que s&atilde;o activos ao mesmo tempo.';
$helptxt['snowColor'] = 'Este campo permite definir a cor da neve!<br /><br /><hr /><strong>As entradas poss&iacute;veis</strong><hr /><strong>Hex Code:</strong> #fff or #ffffff;<br /><strong>Nome da Cor Prim&aacute;ria:</strong> branco ou branco<br /><br />Por favor...se voc&ecirc; usar a neve amarela, pelo menos alertar os seus membros para eles n&atilde;o com&ecirc;-lo!';
$helptxt['animationInterval'] = 'Quote - ""milisegundos por quadro Te&oacute;rica medi&ccedil;&atilde;o. 20 = r&aacute;pido + f&aacute;cil, mas o uso de alta CPU. 50 = mais conservador, por&eacute;m mais lento"';
// End SMF Modders; Project Snow suporte smfpt
]]></add>
        </operation>
    </file>


<file name="$themedir/languages/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end"></search>
            <add><![CDATA[
// SMF Moddders; Project Snow (Feel the cold).
$txt['projectsnow_page_title'] = 'Projeto de Neve - Configura&ccedil;&otilde;es Modifica&ccedil;&atilde;o';
// End SMF Modders; Project Snow
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end"></search>
            <add><![CDATA[
// SMF Moddders; Project Snow (Feel the cold).
$txt['projectsnow_page_title'] = 'Projeto de Neve - Configura&ccedil;&otilde;es Modifica&ccedil;&atilde;o';
// End SMF Modders; Project Snow
]]></add>
        </operation>
    </file>





Jakki

I had no problems with this and my members loved it with the theme I had..great job.

Hack-King

ok, I just reinstalled my site files and the problem is now seized. Thank you guyz anyway, http://daystarlet.co.cc/

impreza

Portal ToTemat.pl - treści w postaci artykułów i filmów tematycznych.

Matthew K.

Thank you tomeh! :) Glad you like it.

totaltutankoll

I don't understand how to set this to work in a special element. How do I do that`?
Started out with a SMF-forum a couple of years ago went on to Dynamic web (read dynamic crap) and am now back in the land of Simple Machines.

Non, je ne regrette rien!

Matthew K.


Sabre™

Looks nice mate :)
Cant believe there are soo many mods I have not seen before lol, including this.
Nice to be able to see your progress.
Good job :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Matthew K.

Wow, you've not seen this before? I wrote it an extremely long time ago!

Thanks for checking it out :) I have some better stuff in the works.

MaXiForum.cz

Hello Labradoodle.
Thank you for this your very nice mod.
One question.
How can I updated version 1 to version 1.1?
Are the changes in the files or can I replace only "snowstorm.js" file?
Thank you

Matthew K.

Not a problem.

There are quite a few changes in 1.1, more so than snowstorm.js, I'd suggest parsing the mod for SMF 2.0 RC3, and seeing what was changed.

MaXiForum.cz


Matthew K.

No problem. It shouldn't be too tricky to back-port. Depends on how much SMF you know...

hcfwesker

is there no way to have a custom image fall in place of the snow in 1.1, like the 1.0 version had?    I can't seem to get version 1.0 readded back on my site.

Advertisement: