PDA

View Full Version : Dismissible notice conditional


need2fart
12-03-2010, 05:42 PM
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:

<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
<if condition="$show[dismiss_link]">

That's in the navbar_noticebit template.

need2fart
12-09-2010, 05:13 AM
Maybe
<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... :(