Firefox PHP

Tree lines like Phorum 3 module!

Posted by Brian Moon 
Tree lines like Phorum 3 module!
August 19, 2004 05:54PM
This is a very highly requested feature for Phorum 5. I originally thought I would have to make a hacked template to do it. But, thanks to our awesome module system, here it is. No recursion either so it is a lot faster than I thought it would have been.

A couple of things may have to be done for this to work.
1) You will have to edit the CSS for PhorumTableRow.  The top and
   bottom padding will have to be removed.  There may be a margin or
   border as well.
   
2) If black images will not work well on your site, there are white
   versions in the images dir.  You will need to either rename them or
   change the html img tag defs at the top of the mod_treeview
   function.

3) If you are using Phorum 5.1, you will need to edit list_threads.tpl
   a bit.  Find anywhere it read:
   
   style="padding-left: {ROWS->indent_cnt}px"
   
   Remove that text.  Next find anywhere it says:
   
   {marker}
   
   Replace that text with:
   
   {ROWS->indent}

   Now edit read_threads.tpl in a similar way. Find anywhere it read:

   style="padding-left: {MESSAGES->indent_cnt}px"

   Remove that text. Next find anywhere it says:

   {marker}

   Replace that text with:

   {MESSAGES->indent}
That should do it. There is a chance that mods will never see the tree in a pretty way due to the moderation links under the messages.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter



Edited 3 time(s). Last edit at 06/01/2006 10:48PM by brianlmoon.
Attachments:
open | download - treeview.tar.gz (2.6 KB)
Re: Tree lines like Phorum 3 module!
August 20, 2004 03:39PM
Awesome! Thanks a ton for this slick module. This is the number one feature I was looking for in Phorum 5.

Simon
Re: Tree lines like Phorum 3 module!
August 21, 2004 10:48PM
It seems like no matter what I try, I can't get rid of a tiny gap inbetween each of the td rows. I've made padding, margin, and border set to 0, even tried to test it with the font size as 3pt, and there's still a tiny gap. I've tested the css.tpl with nothing in it, with the table in the html with cellpadding, cellspacing, and border to 0, and still the bit of gap at the bottom of a td. and Any idea what this could be?

-------------------------------------------

"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Re: Tree lines like Phorum 3 module!
August 22, 2004 06:47PM
let me see your site and I will have a look at the CSS.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Tree lines like Phorum 3 module!
August 23, 2004 03:30PM
When I reinstalled the board, it reset my css sheet, and the lines look normal now. I'll keep on the lookout of what I do to the css sheet, to avoid doing what I had last time.

-------------------------------------------

"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Re: Tree lines like Phorum 3 module!
August 26, 2004 06:36AM
just want to say thanks forthe best module 4 phorum5 :-)
Re: Tree lines like Phorum 3 module!
August 31, 2004 01:54PM
Hi,

looks nice.

But which option i need to see fn.gif, fc.gif and p.gif in action, please?

I see no examples on [dev.phorum.org] , pity.


Regards, Stoebi



Edited 1 time(s). Last edit at 08/31/2004 02:06PM by Stoebi.
Re: Tree lines like Phorum 3 module!
August 31, 2004 02:29PM
which option? just enable that module like its told above.
the dev-forum runs the current cvs-snapshot again, it just *had* the module for testing, its no longer there.


Thomas Seifert
Re: Tree lines like Phorum 3 module!
August 31, 2004 02:36PM
But which option i need to see fn.gif, fc.gif and p.gif in action, please?

The treeview mod is enabled. I see m.gif, c.gif etc. in action, but not fn.gif, fc.gif and p.gif. Not implemented, yet?


Quote

the dev-forum runs the current cvs-snapshot again, it just *had* the module for testing, its no longer there.


pity



Stoebi
Re: Tree lines like Phorum 3 module!
September 23, 2004 06:57AM
Hello Brian,

thank you very much for this great module. With some little adaptation I completely succeeded in getting rid of the little gaps reported by "portal of couriosity".

But how to give every table row alternating colour? At the moment only starting-topics are being coloured differend from their answers.

D-rex





Edited 1 time(s). Last edit at 09/23/2004 07:02AM by D-rex.
Sorry, only registered users may post in this forum.

Click here to login