File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed
vanilla/applications/vanilla/views/discussion Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 180180$ Configuration ['Vanilla ' ]['Activity ' ]['SpamLock ' ] = '120 ' ;
181181$ Configuration ['Vanilla ' ]['ActivityComment ' ]['SpamCount ' ] = '5 ' ;
182182$ Configuration ['Vanilla ' ]['ActivityComment ' ]['SpamTime ' ] = '60 ' ;
183- $ Configuration ['Vanilla ' ]['ActivityComment ' ]['SpamLock ' ] = '120 ' ;
183+ $ Configuration ['Vanilla ' ]['ActivityComment ' ]['SpamLock ' ] = '120 ' ;
184+
185+ // Should users be automatically pushed to the last comment they read in a discussion?
186+ $ Configuration ['Vanilla ' ]['Comments ' ]['AutoOffset ' ] = false ;
Original file line number Diff line number Diff line change 2727$ this ->fireEvent ('AfterPageTitle ' );
2828
2929// Write the initial discussion.
30- include $ this ->fetchViewLocation ( ' discussion ' , ' discussion ' );
31- echo ' </div> ' ; // close discussion wrap
32- $ this -> fireEvent ( ' AfterDiscussion ' );
30+ if ( $ this ->data ( ' Page ' ) == 1 ) {
31+ include $ this -> fetchViewLocation ( ' discussion ' , ' discussion ' );
32+ echo ' </div> ' ; // close discussion wrap
3333
34+ $ this ->fireEvent ('AfterDiscussion ' );
35+ } else {
36+ ?>
37+ <div class="Item ItemDiscussion">
38+ <div class="Item-BodyWrap">
39+ <div class="Item-Body">
40+ <?php
41+ Gdn::controller ()->fireEvent ('Replies ' );
42+ ?>
43+ </div>
44+ </div>
45+ </div>
46+ <?php
47+ echo '</div> ' ; // close discussion wrap
48+ }
3449
3550echo '<div class="CommentsWrap"> ' ;
3651
You can’t perform that action at this time.
0 commit comments