Ask Your Question
1

How come the greeting for first time users appears?

asked 2013-05-18 07:21:03 -0500

kate_r gravatar image

updated 2013-05-18 12:07:25 -0500

Evgeny gravatar image

Hi

If I understand it correctly, the template for the greeting is widgets/system_messages.html but the div block has

style="display:none".

How come when a user arrives for the first time, the div block becomes

style=""

Which function changes the style of that block?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-05-18 12:06:53 -0500

Evgeny gravatar image

The message is shown by javascript, by jQuery fadeIn() at: askbot/media/js/utils.js:notify().

edit flag offensive delete link more

Comments

So does that mean widgets/system_messages.html is not used at all to generate the greeting?

kate_r gravatar imagekate_r ( 2013-05-20 10:45:30 -0500 )edit

That specific greeting shows just once, there was a complaint when it was showing to the anonymous users every time. The way messages work: they are initially printed with display none, then faded in with js to get the animation effect.

Evgeny gravatar imageEvgeny ( 2013-05-20 13:44:47 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-05-18 07:21:03 -0500

Seen: 65 times

Last updated: May 18 '13