summaryrefslogtreecommitdiff
path: root/templates/html_head_inc.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/html_head_inc.tpl')
-rw-r--r--templates/html_head_inc.tpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/html_head_inc.tpl b/templates/html_head_inc.tpl
new file mode 100644
index 0000000..0029b51
--- /dev/null
+++ b/templates/html_head_inc.tpl
@@ -0,0 +1,9 @@
+{if $unreadMsgs and $gBitUser->getPreference('messages_alert') == 'y' and !$smarty.cookies.messages_alert_sent}
+ <script type="text/javascript">
+ var redirect = confirm( '{tr}You have {$unreadMsgs} message(s) waiting for you in your personal message box. Click OK to view your messages.{/tr}' );
+ if( redirect == true ) {ldelim}
+ window.location="{$smarty.const.MESSAGES_PKG_URL}message_box.php";
+ {rdelim}
+ BitBase.setCookie( 'messages_alert_sent', true );
+ </script>
+{/if}