JoyFreak Well-known member Sep 14, 2018 #1 Is there a way I can make latest posts like this (gif image):
DL6 Well-known member Sep 14, 2018 #2 In the thread_list_macros template find HTML: <div class="contentRow-minor contentRow-minor--hideLinks"> <ul class="listInline listInline--bullet"> <li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li> <li><xf:date time="{$thread.last_post_date}" /></li> </ul> </div> add above this: HTML: <div class="contentRow-minor"> {{ snippet($thread.FirstPost.message, 120, {'stripBbCode': true}) }} </div> Change the number (120) to the desired character limit. Upvote 0 Downvote
In the thread_list_macros template find HTML: <div class="contentRow-minor contentRow-minor--hideLinks"> <ul class="listInline listInline--bullet"> <li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li> <li><xf:date time="{$thread.last_post_date}" /></li> </ul> </div> add above this: HTML: <div class="contentRow-minor"> {{ snippet($thread.FirstPost.message, 120, {'stripBbCode': true}) }} </div> Change the number (120) to the desired character limit.
JoyFreak Well-known member Sep 14, 2018 #3 Thank you so much! But how do I limit it to one widget out of two widgets that use the Latest Post? As I think this will affect both. Upvote 0 Downvote
Thank you so much! But how do I limit it to one widget out of two widgets that use the Latest Post? As I think this will affect both.
ŽivaAkcija Well-known member Sep 14, 2018 #4 how to add visible border between post? Upvote 0 Downvote
JoyFreak Well-known member Sep 14, 2018 #5 DL6 said: In the thread_list_macros template find HTML: <div class="contentRow-minor contentRow-minor--hideLinks"> <ul class="listInline listInline--bullet"> <li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li> <li><xf:date time="{$thread.last_post_date}" /></li> </ul> </div> add above this: HTML: <div class="contentRow-minor"> {{ snippet($thread.FirstPost.message, 120, {'stripBbCode': true}) }} </div> Change the number (120) to the desired character limit. Click to expand... Ah yes, thats great thanks but the gif image was mostly for the fact the posts slide up and wanted to know how I can do that too? Upvote 0 Downvote
DL6 said: In the thread_list_macros template find HTML: <div class="contentRow-minor contentRow-minor--hideLinks"> <ul class="listInline listInline--bullet"> <li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li> <li><xf:date time="{$thread.last_post_date}" /></li> </ul> </div> add above this: HTML: <div class="contentRow-minor"> {{ snippet($thread.FirstPost.message, 120, {'stripBbCode': true}) }} </div> Change the number (120) to the desired character limit. Click to expand... Ah yes, thats great thanks but the gif image was mostly for the fact the posts slide up and wanted to know how I can do that too?
JoyFreak Well-known member Sep 14, 2018 #6 I added it to my Threads its working great just need it to move up like a list. Last edited: Sep 14, 2018 Upvote 0 Downvote
JoyFreak Well-known member Sep 15, 2018 #8 ŽivaAkcija said: how to add visible border between post? Click to expand... .block[data-widget-definition="new_posts"] .contentRow { margin-left: -15px; margin-right: -15px; } .block[data-widget-definition="new_posts"] .block-row { border-top: 1px dotted #c9c9c9; clear: both; margin-left: 15px; margin-right: 15px; } Upvote 0 Downvote
ŽivaAkcija said: how to add visible border between post? Click to expand... .block[data-widget-definition="new_posts"] .contentRow { margin-left: -15px; margin-right: -15px; } .block[data-widget-definition="new_posts"] .block-row { border-top: 1px dotted #c9c9c9; clear: both; margin-left: 15px; margin-right: 15px; }
🔥 🔥Iggy🔥 Well-known member May 9, 2019 #11 DL6 said: In the thread_list_macros template find HTML: <div class="contentRow-minor contentRow-minor--hideLinks"> <ul class="listInline listInline--bullet"> <li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li> <li><xf:date time="{$thread.last_post_date}" /></li> </ul> </div> add above this: HTML: <div class="contentRow-minor"> {{ snippet($thread.FirstPost.message, 120, {'stripBbCode': true}) }} </div> Change the number (120) to the desired character limit. Click to expand... we want to only change this to OP name.....will anyone share the syntax pls? something like {'name': $thread.original_poster_cache.username} you know what i mean? i dont think i could ever guess it hmm... Upvote 0 Downvote
DL6 said: In the thread_list_macros template find HTML: <div class="contentRow-minor contentRow-minor--hideLinks"> <ul class="listInline listInline--bullet"> <li>{{ phrase('latest_x', {'name': $thread.last_post_cache.username}) }}</li> <li><xf:date time="{$thread.last_post_date}" /></li> </ul> </div> add above this: HTML: <div class="contentRow-minor"> {{ snippet($thread.FirstPost.message, 120, {'stripBbCode': true}) }} </div> Change the number (120) to the desired character limit. Click to expand... we want to only change this to OP name.....will anyone share the syntax pls? something like {'name': $thread.original_poster_cache.username} you know what i mean? i dont think i could ever guess it hmm...