diff --git a/array.txt b/array.txt new file mode 100644 index 0000000..dcdaeab --- /dev/null +++ b/array.txt @@ -0,0 +1,3 @@ +Array +( +) diff --git a/js/scripts.js b/js/scripts.js index 39505be..4fd2326 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -479,6 +479,11 @@ function newPosts() { if (getUrlParameter('mode') == 'bookmarks') { return false; } + var page = getUrlParameter('page'); + if (typeof page !== 'undefined') { + return false; + } + $.get("index.php?ajax=1&since=" + id + "" + pageMode, function(data) { if (data) { var scroll = $(window).scrollTop(); @@ -507,7 +512,9 @@ window.setInterval(function() { timestamp = $(this).attr('id'); $(this).html(timeSince(timestamp)+' ago'); }); + newPosts(); + }, 25000); function themecheck(name){ diff --git a/modules/timeline.php b/modules/timeline.php index 0327f1b..18db713 100644 --- a/modules/timeline.php +++ b/modules/timeline.php @@ -352,7 +352,11 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) { $post['template'] = themes("get","templates/textpost.txt"); } else { - $post['template'] = themes("get","templates/post.txt"); + if ($logedin){ + $post['template'] = themes("get","templates/post.txt"); + } else { + $post['template'] = themes("get","templates/post_logout.txt"); + } } foreach ($post as $key => $value) { diff --git a/templates/post.txt b/templates/post.txt index 7994984..5d2082e 100644 --- a/templates/post.txt +++ b/templates/post.txt @@ -1,3 +1,4 @@ +