UBB.Dev
Posted By: lbritish [6.5] Category Styles - 06/16/2003 7:19 PM
Modification Name: Category Styles for 6.5.0

Author(s): Original by LK , Ported to 6.5.0 Lbritish

Description: Category Style Modification for 6.5.0 LK wrote a mod for 6.3.0 that made category forum summaries able to be hidden and use styles. I have not used any versions in between 6.3 and 6.5 so if 6.4 works I have no idea... It is NOT compatible with 6.3 anymore in this version so use LK's version for that. Really all I did was update most of the find's to match the new wordlet usages and a few column size lines. Most of this is STILL LK's code so credit goes to him for the mod still. I just figured out how to shove it into 6.5 since UBB updated the table header stuff. Dont ask LK about implementation of this in 6.5 since he didnt write it for 6.5 anyway... Thanks...

Requirements: UBB 6.5.0 fully licensed. Read lbritish's comments in the mod. If it dont work dont bug LK... it's not his fault... smile He didnt even know this was coming...

Download Link: http://www.littlefishtank.com/download/catstyle.zip

Credits: LK for 6.3.0 compatible version.

Notes: I only needed it for a private hidden restricted forum so I dont really wanna post the url for it. If you have a demo using it that is public please post it.

Thanks!
LBritish
Posted By: AllenAyres Re: [6.5] Category Styles - 06/17/2003 4:54 AM
cool, thanks smile
Posted By: Ian Spence Re: [6.5] Category Styles - 06/17/2003 6:24 PM
I'm only using it for ability to hide categories, but that part works awesome smile I've been looking for something like this for my private forums. Now if there was only a way to make private categories. The cp looked fine when I removed the width declarations. This is one of the easiest hacks I've done, and yet one of the most important smile
Posted By: lbritish Re: [6.5] Category Styles - 06/17/2003 7:45 PM
Yeah... it really should be part of the base program but Infopop "has not gotten around to it" I guess. It is one of the most logical steps in the process. Hopefully they will take this into consideration when they build the next one.

As I said in my comments the width declarations when removed look fine. I guess Infopop was trying to be "pretty" with 6.5 but once we hack it around and stick the new stuff in it looks fine smile

It's definately a great mod and credit really belongs to LK for it since it was his mod to begin with. One day I would like to see it hide the forums on the category if you are not registered, not logged in, and/or not approved to read when they are private forums. Maybe LK will figure that one out next... wink
Posted By: LK Re: [6.5] Category Styles - 06/17/2003 7:57 PM
good job laugh

about hiding from certain users, it'd make your UBB slower because UBB uses cache. (it saves the HTML version of forum summary every time a post is made, so it'd make your UBB slower if the categories would be visible to only some users)

about disallowing some users to view categories when they go to ?category=X manually (if you choose to hide a category), that is possible, with just a few lines.
Posted By: Ian Spence Re: [6.5] Category Styles - 06/17/2003 8:20 PM
Quote
quote:
Originally posted by LK:
good job laugh

about disallowing some users to view categories when they go to ?category=X manually (if you choose to hide a category), that is possible, with just a few lines.
that's what I was hoping for.
Posted By: Ian Spence Re: [6.5] Category Styles - 06/22/2003 10:24 PM
hey LK, what would those few lines be? smile
Posted By: LK Re: [6.5] Category Styles - 06/23/2003 1:36 PM
in ubb_forum_summary.cgi (untested):[code][/code]you can also variate it to check if the user is a certain number (like 00000055) you can check $user_number.
© UBB.Developers