Borders on Thread Listing
Posted by mirotrem
Borders on Thread Listing October 26, 2007 07:21PM |
Registered: 16 years ago Posts: 8 |
Re: Borders on Thread Listing October 26, 2007 07:38PM |
Admin Registered: 19 years ago Posts: 8,532 |
I don't know of a published one, but it should not be too hard to build that into a template. Inside the template, when looping over the messages, you can look at {MESSAGES->parent_id}. If that one is zero, then you have a thread starting message. Then you have to decide what to do with them. You could for example assign a different class to thread starter <td> elements than to thread reply <td>'s. For example:
After this, edit the css.tpl to define the td.row_thread_starter{...} and td.row_thread_reply{...} CSS classes.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
{LOOP MESSAGES} .... other stuff ..... {IF MESSAGES->parent_id 0} {VAR ROW_CLASS "row_thread_starter"} {ELSE} {VAR ROW_CLASS "row_thread_reply"} {/IF} .... other stuff .... <td ... class="{altclass} {ROW_CLASS}"...> {/LOOP}
After this, edit the css.tpl to define the td.row_thread_starter{...} and td.row_thread_reply{...} CSS classes.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Borders on Thread Listing October 26, 2007 08:59PM |
Admin Registered: 23 years ago Posts: 4,495 |
Re: Borders on Thread Listing October 26, 2007 10:16PM |
Registered: 16 years ago Posts: 8 |
Sorry, only registered users may post in this forum.