Firefox PHP

Borders on Thread Listing

Posted by mirotrem 
Borders on Thread Listing
October 26, 2007 07:21PM
Hello,

Has anyone created a hack or a request to remove the bottom borders from posts of the same thread?

Thank you,
Mirotrem
Re: Borders on Thread Listing
October 26, 2007 07:38PM
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:
{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
Are we talking about threaded list here?

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Borders on Thread Listing
October 26, 2007 10:16PM
Yup, got it taken care of, thanks alot guys!

Miro
Sorry, only registered users may post in this forum.

Click here to login