Project Snow

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

Previous topic - Next topic

henrik1782

Funny project... and very nice... thanks!

Here is the danish translation


project_snow_2.0.xml  and project_snow_1.1.xml

    <file name="$themedir/languages/Help.danish.php">
<operation>
<search position="end"></search>
<add><![CDATA[
// SMF Modders; Project Snow
$helptxt['disable_snow'] = 'Markering af denne deaktiverer sne i dit forum.';
$helptxt['flakeBottom'] = 'Angiver max højde på dit sne areal (fra toppen). For eksempel, hvis du her angiver 10 vil sneen stoppe med at falde efter 10 pixels.';
$helptxt['targetElement'] = 'Får snefnuggene til kun af falde inde i et bestemt HTML element specificeret ved dennes ID.';
$helptxt['followMouse'] = 'Får snefnuggene til at følge musen ind i dens hul, hvor sneen ophobes og smelter. Dette kan bevirke betydelige vandskader i dit forum og kan ende med at koste dig en formue. Dette anses for bogstaveligt at smide dine penge ned i et sort hul.<br /><br />Seriøst, dette får dine snefnug til at følge musens bevægelser.<br /><br /><div style="font-size: xx-small;">By SC</div>';
$helptxt['snowCharacter'] = 'Karakteren bruges som snefnug. Vi anbefaler at du bruger karakteres som &middot;, &copy;, elle &amp;. &bull; bruges som standard.';
$helptxt['snowStick'] = 'Tillader at snefnug ophobes på bunden i omkring 5 sekunder inden de forsvinder.';
$helptxt['useMeltEffect'] = 'Smelter den ophobede sne langsomt i modsætning til at den bare forsvinder.';
$helptxt['useTwinkleEffect'] = 'Får snefnuggene til at tænde og slukke for at skabe en blinkende effekt.';
$helptxt['usePositionFixed'] = 'Får snefnuggene til at holde deres afstand når du scroller.';
$helptxt['flakeLeftOffset'] = 'Angiver afstanden mellem sneen og den venstre side af elementet.';
$helptxt['flakeRightOffset'] = 'Angiver afstanden mellem sneen og den højre side af elementet.';
$helptxt['flakeWidth'] = 'Angiver maksimum breden (i pixels) på dine snefnug.';
$helptxt['flakeHeight'] = 'Angiver maksimum højden (i pixels) på dine snefnug.';
$helptxt['vMaxX'] = 'Angiver top hastigheden for sne bevægelsen (nedad). Jo højere nummer des hurtige går det. Simpelt ikke?';
$helptxt['vMaxY'] = 'Angiver top hastigheden for sne bevægelsen (sidelens). Jo højere nummer des hurtige går det. Simpelt ikke?';
$helptxt['zIndex'] = 'Web sider er som løg. De har flere lag, så jo højere nummer du indtaster des højere oppe er dit sne. Prøv med værdien -5 og se hvad der sker.<br /><br />For merer information om CSS parametre "z-index" se yderligere <a href="http://www.w3schools.com/Css/pr_pos_z-index.asp" target="_blank">CSS z-index property</a> from <a href="http://www.w3schools.com/" target="_blank">w3schools.com</a>';
$helptxt['use_date'] = 'Hvis du markerer denne, det det kun sne i de måneder som du markerer nedenfor.';
$helptxt['snow_in_january'] = 'Markering af denne vil aktivere sne i januar';
$helptxt['snow_in_february'] = 'Markering af denne vil aktivere sne i februar';
$helptxt['snow_in_march'] = 'Markering af denne vil aktivere sne i marts';
$helptxt['snow_in_april'] = 'Markering af denne vil aktivere sne i april';
$helptxt['snow_in_may'] = 'Markering af denne vil aktivere sne i maj';
$helptxt['snow_in_june'] = 'Markering af denne vil aktivere sne i juni';
$helptxt['snow_in_july'] = 'Markering af denne vil aktivere sne i juli';
$helptxt['snow_in_august'] = 'Markering af denne vil aktivere sne i august';
$helptxt['snow_in_september'] = 'Markering af denne vil aktivere sne i september';
$helptxt['snow_in_october'] = 'Markering af denne vil aktivere sne i oktober';
$helptxt['snow_in_november'] = 'Markering af denne vil aktivere sne i november';
$helptxt['snow_in_december'] = 'Markering af denne vil aktivere sne i december';
$helptxt['flakesMax'] = 'Dette felt bestemmer det maksimale antal snefnug ialt.';
$helptxt['flakesMaxActive'] = 'Dette felt bestemmer det maksimale antal snefnug er er aktive på samme tid.';
$helptxt['snowColor'] = 'Dette felt giver dig mulighed for at definere snefnug farven!<br /><br /><hr /><strong>Mulige værdier</strong><hr /><strong>Hex Code:</strong> #fff or #ffffff;<br /><strong>Primary Color Name:<pstrong> white or White<br /><br />Please...if you use yellow snow, at least warn your members not to eat it!';
$helptxt['animationInterval'] = 'Quote - "Theoretical \'miliseconds per frame\' measurement. 20 = fast + smooth, but high CPU use. 50 = more conservative, but slower"';
// End SMF Modders; Project Snow
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.danish.php">
<operation>
<search position="end"></search>
<add><![CDATA[
// SMF Moddders; Project Snow (Feel the cold).
$txt['projectsnow_page_title'] = 'Projekt Sne - Modification indstillinger';
// End SMF Modders; Project Snow
]]></add>
</operation>
</file>

    <file name="$themedir/languages/Help.danish-utf8.php">
<operation>
<search position="end"></search>
<add><![CDATA[
// SMF Modders; Project Snow
$helptxt['disable_snow'] = 'Markering af denne deaktiverer sne i dit forum.';
$helptxt['flakeBottom'] = 'Angiver max højde på dit sne areal (fra toppen). For eksempel, hvis du her angiver 10 vil sneen stoppe med at falde efter 10 pixels.';
$helptxt['targetElement'] = 'FÃ¥r snefnuggene til kun af falde inde i et bestemt HTML element specificeret ved dennes ID.';
$helptxt['followMouse'] = 'Får snefnuggene til at følge musen ind i dens hul, hvor sneen ophobes og smelter. Dette kan bevirke betydelige vandskader i dit forum og kan ende med at koste dig en formue. Dette anses for bogstaveligt at smide dine penge ned i et sort hul.<br /><br />Seriøst, dette får dine snefnug til at følge musens bevægelser.<br /><br /><div style="font-size: xx-small;">By SC</div>';
$helptxt['snowCharacter'] = 'Karakteren bruges som snefnug. Vi anbefaler at du bruger karakteres som &middot;, &copy;, elle &amp;. &bull; bruges som standard.';
$helptxt['snowStick'] = 'Tillader at snefnug ophobes på bunden i omkring 5 sekunder inden de forsvinder.';
$helptxt['useMeltEffect'] = 'Smelter den ophobede sne langsomt i modsætning til at den bare forsvinder.';
$helptxt['useTwinkleEffect'] = 'Får snefnuggene til at tænde og slukke for at skabe en blinkende effekt.';
$helptxt['usePositionFixed'] = 'Får snefnuggene til at holde deres afstand når du scroller.';
$helptxt['flakeLeftOffset'] = 'Angiver afstanden mellem sneen og den venstre side af elementet.';
$helptxt['flakeRightOffset'] = 'Angiver afstanden mellem sneen og den højre side af elementet.';
$helptxt['flakeWidth'] = 'Angiver maksimum breden (i pixels) på dine snefnug.';
$helptxt['flakeHeight'] = 'Angiver maksimum højden (i pixels) på dine snefnug.';
$helptxt['vMaxX'] = 'Angiver top hastigheden for sne bevægelsen (nedad). Jo højere nummer des hurtige går det. Simpelt ikke?';
$helptxt['vMaxY'] = 'Angiver top hastigheden for sne bevægelsen (sidelens). Jo højere nummer des hurtige går det. Simpelt ikke?';
$helptxt['zIndex'] = 'Web sider er som løg. De har flere lag, så jo højere nummer du indtaster des højere oppe er dit sne. Prøv med værdien -5 og se hvad der sker.<br /><br />For merer information om CSS parametre "z-index" se yderligere <a href="http://www.w3schools.com/Css/pr_pos_z-index.asp" target="_blank">CSS z-index property</a> from <a href="http://www.w3schools.com/" target="_blank">w3schools.com</a>';
$helptxt['use_date'] = 'Hvis du markerer denne, det det kun sne i de måneder som du markerer nedenfor.';
$helptxt['snow_in_january'] = 'Markering af denne vil aktivere sne i januar';
$helptxt['snow_in_february'] = 'Markering af denne vil aktivere sne i februar';
$helptxt['snow_in_march'] = 'Markering af denne vil aktivere sne i marts';
$helptxt['snow_in_april'] = 'Markering af denne vil aktivere sne i april';
$helptxt['snow_in_may'] = 'Markering af denne vil aktivere sne i maj';
$helptxt['snow_in_june'] = 'Markering af denne vil aktivere sne i juni';
$helptxt['snow_in_july'] = 'Markering af denne vil aktivere sne i juli';
$helptxt['snow_in_august'] = 'Markering af denne vil aktivere sne i august';
$helptxt['snow_in_september'] = 'Markering af denne vil aktivere sne i september';
$helptxt['snow_in_october'] = 'Markering af denne vil aktivere sne i oktober';
$helptxt['snow_in_november'] = 'Markering af denne vil aktivere sne i november';
$helptxt['snow_in_december'] = 'Markering af denne vil aktivere sne i december';
$helptxt['flakesMax'] = 'Dette felt bestemmer det maksimale antal snefnug ialt.';
$helptxt['flakesMaxActive'] = 'Dette felt bestemmer det maksimale antal snefnug er er aktive på samme tid.';
$helptxt['snowColor'] = 'Dette felt giver dig mulighed for at definere snefnug farven!<br /><br /><hr /><strong>Mulige værdier</strong><hr /><strong>Hex Code:</strong> #fff or #ffffff;<br /><strong>Primary Color Name:<pstrong> white or White<br /><br />Please...if you use yellow snow, at least warn your members not to eat it!';
$helptxt['animationInterval'] = 'Quote - "Theoretical \'miliseconds per frame\' measurement. 20 = fast + smooth, but high CPU use. 50 = more conservative, but slower"';
// End SMF Modders; Project Snow
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.danish-utf8.php">
<operation>
<search position="end"></search>
<add><![CDATA[
// SMF Moddders; Project Snow (Feel the cold).
$txt['projectsnow_page_title'] = 'Projekt Sne - Modification indstillinger';
// End SMF Modders; Project Snow
]]></add>
</operation>
</file>
My favorite mods: Forum Firewall, httBL, MessagePreviewOnHover, BoardHover Mod, VB Style Board Index, Separate Replies and Views Column, Realtime clock by Joker, ENotify, Topic Solved.

henrik1782

Danish translation continued

Project-Snow.danish.php

<?php/****************************************************** Project-Snow.danish.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'] = 'Projekt Sne';$txt['projectsnow_desc'] = 'Rediger projekt Sne indstillinger';// Answers$txt['projectsnow_yes'] = 'Nej';$txt['projectsnow_no'] = 'Ja';// ModSettings Inputs!$txt['disable_snow'] = 'Deaktiver Sne';$txt['use_date'] = 'Måneder hvor Sne vises';$txt['snow_in_january'] = 'Sne i januar';$txt['snow_in_february'] = 'Sne i februar';$txt['snow_in_march'] = 'Sne i marts';$txt['snow_in_april'] = 'Sne i april';$txt['snow_in_may'] = 'Sne i maj';$txt['snow_in_june'] = 'Sne i juni';$txt['snow_in_july'] = 'Sne i juli';$txt['snow_in_august'] = 'Sne i august';$txt['snow_in_september'] = 'Sne i september';$txt['snow_in_october'] = 'Sne i oktober';$txt['snow_in_november'] = 'Sne i november';$txt['snow_in_december'] = 'Sne i december';$txt['flakesMax'] = 'Maximum antal snefnug';$txt['flakesMaxActive'] = 'Maximum aktive antal snefnug';$txt['targetElement'] = 'Element For Snow';$txt['followMouse'] = 'Følg musen';$txt['animationInterval'] = 'Animations interval<div class="smalltext">Read Helptext</div>';$txt['flakeBottom'] = 'Y akse Sne begrænsning<div class="smalltext">0 for fuld skærm</div>';$txt['snowColor'] = 'Sne farve<div class="smalltext">Enten et primært farve navn (f.eks. yellow) eller den faktiske hex værdi (#FFD800).<br />For hex værdi skal der IKKE tilføjes ";"</div>';$txt['snowCharacter'] = 'Character For Snow<div class="smalltext">Example: &cent;</div>';$txt['snowStick'] = 'Sne hobes op';$txt['useMeltEffect'] = 'Smelt ophobet sne<div class="smalltext">Hvis ikke vil sneen bare forsvinde</div>';$txt['useTwinkleEffect'] = 'Vis blinkende sne';$txt['usePositionFixed'] = 'Følg scroll';$txt['flakeLeftOffset'] = 'Sne fra venstre';$txt['flakeRightOffset'] = 'Sne fra højre';$txt['flakeWidth'] = 'Snefnug bredde';$txt['flakeHeight'] = 'Snefnug højde';$txt['vMaxX'] = 'Maximum X akse sprednings område';$txt['vMaxY'] = 'Maximum Y akse sprednings område';$txt['zIndex'] = 'CSS Z-Index';// SMF Modders; Project Snow$txt['permissiongroup_project_snow_general'] = 'Projekt Sne';$txt['permissiongroup_simple_project_snow_general'] = 'Projekt Sne';$txt['permissionname_project_snow'] = 'Kan deaktivere Sne';$txt['permissionhelp_project_snow'] = 'Ved markering tillader du medlemmer i denne medlemsgruppe at deaktivere sne.';// Member Toggle$txt['show_no_snow'] = 'Vis sne:';?>


Project-Snow.danish-utf8.php


<?php/****************************************************** Project-Snow.danish.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'] = 'Projekt Sne';$txt['projectsnow_desc'] = 'Rediger projekt Sne indstillinger';// Answers$txt['projectsnow_yes'] = 'Nej';$txt['projectsnow_no'] = 'Ja';// ModSettings Inputs!$txt['disable_snow'] = 'Deaktiver Sne';$txt['use_date'] = 'MÃ¥neder hvor Sne vises';$txt['snow_in_january'] = 'Sne i januar';$txt['snow_in_february'] = 'Sne i februar';$txt['snow_in_march'] = 'Sne i marts';$txt['snow_in_april'] = 'Sne i april';$txt['snow_in_may'] = 'Sne i maj';$txt['snow_in_june'] = 'Sne i juni';$txt['snow_in_july'] = 'Sne i juli';$txt['snow_in_august'] = 'Sne i august';$txt['snow_in_september'] = 'Sne i september';$txt['snow_in_october'] = 'Sne i oktober';$txt['snow_in_november'] = 'Sne i november';$txt['snow_in_december'] = 'Sne i december';$txt['flakesMax'] = 'Maximum antal snefnug';$txt['flakesMaxActive'] = 'Maximum aktive antal snefnug';$txt['targetElement'] = 'Element For Snow';$txt['followMouse'] = 'Følg musen';$txt['animationInterval'] = 'Animations interval<div class="smalltext">Read Helptext</div>';$txt['flakeBottom'] = 'Y akse Sne begrænsning<div class="smalltext">0 for fuld skærm</div>';$txt['snowColor'] = 'Sne farve<div class="smalltext">Enten et primært farve navn (f.eks. yellow) eller den faktiske hex værdi (#FFD800).<br />For hex værdi skal der IKKE tilføjes ";"</div>';$txt['snowCharacter'] = 'Character For Snow<div class="smalltext">Example: &cent;</div>';$txt['snowStick'] = 'Sne hobes op';$txt['useMeltEffect'] = 'Smelt ophobet sne<div class="smalltext">Hvis ikke vil sneen bare forsvinde</div>';$txt['useTwinkleEffect'] = 'Vis blinkende sne';$txt['usePositionFixed'] = 'Følg scroll';$txt['flakeLeftOffset'] = 'Sne fra venstre';$txt['flakeRightOffset'] = 'Sne fra højre';$txt['flakeWidth'] = 'Snefnug bredde';$txt['flakeHeight'] = 'Snefnug højde';$txt['vMaxX'] = 'Maximum X akse sprednings omrÃ¥de';$txt['vMaxY'] = 'Maximum Y akse sprednings omrÃ¥de';$txt['zIndex'] = 'CSS Z-Index';// SMF Modders; Project Snow$txt['permissiongroup_project_snow_general'] = 'Projekt Sne';$txt['permissiongroup_simple_project_snow_general'] = 'Projekt Sne';$txt['permissionname_project_snow'] = 'Kan deaktivere Sne';$txt['permissionhelp_project_snow'] = 'Ved markering tillader du medlemmer i denne medlemsgruppe at deaktivere sne.';// Member Toggle$txt['show_no_snow'] = 'Vis sne:';?>
My favorite mods: Forum Firewall, httBL, MessagePreviewOnHover, BoardHover Mod, VB Style Board Index, Separate Replies and Views Column, Realtime clock by Joker, ENotify, Topic Solved.

henrik1782

The last one for Danish


package-info.xml

<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Package manifest file for Project Snow 1.1

ATTENTION: If you are trying to install this manually, you should try
the package manager.  If it will not work for you, please take a look
at the following for information on this format:
http://mods.simplemachines.org/docs/manual-install.php

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">

<name>Project Snow 1.1</name>
<id>Labradoodle-360:Project_Snow</id>
<version>1.1</version>
<homepage>http://www.smfmodders.com/</homepage>
<type>modification</type>

<!-- !! Installs !! -->
<install for="2.0 RC3, 2.0 RC4">
<readme parsebbc="true">readme.txt</readme>
<modification>project_snow_2.0.xml</modification>
<!-- Here is our SnowStorm JavaScript file! -->
<require-file name="snowstorm.js" destination="$themedir/scripts" />
<!-- Here is our Project-Snow Language file! -->
<require-file name="Project-Snow.english.php" destination="$languagedir" />
<require-file name="Project-Snow.danish.php" destination="$languagedir" />
<require-file name="Project-Snow.danish-utf8.php" destination="$languagedir" />
</install>
<install for="1.1.12">
<readme parsebbc="true">readme.txt</readme>
<modification>project_snow_1.1.xml</modification>
<!-- Here is our SnowStorm JavaScript file! -->
<require-file name="snowstorm.js" destination="$themedir" />
<!-- Here is our Project-Snow Language file! -->
<require-file name="Project-Snow.english.php" destination="$languagedir" />
<require-file name="Project-Snow.danish.php" destination="$languagedir" />
<require-file name="Project-Snow.danish-utf8.php" destination="$languagedir" />
</install>

<!-- !! Uninstalls !! -->
<uninstall for="2.0 RC3, 2.0 RC4">
<readme parsebbc="true">readme.txt</readme>
<modification reverse="true">project_snow_2.0.xml</modification>
<!-- Remove our SnowStorm JavaScript File :( -->
<remove-file name="$themedir/scripts/snowstorm.js" />
<!-- Remove our knowledge in the Project-Snow Language -->
<remove-file name="$languagedir/Project-Snow.english.php" />
<remove-file name="$languagedir/Project-Snow.danish.php" />
<remove-file name="$languagedir/Project-Snow.danish-utf8.php" />
</uninstall>
<uninstall for="1.1.12">
<readme parsebbc="true">readme.txt</readme>
<modification reverse="true">project_snow_1.1.xml</modification>
<!-- Remove our SnowStorm JavaScript File :( -->
<remove-file name="$themedir/snowstorm.js" />
<!-- Remove our knowledge in the Project-Snow Language -->
<remove-file name="$languagedir/Project-Snow.danish.php" />
<remove-file name="$languagedir/Project-Snow.danish-utf8.php" />
<remove-file name="$languagedir/Project-Snow.english.php" />
</uninstall>

</package-info>
My favorite mods: Forum Firewall, httBL, MessagePreviewOnHover, BoardHover Mod, VB Style Board Index, Separate Replies and Views Column, Realtime clock by Joker, ENotify, Topic Solved.

akbora

Notice! This mod doesn't work with Explorer 8.
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Matthew K.

It does work with IE 8, however, when you click on the page it stops snowing.

akbora

No unfortunately I stopped snowing and it didin't snow at explorer 8
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

bobbart

#206
Thanks for the mod. 
It works well however it does not seem to be working for IE Internet Explorer.  Works perfect in Firefox but nothing shows in IE

EDITED

This works fine in IE.  You just need to add the site to your Trusted Sites.

henrik1782

I have snow in both IE og Firefox...
My favorite mods: Forum Firewall, httBL, MessagePreviewOnHover, BoardHover Mod, VB Style Board Index, Separate Replies and Views Column, Realtime clock by Joker, ENotify, Topic Solved.

akbora

Which one IE? this works with IE except IE 8. I explained it. Thanks.

This works firefox, Safari, Opera, IE all (except IE8) I tried no problem.
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

sharks

The permission problem is still not fixed. :( Members (other than admins) cannot turn off the snow in their profile.

Casal

Thanks for the mod but I need the language Spanish please.

Someone can help me?
♫♪♫♪

NanoSector

Quote from: Casal on December 09, 2010, 03:54:54 PM
Thanks for the mod but I need the language Spanish please.

Someone can help me?
Translate it?

That's what I did with SubAccounts when I needed Dutch :P
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."

winter1966

I would like to start by saying thanks for the amount of work that people have put into this mod.  I am having some issues that I was hoping I might be able to get assistance with.

We run a small discussion forum currently using SMF version 1.1.12

A couple of the members had suggested this mod so I downloaded the Project_Snow_v1.0.tar.gz and the  Project_Snow_1.1.zip from the following page;

http://custom.simplemachines.org/mods/index.php?mod=2356


First I tried to install the Project_Snow_v1.0.tar.gz file through the SMF Admin Control panel under Admin-->Packages-->Download Packages. The .tz file uploaded fine but when I went to Install the mod I got the following error:

Quote
Install Actions
Installations actions for "Project Snow":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I figured that perhaps I uploaded the wrong package and that .tz upload was the package for the SMF verson 2 so I tried the zip file Project_Snow_1.1.zip and it uploaded fine.  At first glance seemed to install without any hitches.

Quote
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/Load.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
5.    Execute Modification    ./Themes/default/Settings.template.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
8.    Extract File    ./Themes/default/snowstorm.js    
9.    Extract File    ./Themes/default/languages/Project-Snow.english.php    

Extracting
Extracting Package
The package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.


Presto, we have snow on our forums.


As I went to tweak the settings I realized that there was a problem, as there was nowhere in the  Admin Control Panel to adjust anything.  I scoured the entire ACP with no sign of any settings.  I searched these forums to see if I could locate where they should be.  When I went into the "Features and Options" where everyone seemed to suggest the adjustments would be it was simply not there at all.  All I had was Basic Features, Layout & Options, and Karma.  Not a mention nor any sign of the Project Snow mod. 

I went into the Permissions and looked around in there and there was no settings or user settings to turn Project Snow on or off.  There wasn't even that box with a blank description beside it as others have mentioned.

It was as if the mod installed and the snowstorm.js was running (snow was falling) but there were no control options, really wierd.

Anyway, after messing with it for an hour or so I figured maybe it was a bad install so I uninstalled the mod and the discussion forum went back to normal (no snow).  I tried to re-deploy the mod per chance the first time it didn't install properly and another issue arose.  It is snowing again on the board, however, I can't get to the "settings" to see if they work because now I get the following error when I click on "Features and Options"

Quote
Features & Options

Fatal error: Cannot redeclare manageprojectsnow() (previously declared in /home/*****/public_html/********/forum/Sources/ModSettings.php:373) in /home/****/public_html/*********/forum/Sources/ModSettings.php on line 452


If I uninstall the mod it uninstalls properly and the board goes back to normal, as well as the "Features and Options" returns to normal and no longer displays the error.  So my forums are fine if I don't have the mod installed.


I did some further poking around and it has been suggested that error was related to the modsettings.php file becoming corrupted because of a bad uninstall.  When I download and look at my modsettings.php file (even after completely uninstalling the package) I see a whole bunch of remaining code from the package.  I guess that is why I can not reinstall the mod.

I will try to attach the modsettings.php file to see if anyone could point to the offending code.  Perhaps we can edit the file to remove whatever seems to be causing the offense.

Remember, this is what the file looks like after the Project_Snow has been uninstalled.  I'm hoping to get the file back to pre-installation state so that I can try to deploy the package again.

Thanks for any help anyone might be able to offer.

I have saved the modsettings.php file as a .txt file for ease.



busterone

Look in your packages folder for a subfolder named backup. Within that folder you will find a file with a date- example- 2010-12-02_before_Project_Snow_1.tar.gz   
Download that file and uncompress it. Within that archive will be a backup copy of all the files that were edited by the mod installation. They will all be in their original state immediately BEFORE the mod installation.
You can then find the file you need and upload that file to replace the one that the forum is using now.

winter1966

Thanks for the idea. 

Unfortunately when i look in that backup folder the only file I see is index.php dated 2007.

NanoSector

Quote from: winter1966 on December 12, 2010, 12:54:35 PM
Thanks for the idea. 

Unfortunately when i look in that backup folder the only file I see is index.php dated 2007.
...weird. You can't have a file that's older then the SMF version; all files are overwritten when upgrading/installing.

Upload the upgrade files.
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.

Edit: After looking into it, the file looks like it's in order. Would you please try uninstalling the mod and then reinstalling it? Make sure to use Version 1.1.

winter1966

#217
Sorry for being a pain.....

Labradoodle;  That is the file AFTER I uninstall the mod, so somehow the Project_Snow mod left all of that behind on the uninstall.

I have already tried uninstalling & reinstalling the mod (several times now).  At a glance i seems to install fine, however, I get that error
Quote
Fatal error: Cannot redeclare manageprojectsnow() (previously declared in /home/*****/public_html/********/forum/Sources/ModSettings.php:373) in /home/****/public_html/*********/forum/Sources/ModSettings.php on line 452

when I try to click on "Features and Options" in the admin panel of SMF 1.1.12.


Yoshi;

What do you mean by "upload the upgrade files"   Which upgrade files?

and yes, the date on the index.php file in the /forum/packages/backups directory or folder is dated September 27, 2007 @ 12:00:00.  It is the only file in that folder.


I don't have any other mods installed.  If I can clean the modsettings.php file back to the way it was prior to the install of Project_Snow I can try to redeploy the mod.  Is the modsettings.php file a pretty generic file if you don't have any mods installed?  Maybe I can try replacing it with a clean file.

Can I just delete the modsettings.php file?  Will it rebuild itself upon another install of Project_Snow or will that really mess up the forum?


Matthew K.

Go ahead and install Project Snow 1.1 then and then attach ModSettings.php and I will take care of it for you.

winter1966

#219
Quote from: Labradoodle-360 on December 12, 2010, 03:13:38 PM
Go ahead and install Project Snow 1.1 then and then attach ModSettings.php and I will take care of it for you.

Ahh.... I get you.  You figure it might be different than the one that I previously attached after I uninstalled the mod.

Here is the file AFTER I install the mod (from about 5 mins ago).

Once again the php extension renamed to txt


{edit}

I see, there is 78 lines of duplicated code in the modsettings.php file after reinstalling the mod.  Lines 372 to 449 (starts on line 372 at // SMF Modders; Project Snow
function ManageProjectSnow($return_config = false)

and then the entire block of code is repeated again starting on line 451.

{/edit}

Now at least I see why I'm getting the error........

Advertisement: