1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Forum styling - allow for striping of forum posts.

This commit is contained in:
Cameron 2015-05-08 12:50:30 -07:00
parent 2f3bbeef53
commit 4da0e4789d
4 changed files with 28 additions and 13 deletions

View File

@ -1,11 +1,14 @@
.forum-viewforum-pagination { margin:0 }
/* Forum Styling */
#poll.tab-pane .form-group { margin-left: 0; margin-right:0}
.forum-viewforum-pagination { margin:0 }
#forum-viewtopic li img.user-avatar { margin-bottom:10px; display:inline-block }
#poll.tab-pane .form-group { margin-left: 0; margin-right:0}
.forum-attachment-file { margin-top:15px; }
#forum-viewtopic li.forum-viewtopic-post { border-top:1px solid #EEE; padding:15px 10px }
#forum-viewtopic li.forum-viewtopic-post:nth-child(odd) { background: #F5F5F5 }
#forum-viewtopic li ul.thumbnails { margin-top:15px }
#forum-viewtopic li img.user-avatar { margin-bottom:10px; display:inline-block }
#forum-viewtopic li ul.thumbnails { margin-top:15px}
.forum-user-combo { padding-bottom:5px }
.forum-attachment-file { margin-top:15px; }
.forum-user-combo { padding-bottom:5px }

View File

@ -78,7 +78,10 @@ $(document).ready(function()
// alert(d.html);
if(d.html != false)
{
$('#forum-viewtopic li:last').after(d.html).hide().slideDown(800);
// $('#forum-viewtopic li:last').after(d.html).hide().slideDown(800);
$(d.html).appendTo("#forum-viewtopic").hide().slideDown(1000);
}
$('#forum-quickreply-text').val('');
return;

View File

@ -387,7 +387,7 @@ if ($forum->checkPerm($thread->threadInfo['thread_forum_id'], 'post') && $thread
if (!vartrue($forum_quickreply))
{
$ajaxInsert = ($thread->pages == $thread->page || $thread->pages == 0) ? 1 : 0;
// $ajaxInsert = 1;
// echo "AJAX-INSERT=".$ajaxInsert ."(".$thread->pages." vs ".$thread->page.")";
$frm = e107::getForm();
@ -402,6 +402,14 @@ if ($forum->checkPerm($thread->threadInfo['thread_forum_id'], 'post') && $thread
</div>
</form>";
if(E107_DEBUG_LEVEL > 0)
{
// echo "<div class='alert alert-info'>Thread id: ".$threadId."</div>";
// print_a($this);
}
// Preview should be reserved for the full 'Post reply' page. <input type='submit' name='fpreview' value='" . Preview . "' /> &nbsp;
}

View File

@ -324,13 +324,13 @@ $FORUM_VIEWTOPIC_TEMPLATE['start'] = "
<ul id='forum-viewtopic' class='unstyled list-unstyled'>
<li class='divider'></li>
";
$FORUM_VIEWTOPIC_TEMPLATE['thread'] = "
<li id='post-{POSTID}'>
<li id='post-{POSTID}' class='forum-viewtopic-post'>
<div class='hidden-xs row row-fluid btn-navbar navbar-btn'>
<div class='col-xs-12'><hr /></div>
<div class='col-xs-2 span2 left text-left'>
<div class='row'>
@ -345,7 +345,7 @@ $FORUM_VIEWTOPIC_TEMPLATE['thread'] = "
</div>
<div class='row row-fluid' >
<div class='visible-xs col-xs-12'><hr /></div>
<div class='col-xs-12 col-md-2 span2 left'>
<div class='row'>
@ -382,7 +382,8 @@ $FORUM_VIEWTOPIC_TEMPLATE['thread'] = "
</li>
<li class='divider'></li>";
";
$FORUM_VIEWTOPIC_TEMPLATE['end'] = "</ul>
<div class='row row-fluid clearfix'>