[FIX] mpos theme notification fix

This commit is contained in:
iAmShorty 2014-03-10 09:04:36 +01:00
parent e6088fed2e
commit e3317f320c
7 changed files with 54 additions and 4 deletions

View File

@ -182,6 +182,10 @@ if ($setting->getValue('maintenance'))
if ($motd = $setting->getValue('system_motd'))
$_SESSION['POPUP'][] = array('CONTENT' => $motd, 'DISMISS' => 'yes', 'ID' => 'motd', 'TYPE' => 'alert alert-info');
// check for deprecated theme
if ($setting->getValue('website_theme') == "mpos")
$_SESSION['POPUP'][] = array('CONTENT' => 'You are using an old Theme that will not be maintained in the future.', 'TYPE' => 'alert alert-warning');
// So we can display additional info
$smarty->assign('DEBUG', $config['DEBUG']);

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

@ -796,7 +796,7 @@ line-height: 150%;
/* Alerts */
#main h4.info {
#main h4.alert-info {
display: block;
width: 95%;
margin: 20px 30px 0 30px;
@ -812,7 +812,7 @@ padding: 10px 0;
text-indent: 40px;
font-size: 14px;}
#main h4.warning {
#main h4.alert-warning {
display: block;
width: 95%;
margin: 20px 30px 0 30px;
@ -828,7 +828,7 @@ padding: 10px 0;
text-indent: 40px;
font-size: 14px;}
#main h4.errormsg {
#main h4.alert-danger {
display: block;
width: 95%;
margin: 20px 30px 0 30px;
@ -844,7 +844,7 @@ padding: 10px 0;
text-indent: 40px;
font-size: 14px;}
#main h4.success {
#main h4.alert-success {
display: block;
width: 95%;
margin: 20px 30px 0 30px;

View File

@ -0,0 +1,39 @@
<div class="row">
<div class="col-lg-4">
<div class="panel panel-info">
<div class="panel-heading"><i class="fa fa-comments-o fa-fw"></i> Shoutbox
</div>
<div class="panel-body">
<form method="post" id="form" role="form">
<input type="hidden" id="nick" value="{$GLOBAL.userdata.username|escape}">
<div class="form-group">
<label>Message</label>
<input class="form-control" id="message" type="text" MAXLENGTH="255">
</div>
<input class="btn btn-success" id="send" type="submit" value="Shout it!">
</div>
</form>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-info">
<div class="panel-heading"><i class="fa fa-comments-o fa-fw"></i> Latest Messages
</div>
<div class="panel-body">
<div class="content">
<div id="loading"><img src="{$PATH}/images/loading.gif" alt="Loading..."></div>
<ul>
<!--
{section name=shoutbox loop=$SHOUTBOX}
{$SHOUTBOX[shoutbox].user}
{/section}
-->
<ul>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="{$PATH}/js/shoutbox.js"></script>
</div>
</div>

View File

@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS `shoutbox` (
`id` int(5) NOT NULL AUTO_INCREMENT,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`user` varchar(25) NOT NULL DEFAULT 'anonymous',
`message` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;