UBB.Dev
Posted By: AllenAyres Separated Categories - 10/18/2002 3:12 AM
Name: Separated Categories

Description: Adds space between the categories on your forum summary

Author: Travis, JC, several others... smile

Demo: https://www.ubbdev.com/test/ubbcgi/ultimatebb.cgi

Instructions: In public_forum_summary.pl, find:

Code
	my $CategoryStrip = qq~
and replace it with:

Code
if ($thisforumcategory eq "1") {
$cat_spacer ="";
} else {
$cat_spacer ="
";
}

my $CategoryStrip = qq~
$TBB
$cat_spacer
$TBT
Posted By: Chrimera Re: Separated Categories - 10/18/2002 4:55 AM
wow I mean I am seriously impressed with turn around time smile

thanks
Posted By: AllenAyres Re: Separated Categories - 10/18/2002 7:16 AM
welcome smile I updated it with a simpler version that does the same thing and adds quite a bit less html smile
Posted By: Chrimera Re: Separated Categories - 10/18/2002 2:04 PM
OK Im going to try and push my luck smile

How go I get a header strip (for lack of a better descripter) on each post and not only on the 1st one smile

http://www.thedarkwatch.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=26;t=000011
Posted By: Leerch Re: Separated Categories - 01/14/2003 12:50 AM
Does this changing of the code work with 6.4? I made the changes and it still looks the same. I would like to have it look like Chrimera's board
Posted By: PrimeTime Re: Separated Categories - 01/14/2003 1:00 AM
It should.
Posted By: Leerch Re: Separated Categories - 01/14/2003 1:06 AM
I guess I needed to update the the display settings. It works great now. Thanks
Posted By: Agent316 Re: Separated Categories - 02/01/2003 8:05 AM
How do you make the cells appear properly? On my board, the forum discription streches out the cells, and the the "Forum, Topics, Posts, Last Post" cells, for each board now come out un-aligned as a result.
Posted By: tgreene Re: Separated Categories - 02/01/2003 2:17 PM
Agent316,

I to had the same problem, so I'm figuring the cell width must be defined for each column header, so this doesn't happen...
Posted By: Agent316 Re: Separated Categories - 02/01/2003 7:44 PM
Yes I figured that. We've found where to define the cell % for the table with the "Forum Topics Posts Last Post Moderators"

They however do not effect the actual cells below them with the actual info. Does anyone know where to go to edit those %'s? I guess they are seperate.
Posted By: AllenAyres Re: Separated Categories - 02/04/2003 2:02 AM
got a link to what's happening?
Posted By: Agent316 Re: Separated Categories - 02/04/2003 2:50 AM
I've taken the script out since it made every un-organized. , but I'll put it back and take screenshot to show you.
Posted By: Agent316 Re: Separated Categories - 02/08/2003 4:41 AM
I have an image of what is happening. I just need to know where to go to define %'s for tables.

Just a warning that this image is a very large file, so you may not want to even bother if your not on broadband.

http://pc.usgaming.net/ubb/Avatars/custom/example.gif

*edit*

Nevermind. I found another method of creating this effect that did it perfectly that didn't involve me defining any %'s. Thanx anyways. smile
Posted By: djmaine Re: Separated Categories - 02/12/2003 7:18 PM
What was the Solution for this???

Is there revised code that works properly?
Posted By: AllenAyres Re: Separated Categories - 02/13/2003 12:36 AM
Check the demo link smile

Add width="4%" to the bulb column, width="5%" to the total posts and total topics columns and width="30%" to the column where the last post info is kept. If unclear, ask again smile
Posted By: djmaine Re: Separated Categories - 02/13/2003 6:27 PM
I tried that and may have placed the widths in the wrong place...looked even funkier than before

(Those that were stoned at the time approved smile )
Posted By: AllenAyres Re: Separated Categories - 02/16/2003 12:18 AM
here's the demo file for comparison, keep in mind it's for 6.5 beta something smile

https://www.ubbdev.com/ubb/upload/00000494/public_forum_summary.txt
Posted By: Ellen Re: Separated Categories - 02/16/2003 4:05 AM
The demo link is exactly what I want to do, but it would really help me if you could tell me where to put in the table widths in the code for the public forum summary page. I tried various places, but I wasn't able to get it right.
Posted By: PrimeTime Re: Separated Categories - 02/16/2003 6:12 AM
This is a bit of a tricky question because with the way of UBB's default (unhacked) design if you try to create independent table category cells usually the category headers will not align with the forum description headers.

