vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Category Spacing for Gold+ (https://vborg.vbsupport.ru/showthread.php?t=88983)

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/mo...ead.php?t=6003
:)

Kairo 05-21-2004 01:34 PM

Quote:

Originally Posted by chrisvonc
For that, you may want to try another one of Zachery's mods found here:
http://www.vbulletintemplates.com/mo...ead.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

Code:

$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&amp;day=$today&amp;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>
                        &nbsp; &nbsp;
                        <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">&nbsp; $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">&nbsp; $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">&nbsp; $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&amp;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.

Code:

<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%">&nbsp;</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

Vega 06-20-2004 03:05 PM

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

Vega 06-21-2004 08:32 AM

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

jgm 07-20-2004 12:47 PM

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

jgm 07-20-2004 01:23 PM

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

Quote:

Originally Posted by Tony
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/showthrea...8&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

Quote:

Originally Posted by hitmanuk2k
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

Quote:

Originally Posted by VampireMan
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

Quote:

Originally Posted by FD929
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/showthrea...8&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.


All times are GMT. The time now is 04:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01458 seconds
  • Memory Usage 1,875KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete