First time here? Check out the FAQ!
1

How come the greeting for first time users appears?
 

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
kate_r's avatar
107
kate_r
asked 11 years ago
Evgeny's avatar
13.2k
Evgeny
updated 11 years ago

Comments

see more comments

1 Answer

0

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago
link

Comments

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

kate_r's avatar kate_r (11 years ago)

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's avatar Evgeny (11 years ago)
see more comments