If you left the the original coding intact you will need to add the cell widths in the tags such as "". I believe Allen had already set the "width" codes into the tags. You will find these tables after:

[code][/code]Just view the source of what Allen did and compare that with your public_forum_summary.p file. smile
Posted By: RandyM Re: Separated Categories - 02/16/2003 8:45 PM
The problem is that there is no connection between the individual categories to force them to line up (td's) so the width attributes are necessary. I also had problems in the past with the "lightbulbs" still causing issues (not complying with the width commands) and had better luck with putting the lightbulb code and the forum name/description code in a table of it's own and assigning the width to the that contains the new table.

I moved the lightbulbs to the right side and had it resove the problem too but not everyone wants the lightbulbs over there.
Posted By: AllenAyres Re: Separated Categories - 02/16/2003 8:56 PM
hmm... I added a width="4%" for the lightbulb column and it seemed to solve it, maybe the code is different in the newer versions smile

Ellen, grab a copy of beyond compare and see how the file I posted compares to yours smile

www.scootersoftware.com
Posted By: PrimeTime Re: Separated Categories - 02/17/2003 6:51 AM
Hehe...I moved the lightbulb to another location. laugh
Posted By: Ellen Re: Separated Categories - 02/18/2003 10:51 PM
Thanks for the reply, I'll give it a try.
Posted By: Ellen Re: Separated Categories - 02/26/2003 8:17 PM
Unfortunately, I still haven't been able to get this to work. Is there anyone who was successful who would be willing to post their code? Thanks in advance!
Posted By: RandyM Re: Separated Categories - 02/27/2003 2:31 AM
I took an alternate method to solve the lightbulb issue. See if this makes sense.

I took the that the lightbulbs are in and the that the forum name is in and placed them in a table of their own so that the width of the now single was more controllable.

[code][/code]I used this on a new fixed width board I'm building so you'll probably want to use percentages. I hope this helps. If you need more info and you think I can help come on over to Netwerkin in my sig and either myself or some of the Netwerkin members would be glad to help.
Posted By: RandyM Re: Separated Categories - 02/27/2003 2:36 AM
Sorry, I forgot to add that you'll need to change the colspan in a couple places since there'll be one less.
Posted By: ADWOFF Re: Separated Categories - 02/28/2003 4:11 AM
This is probably the wrong thread to ask this, but is there any chance that the concept of "separated categories" can be applied to "separated posts"--ala JC Templates--without having to do JC Templates? laugh (hey, it's worth the question! wink )
Posted By: Ellen Re: Separated Categories - 03/02/2003 2:02 AM
TheX: Thank you so much for taking the time to post that! It was just what I needed. As you said, I have to change the colspan, but the rows are now lining up. It was really nice of you to do this.
Posted By: RandyM Re: Separated Categories - 03/02/2003 6:37 AM
Quote
quote:
Originally posted by ADWOFF:
This is probably the wrong thread to ask this, but is there any chance that the concept of "separated categories" can be applied to "separated posts"--ala JC Templates--without having to do JC Templates? laugh (hey, it's worth the question! wink )
It's really easy also, I was doing it before the JCTemplates. Let me find the code I used and get it documented.

quote:
[qb]Originally posted by Ellen:
TheX: Thank you so much for taking the time to post that! It was just what I needed. As you said, I have to change the colspan, but the rows are now lining up. It was really nice of you to do this.[/qb]
Absolutely my pleasure. The people here have given me more help than I'll ever be able to repay.
Posted By: PrimeTime Re: Separated Categories - 03/02/2003 6:44 AM
Hehe...The Category Separation (back in late 2001) is how X and I got to know each other. smile
Posted By: RandyM Re: Separated Categories - 03/02/2003 6:56 AM
Adwoff, this is the easy way to seperate the posts on 6.5, I think 6.4 should be nearly identical

[code][/code]
Posted By: ADWOFF Re: Separated Categories - 03/02/2003 11:20 PM
Thank you! thumbsup

I love coming here and asking for help. smile
Posted By: AllenAyres Re: Separated Categories - 03/06/2003 7:38 AM
thanks X thumbsup

if ok with you, I may post that in a seperate thread so people can find it smile
Posted By: Ellen Re: Separated Categories - 03/07/2003 5:50 PM
Unfortunately, while the columns lined up, it gave me a javascript error. Did anyone else have that?
Posted By: RandyM Re: Separated Categories - 03/08/2003 12:05 AM
Quote
quote:
Originally posted by Ellen:
Unfortunately, while the columns lined up, it gave me a javascript error. Did anyone else have that?
That code is taken straight from my 6.5 test board, let me have another look at it when I get on that server later this afternoon.
Posted By: Painfool Re: Separated Categories - 03/11/2003 2:11 AM
I just got a user having a similiar problem to Ellens.

Quote
quote:
I'm sure you're innundated with issues (I hope not!) on the new board format but...

I am getting "Object Expected" errors all over the board, where I was successfully getting the graphics when you first made the changes.

Any clue?

Too many little red X's! ;-)

I'm using IE 6.0
This is after splitting the Categories and Topics pages.

Thanks!
Posted By: RandyM Re: Separated Categories - 03/11/2003 5:39 AM
I have no idea how the errors are happening. I just did it to a clean 6.5 board and it works fine. I didn't apply Allen's code though but that shouldn't cause any problems either. I don't think the post seperation on the topic page is causing anything because there isn't any javascript involved, just in the bulbize area of the summary page.
Posted By: Painfool Re: Separated Categories - 03/11/2003 7:10 AM
Thanks X,
Works fine for looks like 99% of the people on my 6.5 as well. Javascript and Java are two different animals correct? I had to d/l the Sun Java for my IE since the court order, and mine works fine. Grasping at straws though. I did do Allens hack, is yours significantly different besides the addition of more cells? I did both his and yours at the same time so got the finger pointing mixed up smile Looks like Ellen is talking about Allens as well.

ALLEN! Help laugh
Posted By: RandyM Re: Separated Categories - 03/11/2003 7:22 AM
I didn't post all of mine since I hack the page up more than you'd want to. I remove the bar at the top of the summary page with Forums--topics--posts etc and move it onto the category name line. It is odd that it causes errors since the javascript hasn't been modified, just wrapped inside another table. It would be nice if we could get LK to look at this since he is the guru guy with this stuff.
Posted By: Ellen Re: Separated Categories - 03/12/2003 1:41 AM
Allen's modification to separate the categories and TheX'x modification to insert a space between posts both worked perfectly.

However, with the category space modification, the tables for different categories did not line up exactly. When I used TheX's code to do this, the tables lined up better, but I got a javascript error.
Posted By: Painfool Re: Separated Categories - 03/12/2003 9:00 AM
My user updated his Windows with all the Criticals and Directx and the board started working fine, so more than likely it is just a glitch in JS and a unpatched 6.0 IE - Try updating Ellen see if it fixes yours as well.
Posted By: Stamoulis Re: Separated Categories - 03/18/2003 6:22 PM
Quote
quote:
Add width="4%" to the bulb column, width="5%" to the total posts and total topics columns and width="30%" to the column where the last post info is kept. If unclear, ask again
on 6.3 its easy to set the witdh from the last post column to 30%, but where is it on 6.4 ?! confused

cant find it help
Posted By: AllenAyres Re: Separated Categories - 03/28/2003 10:04 AM
should be the same smile Did you check out the file I uploaded on the first page?
Posted By: Stamoulis Re: Separated Categories - 03/28/2003 9:28 PM
ohhh stupid me, haven't seen this, sorry, now it looks fine laugh
Posted By: [JoKer] - dD Re: Separated Categories - 05/17/2003 2:00 PM
I got the catagories to line up nicely, they all have the same td width. HOWEVER, my table strip doesn't line up the 'Forum', 'Posts', 'Topics' etc up with the categories. Any idea what to change? I'm working with 6.3.0.1.


- [JoKer]
Posted By: PrimeTime Re: Separated Categories - 05/20/2003 4:39 AM
Most likely your Categories and Table strip have different width values which you'll need to define. If you're using $TBT and $TBB to separate your Categories then the Categories and Table Strip are independent. If you're using the
to separate your Categories then you shouldn't run into alignment issues.

Is there a link to your board?
Posted By: [JoKer] - dD Re: Separated Categories - 05/20/2003 11:35 PM
Ah, no worries mate, I got that fixed. Got another 'issue' now, though. I want a gap the same size as the gap under the table header: Under the table header and above the News Fader. Then, a normal sized gap between the News Fader and the first set of categories.


- [JoKer]
Posted By: PrimeTime Re: Separated Categories - 05/21/2003 3:21 AM
There are two ways you can do that. First add a
under your Table Header and above your News Fader. Secondly, you can add a Table spacer in which you can adjust the height from the tag. Most people use a
tag between the News Fader and first Category.
© UBB.Developers