vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How to align my forum main page (https://vborg.vbsupport.ru/showthread.php?t=172646)

acegames 03-10-2008 06:57 PM

How to align my forum main page
 
Hello what do I need to edit to align the boxes for each section on my forum ?

As shown here in the picture below

http://www.acegames.us/forum.gif

--------------- Added [DATE]1205237432[/DATE] at [TIME]1205237432[/TIME] ---------------

Now fixed one of my super moderators looked into it and found this in forumhome_forumbit_level1_nopost :

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="$stylevar[outertablewidth]" align="center">
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
      <td class="thead" width="15">&nbsp;</td>
      <td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
      <td class="thead" width="160">$vbphrase[last_post]</td>
      <td class="thead" width="40">$vbphrase[threads]</td>
      <td class="thead" width="40">$vbphrase[posts]</td>
      <if condition="$vboptions[showmoderatorcolumn]">
      <td class="thead">$vbphrase[moderator]</td>
      </if>
    </tr>


And changed to this :

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="$stylevar[outertablewidth]" align="center">
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
        <tr align="center">
          <td class="thead" width="5%">&nbsp;</td>
          <td class="thead" align="$stylevar[left]" width="50%">$vbphrase[forum]</td>
          <td class="thead" width="25%">$vbphrase[last_post]</td>
          <td class="thead" width="10%">$vbphrase[threads]</td>
          <td class="thead" width="10%">$vbphrase[posts]</td>
          <if condition="$vboptions[showmoderatorcolumn]">
          <td class="thead">$vbphrase[moderator]</td>
          </if>
        </tr>


Posted here incase anyone else has the same problem

Raptor 06-20-2008 01:59 AM

Can someone give me the 3.7.1 version of this fix as that code is not in forumhome_forumbit_level1_nopost - but its in forumhome and forumdisplay

thanks

KURTZ 06-20-2008 09:33 AM

Quote:

Originally Posted by Raptor (Post 1554146)
Can someone give me the 3.7.1 version of this fix as that code is not in forumhome_forumbit_level1_nopost - but its in forumhome and forumdisplay

thanks

yes it's the same ;)

chennairam 06-20-2008 09:55 AM

NOt work for me... i have same problem too

Attitude5ire 06-20-2008 02:58 PM

If you define the column widths properly then it should be working just fine.
Check all 4 templates
forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_post
forumhome_forumbit_level2_nopost
forumhome_forumbit_level1_post

Raptor 06-20-2008 04:27 PM

Quote:

Originally Posted by KURTZ (Post 1554345)
yes it's the same ;)

but its not in the default forumhome_forumbit_level1_nopost template on vb 3.7.1?

ive changed everything - it only ever changes the first forum and not subsequent. I usually know my beans so this is chapping my ass atm

Here are the templates that are possibles - can i get help on what changes to make - cheers guys :)

in forumhome

Code:

    <tr align="center">
      <td class="thead">&nbsp;</td>
      <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <td class="thead">$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>

complete forumhome_forumbit_level1_nopost

Code:

<tbody>
        <tr>
                <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
                        <if condition="$childforumbits">
                        <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>
                        </if>
                        <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>

complete forumhome_forumbit_level1_post

Code:

<tbody>
        <tr align="center">
                <td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">

                <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                        <td><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
                        <td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
                        <td>
                        <div>
                                <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
                                <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
                        </div>
                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                        <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
                        <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                        </td>
                </tr>
                </table>

                </td>
                <td class="alt2">$forum[lastpostinfo]</td>
                <td class="alt1">$forum[threadcount]</td>
                <td class="alt2">$forum[replycount]</td>
                <if condition="$vboptions['showmoderatorcolumn']">
                <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
                </if>
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody>
        $childforumbits
</tbody>
</if>

complete forumhome_forumbit_level2_nopost

Code:

<tr>
        <td class="tcat"><span class="smallfont">&nbsp;</span></td>
        <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">5<else />4</if>">
                <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>
$childforumbits

complete forumhome_forumbit_level2_post

Code:

<tr align="center">
        <td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
        <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
                <div>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
                        <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
                </div>
                <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
                <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
        </td>
        <td class="alt2">$forum[lastpostinfo]</td>
        <td class="alt1">$forum[threadcount]</td>
        <td class="alt2">$forum[replycount]</td>
        <if condition="$vboptions['showmoderatorcolumn']">
        <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
        </if>
</tr>
$childforumbits

complete forumhome_seperate_forumcats (hack to separate forums - which caused the misalign issue in the first place - and yes ive edited this a ton of times too :) )

Code:

</table>
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <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>
</thead>

again MANY thanks in advance :)

Attitude5ire 06-20-2008 06:53 PM

i can assure you if you assign width size it should normally fix.. dont knw if u are using any additional mods but all i can suggest is find all the place where see Last post info and change the width.. try trial and error. I use it in my Skin Morbid you can check the exact template i edited and its the same one i told you.

Raptor 06-20-2008 10:56 PM

as you can see they are default templates bar one. So if you can tell me what code to put in which template (as listed) i would be grateful. Telling me to just assign width's isn't helping me - i need the actual code please - thanks

acegames 06-21-2008 10:44 AM

Quote:

Originally Posted by Raptor (Post 1554984)
as you can see they are default templates bar one. So if you can tell me what code to put in which template (as listed) i would be grateful. Telling me to just assign width's isn't helping me - i need the actual code please - thanks

The code I posted was for my modified template

The code you posted above with my default template :

Forumhome mine is identical
forumhome_forumbit_level1_nopost mine is identical

forumhome_forumbit_level1_post identical apart from this on last line
PHP Code:

$forumbit_advertisement 

forumhome_forumbit_level2_nopost mine is identical

forumhome_forumbit_level2_post identical apart from this on last line
PHP Code:

$forumbit_advertisement 

The problem is not with any of the above but is with this template forumhome_seperate_forumcats Why have you got a table break at the top of that template ? :
PHP Code:

</table>
<
br />
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
thead>
    <
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>
</
thead


I dont use that plugin so unsure if its correct but you could try :


PHP Code:

<br />
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
thead>
    <
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>
</
thead>
</
table


Or failing that look at these two lines
PHP Code:

<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <
td class="thead" width="175">$vbphrase[last_post]</td

And try something like :
PHP Code:

<td class="thead" width="75%" align="$stylevar[left]">$vbphrase[forum]</td>
      <
td class="thead" width="25%">$vbphrase[last_post]</td

PS If this works give ACE_UK some karma ;)

chennairam 06-23-2008 03:23 AM

1 Attachment(s)
any have idea for this problem ? all my

forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_post
forumhome_forumbit_level2_nopost
forumhome_forumbit_level1_post


are normal... for the posted above...



My problem solved but not the solution above
look my attachmnet


here is the code i use

Find in:
- FORUMDISPLAY
- FORUMHOME
- forumhome_seperate_forumcats

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

And replace it with (for example):

PHP Code:
Code:

    <tr align="center">
      <td class="thead" width="5%">&nbsp;</td>
      <td class="thead" width="50%" align="$stylevar[left]">$vbphrase[forum]</td>
      <td class="thead" width="35%">$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" width="0%">$vbphrase[moderator]</td>
      </if>
    </tr>



All times are GMT. The time now is 08:03 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.01287 seconds
  • Memory Usage 1,834KB
  • 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
  • (10)bbcode_code_printable
  • (6)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete