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)

ukDesign 12-04-2006 07:47 PM

great hack thanks.

blogtorank 12-04-2006 08:39 PM

Σας ευχαριστούμε πάρα πολΰ !!!!

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?


haris_led 12-05-2006 01:10 AM

Quote:

Originally Posted by blogtorank (Post 1131922)
Σας ευχαριστούμε πάρα πολΰ !!!!

να στε καλά! :D hehehe

bada_bing 12-05-2006 01:20 AM

Any chance this works with VB 3.5.x ?

TrueDeath 12-05-2006 06:28 AM

Quote:

Originally Posted by haris_led (Post 1131522)
Of course :)
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 could always run a mysql query to update the field to yes for every user rather than it being empty.

Quote:

Originally Posted by bada_bing (Post 1132123)
Any chance this works with VB 3.5.x ?

Yes it should work in 3.5.x

alawee.blawee 12-05-2006 09:05 AM

Sir

I applyed your hack but I'm having a problem with the page size

shown in the attachment below

can you help me please fixing it?

Q139 12-05-2006 09:33 PM

I used the method posted here to let the members turn it off and on...works perfectly....

https://vborg.vbsupport.ru/showthread.php?t=99991

Look below "Few addons for this modification."

krazycivik 12-06-2006 11:18 PM

awsome thank you

blind-eddie 12-07-2006 01:25 PM

Nice hack,....I installed it......works great....I dont see a installed button here

blind-eddie 12-07-2006 01:27 PM

what is the Portal Output Global Variables so I can have it work on vba pages?


All times are GMT. The time now is 09:40 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.01463 seconds
  • Memory Usage 1,745KB
  • 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_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