vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Advanced Snowstorm Integration for Christmas (https://vborg.vbsupport.ru/showthread.php?t=132896)

WildSharky 12-01-2006 07:19 AM

Ok i got it when you make the fleid make sure the yes and no are all caps like this..

YES
NO

Like in doberlec post on the top...

As to doberlec man if i wanted to learn i wouldnt need your hack so come on now you said you would support this hack do so or dont say you will.. were not all masters of php.. And thanks for the hack..

doberlec 12-01-2006 07:36 AM

Quote:

Originally Posted by WildSharky (Post 1129252)
As to doberlec man if i wanted to learn i wouldnt need your hack so come on now you said you would support this hack do so or dont say you will.. were not all masters of php.. And thanks for the hack..

Don't get me wrong: I do support this hack, as you can see I post my comments here and I also updated my hack description to incorporate the suggestions here. And I also did give the people here exact instructions on how to get this thing going. I even added a short Q&A for debugging. As for the "master of php", I don't consider myself as a master but I do have basic knowledge of programming. Operators are not only used in php but in every script/programming language in existance. Copy & pasting hacks into your forum is one thing but you should also know what the piece of code is doing, or otherwise you could damage your forum very fast.

WildSharky 12-01-2006 07:41 AM

but that is why we backup stuff most dont know alot about it just like i didnt know that if you use Yes and No it wouldnt work but i know some php but i dont want to learn all that just to added this to my site..

And yes i see you added all that but even i got that part wrong so make it clearer please to make the yes and no all caps or change your codes yes and no to what they want to use..

and again nice hack thanks..

yoyoyoyo 12-01-2006 10:16 AM

Quote:

Originally Posted by doberlec (Post 1129248)
Dude, $bbuserinfo[field8] !='YES' doesn't make any sense. Why should the Javascript be included when the Users have set the Snow-Mode to NO?!

whoops- sorry- that's what I get for posting late at night... the correct code is this:

put this at the bottom of the header template:
Code:

<if condition="$bbuserinfo[field8]=='YES'">
<script type="text/javascript" src=" /forum/script/snowstorm.js"></script>
</if>

In your navbar template find:
Code:

<if condition="$show['member']">
   
        <td class="alt2" valign="top" nowrap="nowrap">
        <div class="smallfont">

add below:
Code:

<if condition="$bbuserinfo[field8]=='YES'">
<a href="javascript:snowStorm.randomizeWind()">Change Wind</a>&nbsp;&nbsp;<a href="javascript:snowStorm.stop()">Stop snowing</a><br /><br />
</if>

naturally substitute your proper profile field ID numbers as needed.

Julie 12-01-2006 02:01 PM

Thanks for this cute script! :)

Jeordie015 12-01-2006 09:16 PM

Is anyone else having problems with the snow collecting at the bottom of the screen? I don't want it to build up. I have it set to 0 in the script, but it still does it.

SMC21 12-03-2006 08:11 PM

Works famously for me. Remember to make sure the image path in the Script file is correct, that's what caused mine not to work at first. I had to change it from relative to absolute

redlabour 12-06-2006 01:08 PM

Best Snow Hack ever and ever !!! :)

But can somebody edit the Code or give me a hint so that Guest can see it too as Default (Sure i understand why they can?t deactivate in it Profile but this is no reason that Guest cant see it as Default turned on! :D ) ?

Surviver 12-09-2006 11:19 AM

Quote:

Originally Posted by redlabour (Post 1133179)
Best Snow Hack ever and ever !!! :)

But can somebody edit the Code or give me a hint so that Guest can see it too as Default (Sure i understand why they can?t deactivate in it Profile but this is no reason that Guest cant see it as Default turned on! :D ) ?



Code:

<if condition="$bbuserinfo['field8']=='YES' OR !$show['member']">
<script type="text/javascript" src="[path to your script]/script/snowstorm.js"></script>
</if>

#
#
Try this ;)

dobbs 12-09-2006 06:12 PM

After 30 minutes of following the directions here is what i had to do to make it work



change this code:
PHP Code:

<if condition="$bbuserinfo['field8']=='YES'">
<
script type="text/javascript" src="[path to your script]/script/snowstorm.js"></script>
</if> 

to this code:
PHP Code:

<if condition="$bbuserinfo['field8']=='YES'">
<
script type="text/javascript" src="/forum/script/snowstorm.js"></script>
</if> 

and in the script change my path from:

PHP Code:

  var imagePath 'image/snow/'// relative path to snow images 

to this:

PHP Code:

  var imagePath '/image/snow/'// relative path to snow images 



All times are GMT. The time now is 11:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01153 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete