Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
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.


- Custom Web Development
http://www.JCSWebDev.com
Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Users using Colorforums should not install this mod, it'll remove all Colorforums modifications to the main page

Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290


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


- Custom Web Development
http://www.JCSWebDev.com
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
thanks smile


- Allen wavey
- What Drives You?
Joined: Feb 2004
Posts: 5
Junior Member
Junior Member
Offline
Joined: Feb 2004
Posts: 5
does it work with 6.6?

Sponsored Links
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
It *might* I only tested it on 6.7.0


- Custom Web Development
http://www.JCSWebDev.com
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
It *should* work on 6.6 since not much of the public files have been altered since 6.4...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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

Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
sorry for late reply, huh?


- Custom Web Development
http://www.JCSWebDev.com
Sponsored Links
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290


Yup that is a "Designed Behavior ™"

smile


- Custom Web Development
http://www.JCSWebDev.com
Joined: Jan 2003
Posts: 28
Junior Member
Junior Member
Offline
Joined: Jan 2003
Posts: 28
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.


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

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

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

I only use

Quote
quote:

$TBB


$TBT
to split category and post.
Joined: Jan 2004
Posts: 15
Junior Member
Junior Member
Offline
Joined: Jan 2004
Posts: 15
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

$catarray->[1]
$desc
Joined: Jan 2003
Posts: 28
Junior Member
Junior Member
Offline
Joined: Jan 2003
Posts: 28
Is this instead of the split category hack or is this a "fix"?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)