inherit
239943
0
Apr 20, 2019 2:21:07 GMT -8
jrj84105
136
December 2016
jrj84105
|
Post by jrj84105 on Jan 13, 2017 16:59:52 GMT -8
I suspect that this is not doable, but I'll ask anyway. The thread list contains a column displaying the number of replies. When the number of replies is clicked a box opens up showing the thread participants. Is there any way to display the thread summary in this box instead of or in addition to the participants? If the answer is no, has anyone used thread summaries outside the reply context or is this impossible?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jan 13, 2017 22:08:52 GMT -8
The thread summary and the post list templates employ the $[posts] variable which would not be available on a page that listed threads . What you do have on a page that lists threads is access to the contents of the first and last post of each thread through the $[thread.first_post.message] and $[thread.last_post.message] variables. so if you want to see a preview of the last post then try the following: - Edit the thread list template and change the line
<td class="latest last">by $[thread.last_post.created_by]<br />$[thread.last_post.created_on]</td>
to
<td class="latest last">by $[thread.last_post.created_by]<br /><div class="last-post-content hide">$[thread.last_post.message]</div>$[thread.last_post.created_on]</td>
- Switch over to the board template and at the very bottom add the following
<script> $(".container.threads .latest .time").on('click', function (ev) { ev.stopPropagation(); var cell = ev.target.parentNode; $(cell).tipTip({ content:'<div style="max-height:600px;max-width:768px;overflow:auto;" class="last-post-content-tiptip" onclick="return false"><h1>Last Post Preview</h1>'+$('.last-post-content', cell).html()+'</div>', activation: 'manual', defaultPosition:'left', fadein: 1500, fadeout, 1000, maxWidth: '768px'}).tipTip($('.last-post-content-tiptip').is(':visible')?'hide': 'show'); return false; })
</script>
- Click on the date/time in the last post column to show/hide the contents of the last post
|
|
inherit
239943
0
Apr 20, 2019 2:21:07 GMT -8
jrj84105
136
December 2016
jrj84105
|
Post by jrj84105 on Jan 13, 2017 23:43:39 GMT -8
Thanks. I'll work on that change. Would the thread summary be available in Search Page_Post results? Since the thread summary is unavailable in the thread list, I could achieve almost the same effect in search_Post results if I could replace the post body with the thread summary. www.uofuboard.com/posts/recent
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jan 14, 2017 6:44:01 GMT -8
That Post Results sub-template calls on the $[post_list] variable which is simply a variable that calls on the Thread > Post List sub-template and that sub-template contains the $[post] variable but it is populated by the posts returned from the search not the posts in a thread. If you want to see the full contents of a thread you'll need to crack it open, most of us have to click on a link to read the contents of a thread beyond one or two posts.
|
|