UBB.Dev
Posted By: J.C. [6.7] [beta] Split Cat's/Topics - 02/19/2004 2:11 AM
Modification Name: Split Cat's/Topics

Author(s): J.C.

Description: This mod alters the display of the main forum summary page. Each category has it's own section.

Possible restrictions:
- WOL looks odd when connected at the top of the forum. It's better separated.
- When attahced to forums (at the top) it shows in each category, so you would need to attach it to the bottom instead.

Mod Status: Beta

Any pre-requisites: none

Date: 02/17/04

Files Altered: ubb_forum_summary.cgi & public_forum_summary.pl & public_topic_page.pl

New Files: none

Demo(s):
Cats

Topics

Requirements: UBB.Classic 6.7.0

Download Link: Download

Installation: Upload the included .pl files to the proper directories. Then open ubb_forum_summary.cgi in your favorite editor. Now look for line: 160/161 and edit as follows: (add the # accordingly)

$ThisHTML .= &PageTop($RegisteredMemberLine);
#$ThisHTML .= &Normal_Table_Top;

Then look for line 205: (add the part in bold directly underneath.)

$ThisHTML .= &CategoryStrip($ColSpan, $vars_cats{$thisforumcategory});
$ThisHTML .= &Normal_Table_Top;

Save and upload. Clear your cache, and you're done!

Info/Instructions:

Disclaimer: Please backup every file that you intend to modify.

Note: If you modify your UBB.Classic code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Posted By: Ian Spence Re: [6.7] [beta] Split Cat's/Topics - 02/19/2004 5:28 AM
Users using Colorforums should not install this mod, it'll remove all Colorforums modifications to the main page
Posted By: J.C. Re: [6.7] [beta] Split Cat's/Topics - 02/19/2004 6:54 AM


Actually making this work with yours looks like only a matter of adding a few css tags. for those wishing to use both, shouldn't be too hard.

Update: Added split posts to the zipfile smile
Posted By: AllenAyres Re: [6.7] [beta] Split Cat's/Topics - 02/19/2004 9:38 AM
thanks smile
Posted By: Jivecoolie Re: [6.7] [beta] Split Cat's/Topics - 02/20/2004 8:22 AM
does it work with 6.6?
Posted By: J.C. Re: [6.7] [beta] Split Cat's/Topics - 02/20/2004 1:19 PM
It *might* I only tested it on 6.7.0
Posted By: Gizmo Re: [6.7] [beta] Split Cat's/Topics - 02/20/2004 8:09 PM
It *should* work on 6.6 since not much of the public files have been altered since 6.4...
Posted By: AllenAyres Re: [6.7] [beta] Split Cat's/Topics - 02/21/2004 3:19 AM
For those wanting to use this on older versions (or colorforums), please use Beyond Compare to add the changes to your version. smile You may get errors otherwise smile
Posted By: Ian Spence Re: [6.7] [beta] Split Cat's/Topics - 02/27/2004 12:02 AM
JC, would you do me a favor and minimize one of the categories via the cp? When I wrote this for myself a while ago, when I minimized the category it still showed the
Code
 	Forum 	Topics 	Posts 	Last Post 	Moderators
line
Posted By: J.C. Re: [6.7] [beta] Split Cat's/Topics - 03/07/2004 12:55 AM
sorry for late reply, huh?
Posted By: J.C. Re: [6.7] [beta] Split Cat's/Topics - 03/07/2004 12:59 AM


Yup that is a "Designed Behavior ™"

smile
Posted By: LedFoot Re: [6.7] [beta] Split Cat's/Topics - 08/10/2004 6:55 PM
I applied this after applying several other hacks. It blew away a number of the hacks but I expected that given the completeness of the 2 files in the zip download. I rummaged through and found all the changes made and put them into a multi-hack file. After applying the multihack, the only problem was the NewsFader hack was hidden at the end of it all.

In the public_forum_summary.pl file, the div tag following was added by JC.

Code
$brif
$pntf_locations[0]
<div style="display: none;">
$TBT
$ns
I changed it to the following and the NewsFader appears but the table cells are reacting strange.

Code
$brif
$pntf_locations[0]
$TBT
$ns
<div style="display: none;">
The content of the NewsFader forces the cell to expand and contract making the screen jump. It's weird. It's the only thing I can see that causes the problem. The 2 hacks make changes to the same files but I don't see any correlation between the 2 other than the above code.

If you can help out, I would appreciate it.

Thanx Gizzy for pointing me in the right direction.
Posted By: Cho Phoo Re: [6.7] [beta] Split Cat's/Topics - 08/12/2004 10:03 PM
Open your public_forum_summary.pl and
FIND
---------
Quote
quote:
sub CategoryStrip {
# Fixed for strict - 20030426
# category row in normal summary
my($colspan, $catarray) = @_;

my $desc = $catarray->[5] ? qq~
$catarray->[5]
~ : "";

return qq~

$catarray->[1]
$desc

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

and Replace
----------
quote:
[qb]
sub CategoryStrip {
# Fixed for strict - 20030426
# category row in normal summary
my($colspan, $catarray) = @_;

my $desc = $catarray->[5] ? qq~
$catarray->[5]
~ : "";

return qq~
$TBB


$TBT

$catarray->[1]
$desc

--------------
[/qb]
That's all

I only use

Quote
quote:

$TBB


$TBT
to split category and post.
Posted By: LedFoot Re: [6.7] [beta] Split Cat's/Topics - 08/15/2004 2:33 AM
Is this instead of the split category hack or is this a "fix"?
© UBB.Developers