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 Home Enhancements - Seasonal Forum Effects (https://vborg.vbsupport.ru/showthread.php?t=132657)

m002.p 12-10-2007 08:39 PM

Quote:

I'd love to use this effect but it's a nightmare in Firefox. Not only does in not scroll to the bottom of the page (as mentioned many times already) but it also flickers the bottom scroll bar as well which gets annoying fast to my members.

Can someone please, please, please provide a concrete solution that actually works in Firefox?

Many thanks.
Works fine with firefox for me. Try checking your FF JS settings....

Quote:

well, im officially stumped...tried all that, ensured my code was placed correctly...shows everywhere but on the CMPS homepage. Shows on forums home page, arcade...everywhere else
Sounds to me that you need to provide a full URL to the JS file mate. In other words, for the code provided in each header template, change:

Code:

<script type="text/javascript" src="season/$vboptions[guidesvbs_type].js"></script>
To this:
Code:

<script type="text/javascript" src="http://www.myforums.com/season/$vboptions[guidesvbs_type].js"></script>
To recap, change all the instances of the above code to a full SRC. Check in your FTP browser to see where exactly the "season" folder is located. Then link to it as demonstrated above. Good Luck!

Martell 12-12-2007 01:24 PM

Thanks :up:

Jimboj79 12-13-2007 04:24 PM

excellent hack :) thanks

|Jordan| 12-16-2007 12:51 AM

Quote:

Originally Posted by haris_led (Post 1131522)
Of course :)

Before making the template edits, do theese:
1) AdminCP -> User Profile Fields -> Add New User Profile Field
2) Choose "Single Selection Radio Buttons"
3) Fill in all required fields and insert two values in the Options Box: (seperated with a return)
YES
NO

4) Set "Default" to YES
5) Hit "Save" and memorize the name of your field, in my case it's "field8".
6) Now, instead of adding
Code:

<!-- Start vBGuides Season -->
<if condition="$vboptions[guidesvbs_onoff] == 1">
<if condition="$vboptions[guidesvbs_area] == 0">
<script type="text/javascript" src="season/$vboptions[guidesvbs_type].js"></script>
</if></if>
<!-- End vBGuides Season -->

at the top of the header, add this:
Code:

<!-- Start vBGuides Season -->
<if condition="$bbuserinfo['fieldX']=='YES'">
<if condition="$vboptions[guidesvbs_onoff] == 1">
<if condition="$vboptions[guidesvbs_area] == 0">
<script type="text/javascript" src="season/$vboptions[guidesvbs_type].js"></script>
</if></if>
</if>
<!-- End vBGuides Season -->

7)Also, instead of adding
Code:

<!-- Start vBGuides Season -->
<if condition="$vboptions[guidesvbs_onoff] == 1">
<if condition="$vboptions[guidesvbs_area] == 1">
<script type="text/javascript" src="season/$vboptions[guidesvbs_type].js"></script>
</if></if>
<!-- End vBGuides Season -->

in forumhome, add this:
Code:

<!-- Start vBGuides Season -->
<if condition="$bbuserinfo['fieldX']=='YES'">
<if condition="$vboptions[guidesvbs_onoff] == 1">
<if condition="$vboptions[guidesvbs_area] == 1">
<script type="text/javascript" src="season/$vboptions[guidesvbs_type].js"></script>
</if></if>
</if>
<!-- End vBGuides Season -->

You should replace the fieldX to the one specified on step 5 :)

Known bug: If i set from acp the default to YES, it does not show the snowflakes, but my users, must set it to yes from user cp, and save, to see them. Any ideas to make it working for all users, without having to enable it for the first time?

You can force it enabled to all current users by executing the following command on your database:

Code:

UPDATE userfield SET fieldXX='YYYYY'
Where XX is the id of the field you added and YYYYY is the default option.

|Jordan| 12-16-2007 01:00 AM

Snowflakes only display for the first section of the page. When i scroll down, they dont drop below. Is it supposed to be like that?

PepiMK 12-16-2007 04:02 AM

The add-on description says "Uses plugins", but that's not true, vbgseason.xml has no plugins defined at all.

Since I prefer a plugin over template edits (minimum of additional load, I admit, but makes it much easier to update; or to apply when you've got a dozen styles), here's what I added to make the template change unnecessary:

Add a new plugin, for hook global_complete, with the following code:
Code:

if ($vbulletin->options['guidesvbs_onoff']==1)
{ if ($vbulletin->options['guidesvbs_area']==0)
    $rplseason = "<body>";
  else if ($vbulletin->options['guidesvbs_area']==1)
    $rplseason = "<body>";
  $tempseason = "<!-- Start vBGuides Season -->\n";
  $tempseason .= '<script type="text/javascript" src="season/'.$vbulletin->options['guidesvbs_type'].'.js"></script>'."\n";
  $tempseason .= "<!-- End vBGuides Season -->\n";
  $output = str_replace($rplseason, $rplseason."\n".$tempseason, $output);
}

Btw, I see the same problem of snow flakes not falling when scrolling, that's why it's currently on my test forum and not on a live one yet.

(edit: small mistake in code above, no time to fix it immediately, was just a incentive to go plugin anyway ;) )

|Jordan| 12-16-2007 04:25 AM

I got both snow effects to scroll with the page (they go from top to bottom regardless if you scroll). I didn't make the code edits, just found them on a javascript site. I'm looking for other better javascripts for all the other effects.

Instructions: Extract the contents of the zip to your season folder.

fattony69 12-16-2007 08:43 AM

Does this kill the cpu and bandwidth?

tekguru 12-16-2007 08:59 AM

I know the option is in there to have the effects on the forum index page only, but for those of us running vBadvanced is there a way of showing them on that page only?

masterme 12-16-2007 03:43 PM

I have this nice mod now for a while, today updated it and still fine, but there is always a 'but'.
I use the small snowflake, but is there a way to make the snow fall a little bit more? Now I have 5/6 snowflakes falling reallys slow, but when I think of snow, I mean a little bit me than 5/6 flakes at a time on my screen.


All times are GMT. The time now is 06:29 PM.

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.01382 seconds
  • Memory Usage 1,751KB
  • 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
  • (8)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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