YAFLogo

Kamyar
  • Kamyar
  • 100% (Exalted)
  • YAF Developer Topic Starter
15 years ago
Trying to post a new reply by a non-moderator user before a certain amount of time period should cause a notification message to be displayed to the user. (The "You can't post in the next ... seconds." message)

I'm using latest SVN build (2999) and, this notification doesn't show up.

The reason is for the ' (single quote) character in can't word. The code does not use the correct javascript string.

The Solution:

SVN build 2999: App_Code/YAF/Modules/PagePopupModule.cs Line: 123

string displayMessage = PageContext.LoadMessage.LoadStringDelimited("<br />");
// This line has been added to make the popup module work correctly with js sensitive characters.
displayMessage = YAF.Classes.Core.LoadMessage.CleanJsString(displayMessage);

If at first you don’t succeed, call it version 1.0
Sponsor