View Full Version : Category Spacing for Gold+
Zachery
04-18-2004, 10:00 PM
The old thread has tons of unneeded info, so heres Category Spacing for Gold+
D7MeEe
04-19-2004, 09:43 PM
hello
where screen shot
nice Edit
thanx
Zachery
04-19-2004, 10:36 PM
Just like vB.org :)
Tony G
04-19-2004, 11:44 PM
Woo! Thanks for releasing this seperate, Zachery. :)
Logik
04-20-2004, 01:37 AM
The other one works for gold too, i have it on my board...
Mike_H
04-20-2004, 09:34 AM
well this one i also not working, no category spacing, and the alignment is again a mess
typo on last line of the txt
find:
<div style="padding: 5px 5px 5px p5x;"></div>
replace with:
<div style="padding: 5px 5px 5px 5px;"></div>
I installed this as posted and a lot of the forum columns were out of alignment. I replaced this code from the mod:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
with this code that was originally mine, I beleive from the index mod floris put up, that puts index headers below cat names, and it works out much nicer, however, if the last post containes 3-4 large words, whatever method is used to trim post titles doesn't work, and will knock the last post column out of alignment.
<tr align="center">
<td class="thead" width="38"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="240">$vbphrase[last_post]</td>
<td class="thead" width="70">$vbphrase[threads]</td>
<td class="thead" width="70">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="120">$vbphrase[moderator]</td>
changing width="240" in this:
<td class="thead" width="240">$vbphrase[last_post]</td>
to something larger would alleviate that, but your mileage may vary. I think I am going to set it to 300 and see how it goes for awhile, but I think if the function that turns "a long postname" into "a long..." to fit table widths were looked at, it would be a cleaner fix.
Zachery
04-20-2004, 02:50 PM
I do have an alignment fix to post to help everyone here :) it will come later today ;)
ShutDown23
04-22-2004, 06:20 PM
Is it possible that you could install this for me? I tried several times but doesn't seem to be working. PM me if you can please
StarBuG
04-23-2004, 10:18 PM
thx for this release.
But you should update your instructions with the fix from OGT cause without it there is no spacing!
Greetings
StarBuG
LOD-squa
04-23-2004, 10:21 PM
Thank you for this mod, just what I needed to continue my forums layout. ^^
Floris
04-24-2004, 10:47 AM
I installed this as posted and a lot of the forum columns were out of alignment. I replaced this code from the mod:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
with this code that was originally mine, I beleive from the index mod floris put up, that puts index headers below cat names, and it works out much nicer, however, if the last post containes 3-4 large words, whatever method is used to trim post titles doesn't work, and will knock the last post column out of alignment.
<tr align="center">
<td class="thead" width="38"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="240">$vbphrase[last_post]</td>
<td class="thead" width="70">$vbphrase[threads]</td>
<td class="thead" width="70">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="120">$vbphrase[moderator]</td>
changing width="240" in this:
<td class="thead" width="240">$vbphrase[last_post]</td>
to something larger would alleviate that, but your mileage may vary. I think I am going to set it to 300 and see how it goes for awhile, but I think if the function that turns "a long postname" into "a long..." to fit table widths were looked at, it would be a cleaner fix.
Now apply the same width to the template that makes up the rows, and you are done ;)
The Quibbler
04-24-2004, 05:50 PM
Edit: never mind, I found another mod that did what I wanted :)
rebelsrock06
04-24-2004, 06:11 PM
your havnig probs with the moderator collumn right ?
Tradjick
04-24-2004, 09:21 PM
Thanks Zach. :)
It perfectly worked on my forums.
Here is a before/after (except for the collapse.gif):
Aaron RV
04-25-2004, 10:46 AM
Not work on vb 3.0.1 why? :(
Tradjick
04-25-2004, 11:45 AM
Not work on vb 3.0.1 why? :(
I did it on vb3.0.1. Maybe you have modified templates, but with a clean install of 3.0.1 all you have to do is to follow the instructions.
imported_Jazzie
04-26-2004, 02:23 PM
How do you give it a bigger gap between the categories?
Schwarze Katze
04-26-2004, 06:07 PM
I tried this mod and I'm pretty pleased. Still there's a little problem I've got.
There's one forum we've got, that's not put in a categorie. It's the first forum on the list and well, there's no spacing between this forum and the categorie following. Additionally this forum column shows up wider than the others.
I suppose I need to modify the forumhome_forumbit_level1_post too?
Schwarze Katze
04-27-2004, 05:18 PM
Nevermind, I solved it.
How Schwarze? I'm sure others have the same issue, so when people solve an issue they ask about, its always good to note how you did it.
Zachery
04-27-2004, 07:42 PM
change p5x to 5px
Schwarze Katze
04-27-2004, 08:31 PM
@OGT: Of course I will, I'm just doing a bit of refactoring and going to attach it afterwards :)
Zachery
04-27-2004, 09:06 PM
Im reworking some of this otherwise i would have posted sooner :)
Schwarze Katze
04-27-2004, 09:43 PM
No problem :) Has been better for me anyway 'cause I think I finally understood the code design.
Here's what I did.
Instead of putting a <div> behind every first level categorie I put a <br /> before them. This way it still works when you're having forum on the first level and not only categories. (I hope you understand what I mean *coughs*)
All you've got to do is modify the forumhome_forumbit_level1_nopost.
Replace
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>
with
</table>
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</thead>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</tbody>
</if>
Aaron RV
04-28-2004, 05:55 AM
:D Now work but no space between last category and "What's Going On?".
:( ... http://www.politicaonline.net/forum/images/smile/au.gif
No problem :) Has been better for me anyway 'cause I think I finally understood the code design.
Here's what I did.
Instead of putting a <div> behind every first level categorie I put a <br /> before them. This way it still works when you're having forum on the first level and not only categories. (I hope you understand what I mean *coughs*)
All you've got to do is modify the forumhome_forumbit_level1_nopost.
Replace
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>
with
</table>
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</thead>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</tbody>
</if>
sandrose
04-30-2004, 02:45 PM
The column alignment is fixed now.
Replace the following:
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
With This one
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
<td class="thead" width="5%"> </td>
<td class="thead" width="50%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="100">$vbphrase[last_post]</td>
<td class="thead" width="64">$vbphrase[threads]</td>
<td class="thead" width="64">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
This the result:
Aaron RV
04-30-2004, 06:27 PM
:confused:
If my Main Table Width is 760 this is my result (see help.gif)
Tony G
04-30-2004, 11:12 PM
You have to extend the width of the What's Going On table too, since 760 isn't the default width of those tables.
SaN-DeeP
05-01-2004, 12:51 AM
i installed the mod.
need to fix the width of LAST POST..
i tried to made it 240 its not GOING beyond that
dunt know why ??
check attachment pls :)
Tony G
05-01-2004, 12:55 AM
It's not going beyond because the whole width of the table cannot exceed the number you have put it.
To make it 240, you either have to make the other table/s smaller, or making the whole table wider, then set 240.
Aaron RV
05-01-2004, 05:43 AM
You have to extend the width of the What's Going On table too, since 760 isn't the default width of those tables.
Thank you Tony, but now I have this result (see gif)
:rolleyes:
Tony G
05-01-2004, 06:18 AM
Extend the top table too, as well as the image at the bottom.
Aaron RV
05-02-2004, 03:20 PM
Now ok.
In "main table width" is 760 px and my "forumhome_forumbit_level1_nopost" is:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</thead>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</tbody>
</if>
</tbody>
</table>
<div style="padding: 5px 5px 5px 5px;"></div>
Only last: "forumhome_forumbit_level2_nopost" no modifications?
chrisvonc
05-04-2004, 05:21 PM
Ok, this installed real nice except of the column spacing issue. I used the code Sandrose posted, and while everything is lined up now, I too still have the overhanging catagories. I dont quite understand what I am supposed to be modifying to even it out. My test forum is set for 800px width.. did adding this expand the catagories beyond 800px or has my header reduced width? Sorry, not really sure what I need to do to fix this if someone would kindly explain it. :)
Also, I found that a catagory with no posts in it (as in a forum thats actually a direct link to an external link) stays a bit out of alignment.
Thanks in advance!
chrisvonc
05-08-2004, 01:12 PM
Anyone please?
imported_Mystic
05-18-2004, 02:26 AM
that's cool.
Kairo
05-20-2004, 04:19 PM
Getting the next error if i save the edited template: FORUMHOME, tried it a few times.. can someone tell me what it is?
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/***/domains/***.nl/public_html/forum/includes/adminfunctions_template.php(3037) : eval()'d code on line 25
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
If i save with this error.. the forum doesn't work anymore.. pls Help me! Using Version 3.0.1 of vbulletin..
chrisvonc
05-20-2004, 10:43 PM
It seems there was some changes between v3.0.0 and 3.0.1 that effect this because I saw strange results as well after a clean install of 3.0.1 on my local test forum and then applying this.
What I did to get the desired results and correcting both my column and underhanging table problems, was actually go back and visit Zacherys older hack for the gamma versions and mash out a solution. If Zackary doesnt mind, let me try to explain what I did and if he or anyone else want to point out any mistakes, please feel free. Amazingly, having no idea what I was doing and I simply got lucky adding things here, pulling things there until it worked for me.
First off for those of you who have a fixed width forum, applied this and now have the top and bottom tables underhanging from the catagories, the problem is one line of code from the directions in the first post. I replaced it with another line of code from previously mentioned gamma release of this and the overhang goes away. With the current code, despite you having a fixed width, does push the catagory tables out further than your settings so its not that the header or bottom tables need adjusting, the catagories do get bigger.
Again, assuming you have applied this hack, in forumhome_forumbit_level1_nopost, find:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="$stylevar[outertablewidth]" align="center">
and replace it with this code from the gamma instructions:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
That should fix your overhang issues or at least it did on my v3.0.1 test forum and one of my v3.0.0 production forums.
As I said above, there seems to have been a change in vb 3.0.1 and how the original directions for this play together, more specificly in the FORUMHOME template. When the directions from this mod and the gamma version are applied, I ended up with an extra Forum/Last Post/Threads/Posts table at the top so ultimatly, this is how I fully applied Catagory Spacing...
Open the FORUMHOME template and find the first occurence of:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
remove it and save.
Next apply the following GAMMA version of this mod originally from Zacherys "[vB 3.0.0 RC] - [Release - Gamma] Forum Spacing" post (http://www.vbulletintemplates.com/mods/showthread.php?t=5390)
Open forumhome_forumbit_level1_nopost and at the very top of the template add this:
<if condition="$forum[forumid] == X">
<else />
</table> <br /><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
</if>Change X to the FIRST forumid that appears on your forumhome
Now you should have your catagories spaced and not have the extra "Forum/Last Post/Threads/Posts" table at the top. However, for those with a fixed width forum (as I do) you may now be having alignment issues with the columns. Using a suggestion from Sandrose earlier in this thread, I fixed my column alignment issue by:
Open forumhome_forumbit_level1_nopost and find:
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
Directly under it, I added:
<tr align="center">
<td class="thead" width="5%"> </td>
<td class="thead" width="51%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="30%">$vbphrase[last_post]</td>
<td class="thead" width="30">$vbphrase[threads]</td>
<td class="thead" width="30">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>and my column alignment problem was fixed.
Now you may need to adjust the numbers and % to fit your needs but those posted above are doing it for me.
I tested this on vB 3.0.0 and vB 3.0.1 and it works on both. Being this really if my first time posting an actual fix with code no less, that worked for me, hopefully I explained that OK and it come out right. If not, admins/mods, please feel free to correct me.
Kairo
05-21-2004, 07:10 AM
Yeah this DOES work! Thanks m8, really! :)
[EDIT] Now the categories are splitted from eachoter, i like it though but do you know an code how i can add an bottem image for each category? For this mod?
Thanks in Advance
chrisvonc
05-21-2004, 12:23 PM
For that, you may want to try another one of Zachery's mods found here:
http://www.vbulletintemplates.com/mods/showthread.php?t=6003
:)
Kairo
05-21-2004, 01:34 PM
For that, you may want to try another one of Zachery's mods found here:
http://www.vbulletintemplates.com/mods/showthread.php?t=6003
:)
That's not what i want, that's WITH spacing, but the spacing is done.. need a mod without spacing, just add that..
Zachery
05-21-2004, 06:21 PM
just dont add the div at the bottom
Kairo
05-21-2004, 07:52 PM
Hmm div still there but fixed it by editing the code itself a bit :) Working fine now! :) Thanks anyways! :)
TYorke
05-26-2004, 04:27 AM
Well I read through this entire thread and reviewed a few complicated workarounds for the alignment issue. Not sure if my suggestions will apply to everyone here but it sure properly aligned my forums (see attachment)
1. The suggestion made above to change the table width to 100% to avoid 'overhanging' worked like a charm. Thanks for the tip chrisvonc. However, in the case of my forums, that was the only thing needed to be changed. Instead of changing/erasing a few things here and there in the FORUMHOME template, all I did was deleted EVERYTHING in <!-- main --> <!-- /main --> and only leave behind the $forumbits part (also don't forget the erase that extra <br /> before the <!-- what's going on box --> part!)
This is my current FORUMHOME template
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
$headinclude
</head>
<body>
$header
$navbar
<!-- guest welcome message -->
<if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
<phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase>
</td>
</tr>
</thead>
</table>
<br />
</if>
<!-- / guest welcome message -->
$forumbits
<br />
<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr>
</thead>
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
<a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><a href="online.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase> | $ontoday users have visited today.</div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
</if>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div>$vbphrase[threads]: $totalthreads, $vbphrase[posts]: $totalposts, $vbphrase[members]: $numbermembers</div>
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
</div>
</td>
</tr>
</tbody>
<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
$vbphrase[todays_birthdays]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
<tr>
<td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&day=$today&sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
</tr>
</tbody>
<!-- end today's birthdays -->
</if>
<if condition="$show['upcomingevents']">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
<if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
<tr>
<td class="alt2"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
</if>
<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a>
<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>
</strong></div></td>
</tr>
</tbody>
</table>
<br />
<!-- end what's going on box -->
<!-- icons and login code -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
<td>
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
<td class="smallfont"> $vbphrase[forum_contains_new_posts]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
<td class="smallfont"> $vbphrase[forum_contains_no_new_posts]</td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
<td class="smallfont"> $vbphrase[forum_is_closed_for_posting]</td>
</tr>
</table>
</td>
<if condition="!$show['guest']">
<!-- member logout -->
<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]" onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
<!-- end member logout -->
</if>
</tr>
</table>
<!-- / icons and login code -->
$footer
</body>
</html>
2. Finally, to add the last little bit of 'image' at the bottom of your category simply add an extra <tr></tr> bit before the table closes at </table>. I also used percentages to correct the alignment problem. The logic was that if the Table is 100% then make sure the total sum of column widths equals 100. See the code below, it is my entire forumhome_forumbit_level1_nopost template.
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</thead>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
<td class="thead" width="5%"> </td>
<td class="thead" width="45%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" with="40%">$vbphrase[last_post]</td>
<td class="thead" width="5%">$vbphrase[threads]</td>
<td class="thead" width="5%">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
<tr>
<td class="thead" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>" height="10"></td>
</tr>
</tbody>
</if>
</tbody>
</table>
<div style="padding: 5px 5px 5px 5px;"></div>
If you look at my attachment, it worked for me perfectly. I hope it works for you as well. And if it does, well...YOU'RE WELCOME! :)
I should also thank the original creator (Zachery) of this modification myself...THANKS! :D
imported_nando415
05-30-2004, 09:58 AM
How can i get this to work with 2 categories set up in columns? i installed the "forums displayed in columns on forumhome" hack but the one row that says "Forum, Post, Threads" doesnt match up with it...
thanks in advance
imported_Arwen
05-30-2004, 01:18 PM
This is great!. worked first time..
Thx
Arwen
Hi there.
Got it to work, but then I changed on my testboard the Main Table Width to 85%
Thats what I get as result (see attachment). How to fix that?
thanks in Advance.
PS. Got the same problem on the what's going on box.
edit: Got it to work. Just changed the width to 85% in the navbartemplate and in FORUMHOME for what's-going-on-box. :)
TYorke
06-20-2004, 04:06 PM
The table width has to be 100%
rebelsrock06
06-20-2004, 08:17 PM
I just saw that also, i cant do the spacing without it at 100% and im doing a thin style :( What do i do
Same problem here.
Isn't there any way to fix that?
rebelsrock06
06-21-2004, 05:32 PM
zac this is extremely pertinent to my current style design, is there any code mod to fix thi?
rebelsrock06
06-25-2004, 11:50 AM
OK guys
cheange
stylevar[outtertablewidth] to 100% to mkae it work
So this does not seem to work for a clean install of 3.0.3
I followed each step carefully, and when it did not work, I reverted the two templates, and tried again.
I also tried some suggestions from with in the forum, but I am able to get any spacing at all.
Is anyone else using this with 303?
Floris
07-20-2004, 12:51 PM
<a href="http://www.vbulletin.com/forum/showthread.php?t=110590" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=110590</a>
I posted 303 version here
Thank you Floris!
I just replied on your thread there.
I seem to be having problems still. :(
ManagerJosh
10-31-2004, 07:58 AM
Just gonna revive this thread..
I made a slight modification to Zach's original hack and that was just removing the spacing. However look what happens...
The Forum/Last post/etc stuff repeats itself :-/
Anyone have a fix for it? I've been trying to run different vB conditionals but no luck yet :-/
Zachery
10-31-2004, 02:32 PM
Did you remove it from the forumhome template?
ManagerJosh
10-31-2004, 04:21 PM
This isn't forumhome Zach :) Look at the navigation :)
Duplicate the bug:
Set Tier One: Category
Set Tier Two: Category
Set Tier Three: Forum
Tony G
10-31-2004, 10:25 PM
Which forum/last post/etc. bar do you want to remove? The one above the category or one below?
ManagerJosh
10-31-2004, 11:09 PM
Which forum/last post/etc. bar do you want to remove? The one above the category or one below?
see attached :)
ManagerJosh
11-03-2004, 08:35 AM
Uh.. bump?
internetjunkie
08-11-2005, 06:37 AM
this is great..thank you very much
rjerina
08-20-2005, 04:28 AM
does this work on RC2 of vb 3.5? i dont see one ported for 3.5 if it doesnt and would like it :)
FD929
08-22-2005, 09:19 PM
Here you go. vB 3.5 RC2
NOTE: This is NOT my hack and I make no claim to it as belonging to me.
There were a few minor changes. The 3.0 forum is apparently the appropriate place to put this since releasing it under 3.5 template modifications is inappropriate even with all copyrights intact.
All credit is due to Zachery. I REPEAT all credit is due to Zachery. Do I need to say it one more time?
Moved back to 3.5 templates upon moderators approval.
https://vborg.vbsupport.ru/showthread.php?t=94848&page=2&pp=15
hitmanuk2k
08-23-2005, 10:32 AM
Bit of help, just installed but there seems to be a problem with the last post column... it is getting smaller and smaller with each section.
http://www.otamic.com
FD929
08-23-2005, 04:24 PM
Bit of help, just installed but there seems to be a problem with the last post column... it is getting smaller and smaller with each section.
http://www.otamic.com
http://www.otamic.com/?styleid=2 is not affected by the mod. I would ensure that you didn't remove any custom code specific to Otamic v2.0.
PennylessZ28
09-14-2005, 05:12 PM
Actually, I don't think this works anymore.
Not sure, it's still working on my forum, but on a clean install on defualt 3.0.9 templates, I can't make it work, lol.
At least the old still works.
VampireMan
10-06-2005, 11:56 AM
Zachery can you please update this for 3.5 :)
sitka
10-24-2005, 02:55 PM
Zachery can you please update this for 3.5 :)
ditto, the spacing should be default. forums look butt ass ugly all smooshed together
zooman
10-26-2005, 08:47 PM
Before i have to read all 70 posts does this hack work on 3.5? :)
blueuniverse
12-16-2005, 07:39 PM
Here you go. vB 3.5 RC2
NOTE: This is NOT my hack and I make no claim to it as belonging to me.
There were a few minor changes. The 3.0 forum is apparently the appropriate place to put this since releasing it under 3.5 template modifications is inappropriate even with all copyrights intact.
All credit is due to Zachery. I REPEAT all credit is due to Zachery. Do I need to say it one more time?
Moved back to 3.5 templates upon moderators approval.
https://vborg.vbsupport.ru/showthread.php?t=94848&page=2&pp=15
Doesn't give me permission to view it. :\ It'd be great if somebody could update it for 3.5.2 :)
Tony G
12-17-2005, 12:57 AM
It was removed.
I think this version actually works with 3.5. That author claimed it was Zachery's because no changes were actually made to it from 3.0 to 3.5.
TYorke
05-15-2006, 10:31 AM
This hack still relevant with version 3.5.4 :)
Forumdayim.Net
05-21-2006, 07:40 AM
thanks Zachery :)
Freakpyromaniac
08-08-2006, 07:03 PM
I have treid it in 3.6 rc3 and it is not working...Somebodyyyyyyy help me..
upsetter
08-15-2006, 10:30 AM
awsome thank you...
Ohiosweetheart
02-07-2008, 12:20 PM
Zachery - would you be up to re-doing this helpful mod for 3.7?
Zachery
03-25-2008, 02:37 AM
I never even noticted, I think someone else did but I'll re-do mine and some of my other older modifications if I have time.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.