vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Dismissible notice conditional (https://vborg.vbsupport.ru/showthread.php?t=254625)

need2fart 12-03-2010 05:42 PM

Dismissible notice conditional
 
I'm trying to display a javascript snow on my forum but some of my members are saying it's lagging their browsers. Mainly users with slow CPU's (pentium 4's).

I had a bright idea to create a dismissible notice that says "Stop snow" And I have it.

I was going to create a conditional like this replacing the normal javascript:

Code:

<if condition="in_array($bbuserinfo['dismissednotice'], array(14))">No more snow:)<else /><script type="text/javascript" src="snow.js"></script></if>
But the problem is... I don't know what the dismissed notice syntax is. What is the dismissed notice called? The notice ID is 14.

Please help? I bolded the part that is wrong, what is the proper name for dismissed notices for users?

Thanks.

need2fart 12-05-2010 03:47 PM

Anyone know?

Thanks.

BirdOPrey5 12-05-2010 05:24 PM

Maybe
Code:

<if condition="$show[dismiss_link]">
That's in the navbar_noticebit template.

need2fart 12-09-2010 05:13 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2129687)
Maybe
Code:

<if condition="$show[dismiss_link]">
That's in the navbar_noticebit template.

How do you think I could integrate that with a specific notice ID?

BirdOPrey5 12-09-2010 12:03 PM

Don't know... :(


All times are GMT. The time now is 11:42 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.01095 seconds
  • Memory Usage 1,719KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete