vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Snow & other Effects for your forum (https://vborg.vbsupport.ru/showthread.php?t=99991)

ggiersdorf 11-03-2005 09:18 PM

Very Nice man, but one question could this be made to be turned on/off through the admin CP and not through file edits. or Set to schedule like turn it on randomly etc so It does not get old fast..?

Mabey we can all work on some different types of Icons to float around Im pretty good with Photoshop but my coding skills lack :P Id be willing to work on these

heck even mabey add in a random gif from specificed folder to mix it up.

Rocol 11-04-2005 09:08 AM

Nice one .. will save for Xmas :cool:

davidw 11-04-2005 10:34 AM

Is there any way to change the path (rather than /forum) in the hack? I can do it manually, but not everyone has it set up in their /forum directory. Which is what is causing some problems (me for the first 2 seconds).
Awesome hack, btw. I'm going to play around with leaves later. :)

Reeve of shinra 11-04-2005 11:14 AM

does it play well in firefox?

lairnoc 11-04-2005 12:14 PM

it works fine for me only the big snow not :) thnx for the snow

Watson 11-04-2005 03:10 PM

cool. Will install this in December!

evenmonkeys 11-04-2005 04:21 PM

Very nice! Works in all browsers! Anyone have any ideas how I can make this optional per usergroup without new styles or usergroups?

SHANE-D-PAIN 11-04-2005 05:15 PM

You could add conditionals around the code to allow for certain usergroups to see it.

I will use this at xmas! :)

SHANE-D-PAIN 11-04-2005 05:29 PM

Quote:

Anyone have any ideas how I can make this optional per usergroup without new styles or usergroups?
Code:


<if condition="is_member_of($bbuserinfo[usergroupid], array(1,2,3,4,5))">
the code here
</if>

Where 1,2,3,4 & 5 are the ids of the Usergroups that this is to be displayed to.

If you want to make it so the users themselves can view to see it you could create a new user profile field and use that to allow them to choose. Infact im going to get the code for it. :P - Just incase anyone wants it.

SHANE-D-PAIN 11-04-2005 05:56 PM

Right, here goes, I have never posted anything like this so be gentle :P

Go to AdminCP => Profile Fields => Add new Profile field => Single Select Menu

Title: View Xmas Snow Flakes?
Description: Choose yes to have little Christmas Snowflakes Floating around.
Options:
No
Yes
Set Default: Yes, but No First Blank Option
Editable By User: Yes
Display Page: Options: Other Options

Write down your field# . i.e field6


Here is the code, I am using the small snowflakes as example code.


Code:

<if condition="$bbuserinfo[fieldX] != 'No'">
<!-- Snow Effect(Small SnowFlakes) by Blackpheonix ? to Dynamic Drive -->
<script type="text/javascript" src="/forum/images/misc/snow.js">
</script>
<!-- /Snow Effect(Small SnowFlakes) by Blackpheonix ? to Dynamic Drive -->
</if>

Change X to the Field id.


Just remember to wrap the code with the if tags provided. :)

Code:

<if condition="$bbuserinfo[fieldX] != 'No'">
 
</if>


I tested this out on my site so I know it works.


All times are GMT. The time now is 05:51 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.01124 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)bbcode_code_printable
  • (1)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