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)

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

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)

: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:

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?

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?

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..

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:
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.


All times are GMT. The time now is 06:22 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.01204 seconds
  • Memory Usage 1,781KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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