|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Name: Separated Categories Description: Adds space between the categories on your forum summary Author: Travis, JC, several others... Demo: https://www.ubbdev.com/test/ubbcgi/ultimatebb.cgi Instructions: In public_forum_summary.pl, find: and replace it with: if ($thisforumcategory eq "1") { $cat_spacer =""; } else { $cat_spacer =" "; }
my $CategoryStrip = qq~ $TBB $cat_spacer $TBT
|
|
|
|
Joined: Aug 2002
Posts: 97
Member
|
Member
Joined: Aug 2002
Posts: 97 |
wow I mean I am seriously impressed with turn around time thanks
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
welcome  I updated it with a simpler version that does the same thing and adds quite a bit less html 
|
|
|
|
Joined: Aug 2002
Posts: 97
Member
|
Member
Joined: Aug 2002
Posts: 97 |
OK Im going to try and push my luck How go I get a header strip (for lack of a better descripter) on each post and not only on the 1st one http://www.thedarkwatch.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=26;t=000011
|
|
|
|
Joined: Mar 2002
Posts: 5
Junior Member
|
Junior Member
Joined: Mar 2002
Posts: 5 |
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
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
|
|
|
|
Joined: Mar 2002
Posts: 5
Junior Member
|
Junior Member
Joined: Mar 2002
Posts: 5 |
I guess I needed to update the the display settings. It works great now. Thanks
|
|
|
|
Joined: Jan 2003
Posts: 58
Member
|
Member
Joined: Jan 2003
Posts: 58 |
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.
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
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...
|
|
|
|
Joined: Jan 2003
Posts: 58
Member
|
Member
Joined: Jan 2003
Posts: 58 |
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.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
got a link to what's happening?
|
|
|
|
Joined: Jan 2003
Posts: 58
Member
|
Member
Joined: Jan 2003
Posts: 58 |
I've taken the script out since it made every un-organized. , but I'll put it back and take screenshot to show you.
|
|
|
|
Joined: Jan 2003
Posts: 58
Member
|
Member
Joined: Jan 2003
Posts: 58 |
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. 
|
|
|
|
Joined: Apr 2002
Posts: 57
Member
|
Member
Joined: Apr 2002
Posts: 57 |
What was the Solution for this???
Is there revised code that works properly?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Check the demo link 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 
|
|
|
|
Joined: Apr 2002
Posts: 57
Member
|
Member
Joined: Apr 2002
Posts: 57 |
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  )
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
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.
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
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.
| |
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
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.
| |
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
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 Ellen, grab a copy of beyond compare and see how the file I posted compares to yours www.scootersoftware.com
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
Hehe...I moved the lightbulb to another location.
| |
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
Thanks for the reply, I'll give it a try.
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
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!
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
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.
| |
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
Sorry, I forgot to add that you'll need to change the colspan in a couple places since there'll be one less.
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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?  (hey, it's worth the question!  )
Sue adwoff.com
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
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.
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
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? (hey, it's worth the question! )
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.
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
Hehe...The Category Separation (back in late 2001) is how X and I got to know each other. 
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
Adwoff, this is the easy way to seperate the posts on 6.5, I think 6.4 should be nearly identical
[code][/code]
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Thank you! I love coming here and asking for help. 
Sue adwoff.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 X if ok with you, I may post that in a seperate thread so people can find it 
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
Unfortunately, while the columns lined up, it gave me a javascript error. Did anyone else have that?
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
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.
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
I just got a user having a similiar problem to Ellens. 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!
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
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.
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
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  Looks like Ellen is talking about Allens as well. ALLEN! Help 
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
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.
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
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.
|
|
|
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.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|