Tree lines like Phorum 3 module!
Posted by Brian Moon
All files from this thread
Tree lines like Phorum 3 module! August 19, 2004 05:54PM |
Admin Registered: 23 years ago Posts: 4,495 |
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.
Edited 3 time(s). Last edit at 06/01/2006 10:48PM by brianlmoon.
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.
Re: Tree lines like Phorum 3 module! August 20, 2004 03:39PM |
Registered: 20 years ago Posts: 24 |
Re: Tree lines like Phorum 3 module! August 21, 2004 10:48PM |
Registered: 20 years ago Posts: 666 |
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
-------------------------------------------
"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 |
Admin Registered: 23 years ago Posts: 4,495 |
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 |
Registered: 20 years ago Posts: 666 |
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
-------------------------------------------
"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 |
Registered: 22 years ago Posts: 25 |
Re: Tree lines like Phorum 3 module! August 31, 2004 01:54PM |
Registered: 20 years ago Posts: 60 |
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.
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 |
Admin Registered: 22 years ago Posts: 9,240 |
Re: Tree lines like Phorum 3 module! August 31, 2004 02:36PM |
Registered: 20 years ago Posts: 60 |
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?
pity
Stoebi
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 |
Registered: 20 years ago Posts: 5 |
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.
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.