inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Jun 15, 2013 20:06:11 GMT -8
Is there anywhere in the layout templates to edit/customise the recent threads or posts? I have looked but can't find it. If it doesn't exist, can it be introduced? Would be appreciated
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Jun 16, 2013 8:49:29 GMT -8
Looks like the recent threads/posts go off their respective sections (thread list/post list) currently, and that's probably for the sake of consistency. Not a lot of admins have expressed interest in altering these sections... what were you looking to do, Stinky666?
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Jun 16, 2013 11:46:38 GMT -8
Looks like the recent threads/posts go off their respective sections (thread list/post list) currently, and that's probably for the sake of consistency. Not a lot of admins have expressed interest in altering these sections... what were you looking to do, Stinky666? Customize the look. For a recent thread list or post list, I would like to be able to make them different the normal thread list/posts.
|
|
inherit
149261
0
Sept 16, 2021 11:38:38 GMT -8
Chrissie
236
November 2009
isaacthered
|
Post by Chrissie on Jun 16, 2013 11:54:40 GMT -8
Looks like the recent threads/posts go off their respective sections (thread list/post list) currently, and that's probably for the sake of consistency. Not a lot of admins have expressed interest in altering these sections... what were you looking to do, Stinky666? Customize the look. For a recent thread list or post list, I would like to be able to make them different the normal thread list/posts. Quite a few folks (including myself) have requested for "recent threads" to show which board they are on. It's really important for a busy forum that has many different & often unrelated boards It's a pretty standard feature of other forum hosts
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Jun 16, 2013 11:57:51 GMT -8
Customize the look. For a recent thread list or post list, I would like to be able to make them different the normal thread list/posts. Quite a few folks (including myself) have requested for "recent threads" to show which board they are on. It's really important for a busy forum that has many different & often unrelated boards It's a pretty standard feature of other forum hosts It'd be great to have a variable for that, absolutely. So then it'd be great to be able to arrange it all how we want,t oo
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Jun 16, 2013 12:27:42 GMT -8
Looks like the recent threads/posts go off their respective sections (thread list/post list) currently, and that's probably for the sake of consistency. Not a lot of admins have expressed interest in altering these sections... what were you looking to do, Stinky666? Customize the look. For a recent thread list or post list, I would like to be able to make them different the normal thread list/posts. They probably intend to add in Recent page customization in v5.x, but after playing with this I figured out it's possible to do it now, to a limited degree, with some template modification. I did up this layout template for Board > Thread List:
<!--RECENT THREADS--> {if $[route.name] == "recent_threads"} {foreach $[thread]} <tr id="recent_$[thread.content_id]" class="$[thread.content_class]"> <td class="icon">$[thread.icon]</td> <td class="checkbox clickable">$[thread.checkbox]</td> <td class="main clickable" title="$[thread.short_content]"> <table> <tr> <td>$[thread.icons]</td> <td> $[thread.labels] <span class="link target">$[thread]</span> {if $[thread.pagination]}<div class="ui-micro-pagination">Pages: $[thread.pagination]</div>{/if} </td> </tr> </table> </td> <td class="created-by clickable">$[thread.created_by_user]</td> <td class="replies clickable">$[thread.replies]</td> <td class="views">$[thread.views]</td> <td class="latest last">by $[thread.last_post.created_by_user]<br />$[thread.last_post.date]</td> </tr> {/foreach} {if !$[thread]} <tr class="last"> <td class="last center" colspan="7">No threads were found.</td> </tr> {/if} {/if} <!--ELSE--> {if $[route.name] != "recent_threads"} {foreach $[thread]} <tr id="$[thread.content_id]" class="$[thread.content_class]"> <td class="icon">$[thread.icon]</td> <td class="checkbox clickable">$[thread.checkbox]</td> <td class="main clickable" title="$[thread.short_content]"> <table> <tr> <td>$[thread.icons]</td> <td> $[thread.labels] <span class="link target">$[thread]</span> {if $[thread.pagination]}<div class="ui-micro-pagination">Pages: $[thread.pagination]</div>{/if} </td> </tr> </table> </td> <td class="created-by clickable">$[thread.created_by_user]</td> <td class="replies clickable">$[thread.replies]</td> <td class="views">$[thread.views]</td> <td class="latest last">by $[thread.last_post.created_by_user]<br />$[thread.last_post.date]</td> </tr> {/foreach} {if !$[thread]} <tr class="last"> <td class="last center" colspan="7">No threads were found.</td> </tr> {/if} {/if}
Essentially it has twice the code - it checks to see if the page is the Recent Threads page (since Recent Threads shares the CSS with the normal thread list, just like Recent Posts page shares the same CSS that's utilized in ANY thread) and if it is, it appends a "recent_" to every unique table row I.D. which enables you to select it with your CSS, like so: And of course when viewing that thread from the normal thread list (IE from the board level) it will not have that CSS applied, as the "recent_" appendage only takes effect when the template determines you're on the recent threads list.
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Jun 16, 2013 12:39:12 GMT -8
Quite a few folks (including myself) have requested for "recent threads" to show which board they are on. It's really important for a busy forum that has many different & often unrelated boards It's a pretty standard feature of other forum hosts It'd be great to have a variable for that, absolutely. So then it'd be great to be able to arrange it all how we want,t oo Also wanted to mention that a variable for this does exist! Using the template modification above, I replaced the last post variable with Board:$[thread.board] and lookie look!
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Jun 16, 2013 12:55:40 GMT -8
David Clark, you're awesome Though for some reason it's adding lots of exclamation marks at the top of the thread list + recent threads for me, above the row for where it has "board | subject" etc text, but below the title bar This would be so much better and easier to have it as a real layout, you must admit. Recent threads and posts are such well used things, it'd be nice to be able to easily edit them too. I'd love to be able to streamline the recent posts especially, removing the mini profile and making lots of other edits. Custom widths for them would be ideal too, in the CSS, like how board list + thread list have. I had another tiny suggestion to add onto this, regarding the recent threads list, but I can't for the life of me remember it lol.
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Jun 16, 2013 13:08:19 GMT -8
Oops, I'm an idiot for leaving that stray ! in there. I edited my post to take it out. I'm positive that at some point CSS selectors like I just jerry-rigged in there will be built-in to forums, but that'll probably be 5.x at least. For now we've got to blaze our own trail, cowboys...
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Jun 16, 2013 13:12:42 GMT -8
Oops, I'm an idiot for leaving that stray ! in there. I edited my post to take it out. I'm positive that at some point CSS selectors like I just jerry-rigged in there will be built-in to forums, but that'll probably be 5.x at least. For now we've got to blaze our own trail, cowboys... Blaze our own trail, cowboys... I can definitely say, I have never heard that before This should suffice for now. Hopefully someone (a dev - are you a dev? I actually dunno who's who, and who does what etc. I see you and Brian both as support staff, though - there needs to be a "about the staff" somewhere and it say who does what, unless there is one ) can reply to this tomorrow or some time, to let us know if it could be a feature added (for both posts + threads - custom widths in the CSS would be a bonus, but I'm not bothered as much by that). Edit: Just to say as well David, thanks. I didn't actually say thanks, though usually when I use the "you're awesome" in the above context it does imply a thanks
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Jun 16, 2013 13:48:24 GMT -8
I'm not a dev, I'm Support. The four Support musketeers are me, Brian, Ricky and Michael. We're super best friends in real life and they like to lose to me at Civ 5 in their spare time. Also, just spotted another stray exclamation point that would have shown up a million times on the recent threads list, so make sure to copy the code again if you're using it.
|
|
inherit
149261
0
Sept 16, 2021 11:38:38 GMT -8
Chrissie
236
November 2009
isaacthered
|
Post by Chrissie on Jun 16, 2013 14:04:30 GMT -8
And a thank you from me as well David Clark Too tired tonight (tis 23.04 in the UK) to have a play with it, but will have a go tomorrow
|
|
inherit
149261
0
Sept 16, 2021 11:38:38 GMT -8
Chrissie
236
November 2009
isaacthered
|
Post by Chrissie on Jun 17, 2013 3:01:45 GMT -8
I've had a go adding the template on my test board, but think I must be doing something wrong I wasn't sure about where to put Board:$[thread.board]
|
|
inherit
149261
0
Sept 16, 2021 11:38:38 GMT -8
Chrissie
236
November 2009
isaacthered
|
Post by Chrissie on Jun 17, 2013 5:07:03 GMT -8
I think I've sorted it , silly me didn't realise I had to completely remove the old Thread list layout & replace it David Clark new template - I'd just added it to the bottom
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Jun 17, 2013 8:17:22 GMT -8
Sorry Chrissie, I didn't really go about composing formal installation instructions for this - I was just kind of seeing if it was possible according to Stinky666's request. If there's enough demand for this then maybe I'll make a thread for it in the Layout Templates board.
|
|