Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Category Spacing for Gold+ Details »»
Category Spacing for Gold+
Version: 1.00, by Zachery Zachery is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-18-2004 Last Update: Never Installs: 19
 
No support by the author.

The old thread has tons of unneeded info, so heres Category Spacing for Gold+

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 05-01-2004, 12:51 AM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #33  
Old 05-01-2004, 12:55 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #34  
Old 05-01-2004, 05:43 AM
Aaron RV's Avatar
Aaron RV Aaron RV is offline
 
Join Date: Mar 2002
Location: Italy
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tony
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)

Reply With Quote
  #35  
Old 05-01-2004, 06:18 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Extend the top table too, as well as the image at the bottom.
Reply With Quote
  #36  
Old 05-02-2004, 03:20 PM
Aaron RV's Avatar
Aaron RV Aaron RV is offline
 
Join Date: Mar 2002
Location: Italy
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now ok.
In "main table width" is 760 px and my "forumhome_forumbit_level1_nopost" is:

PHP 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_$forumidsrc="$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_$forumidstyle="{$collapseobj_forumid}">
<
tr align="center">
<
td class="thead">&nbsp;</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?
Reply With Quote
  #37  
Old 05-04-2004, 05:21 PM
chrisvonc's Avatar
chrisvonc chrisvonc is offline
 
Join Date: Apr 2002
Location: Austin, TX
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #38  
Old 05-08-2004, 01:12 PM
chrisvonc's Avatar
chrisvonc chrisvonc is offline
 
Join Date: Apr 2002
Location: Austin, TX
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone please?
Reply With Quote
  #39  
Old 05-18-2004, 02:26 AM
imported_Mystic imported_Mystic is offline
 
Join Date: Mar 2004
Location: e.c
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that's cool.
Reply With Quote
  #40  
Old 05-20-2004, 04:19 PM
Kairo Kairo is offline
 
Join Date: Apr 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Getting the next error if i save the edited template: FORUMHOME, tried it a few times.. can someone tell me what it is?

Quote:
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..
Reply With Quote
  #41  
Old 05-20-2004, 10:43 PM
chrisvonc's Avatar
chrisvonc chrisvonc is offline
 
Join Date: Apr 2002
Location: Austin, TX
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Code:
<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:
Code:
<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:
Code:
	<tr align="center">
	  <td class="thead">&nbsp;</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/mo...ead.php?t=5390)

Open forumhome_forumbit_level1_nopost and at the very top of the template add this:
Code:
<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:
Code:
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
Directly under it, I added:
Code:
<tr align="center">
<td class="thead" width="5%">&nbsp;</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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04738 seconds
  • Memory Usage 2,341KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete