not a bug [English] Few Problems / Bugs

Reitak No, it's not. You can locate it wherever you want. Just insert the code in page_header.tpl outside the sidebar part
page_header.tpl+ вставить в удобное место<!-- IF $bb_cfg['chat'] -->
It means insert the code wherever you want in page_header.tpl
 
Another bug

When you disable all forum / topics for guest (you have registered hidden only), so they see only login and you have enabled Latest and network news on index, guest can click on that news and after he can browse all board as guest.
Please fix this bug, make it, when he click on that news, login page show him, thanks
 
can you tell me please, where how fix time?

I am from Slovakia, we have now 10:10
All guest have time 5:10
All registered have time 12:10
Server time on putty (date) I have 10:10 so its OK.
 
hm thanks, but i am not programator :D hope someone will explain what to change there, because it is frustrating, all new post are from future :D
 
timezone php is Default timezone Europe/Bratislava, its ok

what is same string?

in index data i have

case 'change_tz':
$tz = (int) $this->request['tz'];
if ($tz < -12) $tz = -12;
if ($tz > 13) $tz = 13;
if ($tz != $bb_cfg['board_timezone'])
{
// Set current user timezone
DB()->query("UPDATE ". BB_USERS ." SET user_timezone = $tz WHERE user_id = ". $userdata['user_id'] ." LIMIT 1");
$bb_cfg['board_timezone'] = $tz;
cache_rm_user_sessions ($userdata['user_id']);
}
break;

in header

<!-- IF LOGGED_IN -->
<script type="text/javascript">
ajax.index_data = function(tz) {
ajax.exec({
action : 'index_data',
mode : 'change_tz',
tz : tz
});
};
ajax.callback.index_data = function(data) {};
$(document).ready(function() {
x = new Date();
tz = -x.getTimezoneOffset()/60;
if (tz != {BOARD_TIMEZONE})
{
ajax.index_data(tz);
}
});
</script>
 
Back
Top