News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Snow Effect

Started by enik, August 24, 2011, 08:18:38 PM

Previous topic - Next topic

Eudemon


^HeRaCLeS^

^HeRaCLeS^
*¤×• Ni te molestes en enviarme un Mp porque el soporte lo doy solo por el foro •×¤*


SMFPersonal

Eudemon


^HeRaCLeS^

^HeRaCLeS^
*¤×• Ni te molestes en enviarme un Mp porque el soporte lo doy solo por el foro •×¤*


SMFPersonal

Adk-Team


impreza

Fane, thank you for doing
Portal ToTemat.pl - treści w postaci artykułów i filmów tematycznych.

mikedijital

is there a way to only display this on certain pages, I use SMF packs shoutbox and in that admin i can choose what pages it displays on, this would be a great feature to be able to shut it off when people are reading an actual post because it can get distracting, but leave it on the index, and topics pages, just shut it off for the actual thread itself


thanks

im using smf 2.0.2

^HeRaCLeS^

Test please...

In file Subs-ADK_Snoweffect.php

Search:

$context['insert_after_template'] .= '
<script type="text/javascript"><!-- // --><![CDATA[
var ADK_Secolor = "#'. $modSettings['ADK_Secolor'] .'";
var ADK_SeChart = "'. $ADK_SeChart .'";
var ADK_SeVelox = "'. $ADK_SeVelox .'";
var ADK_SeVeloy = "'. $ADK_SeVeloy .'";
var ADK_SeStick = "'. $ADK_SeStick .'";
var ADK_SeMouse = "'. $ADK_SeMouse .'";
// ]]></script>
  <script type="text/javascript" src="'. $settings['default_theme_url']. '/scripts/snowstorm.js"></script>';



Replace with:

$snow_index = 0;
if(!empty($_REQUEST['action']) || !empty($_REQUEST['topic']) || !empty($_REQUEST['board']) || !empty($_REQUEST['page']) || !empty($_REQUEST['blog']))
$snow_index = 1;
if(empty($snow_index)) {
$context['insert_after_template'] .= '
<script type="text/javascript"><!-- // --><![CDATA[
var ADK_Secolor = "#'. $modSettings['ADK_Secolor'] .'";
var ADK_SeChart = "'. $ADK_SeChart .'";
var ADK_SeVelox = "'. $ADK_SeVelox .'";
var ADK_SeVeloy = "'. $ADK_SeVeloy .'";
var ADK_SeStick = "'. $ADK_SeStick .'";
var ADK_SeMouse = "'. $ADK_SeMouse .'";
// ]]></script>
  <script type="text/javascript" src="'. $settings['default_theme_url']. '/scripts/snowstorm.js"></script>';
}
^HeRaCLeS^
*¤×• Ni te molestes en enviarme un Mp porque el soporte lo doy solo por el foro •×¤*


SMFPersonal

mikedijital

The whole forum crashed without the snoweffect even turned on

Parse error: syntax error, unexpected $end in /home/content/m/i/k/mikedijital/html/deggi5/Sources/Subs-ADK_Snoweffect.php on line 171


166 require_once($sourcedir . '/ManageSettings.php');
167
168 $context['page_title'] = $txt['Adkseffect_name'];
169
170 $subActions = array(
171
172 'AdkSnowEffect' => 'AdkSnowEffect',
173
174 );





^HeRaCLeS^

^HeRaCLeS^
*¤×• Ni te molestes en enviarme un Mp porque el soporte lo doy solo por el foro •×¤*


SMFPersonal

Inti31

#50
works nice: see demo: http://test.epica-forum.de

good job

find my german translation att'ed

cheers inti31



my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

mikedijital

here is my subs adksnoweffect page 


thanks   =)

^HeRaCLeS^

mikedijital Test please...




Inti31 Thank you very much for the translation ;)
^HeRaCLeS^
*¤×• Ni te molestes en enviarme un Mp porque el soporte lo doy solo por el foro •×¤*


SMFPersonal

mikedijital

It works!, I have one final question. Im using ADKPortal and the snow is on the main portal page, is there something i can tweek in the code to get it to show on the /index.php?action=forum  page as well?


Thank you soooooooooooooooooo much,   my members thank you too!!!   =)

Inti31

is that code part in Subs-ADK_Snoweffect.php (line 55-60) necessary to implement? For me it works without..


$snow_index = 0;
if(!empty($_REQUEST['action']) || !empty($_REQUEST['topic']) || !empty($_REQUEST['board']) || !empty($_REQUEST['page']) || !empty($_REQUEST['blog']))
$snow_index = 1;

if(empty($snow_index)) {


cheers Inti31
my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

mikedijital

The first 0 is what turns it on and off on my portal front page  the second 0, which is a 1 in this code turns the snow on globally   

enik

Quote from: Inti31 on November 29, 2012, 11:39:09 AM
works nice: see demo: http://test.epica-forum.de

good job

find my german translation att'ed

cheers inti31

Thanks for your help, i added this translation into the mod.

Regards enik....

DMR123

It wouldnt install into my theme, do you know any way around this?

Thanks

lurkalot

Quote from: DMR123 on December 03, 2012, 11:04:00 AM
It wouldnt install into my theme, do you know any way around this?

Thanks

On the first page of this thread.  I'm assuming it still applies.

Quote from: Scratching my Head on August 25, 2011, 03:58:31 PM
Love it!

And, for each custom theme?  You need to move a copy of  the included file "snowstorm.js" to "

/Themes/*YOUR-CUSTOM-THEME*/scripts


...then it works for each theme.

Love this! Thanks so much!

DMR123

Execute Modification   ./Themes/BnR2/index.template.php   Test failed
   1.   Replace   ./Themes/BnR2/index.template.php   Test failed

Advertisement: