vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Seperate Forum Categories (https://vborg.vbsupport.ru/showthread.php?t=123713)

sudn3sc3d 08-14-2006 08:54 PM

thanks alot mate installed.

lillylissy 08-15-2006 08:43 AM

Thank you very much Jelle for this great hack!
Particularly beautifully: It is valid XHTML! ;)

Quote:

Limitations:
The 'Last Post' column can be smaller than normal if the thread titles of the category forums are all small (you can only fix this with a template edit).
Find in:
- FORUMDISPLAY
- FORUMHOME
- forumhome_seperate_forumcats

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

     <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

Notice how not all of the table cells (<td> tags) have width attributes. You need to give each cell a width attribute, and the total widths need to equal 100% of the horrizontal space. Percentages work well for this.

Kind Regards

mr bix 08-23-2006 08:38 PM

Quote:

Originally Posted by RS_Jelle
That's also a limitation, then you have to do a template edit:
  1. First install the product
  2. Open forumhome_forumbit_level1_nopost and remove the following code:
    HTML Code:

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

  3. Open forumhome_seperate_forumcats and add the following code at the end of the template:
    HTML Code:

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


Excuse for my english :).
But if you change this templates, the first category (Main Category by installation default) didn't show. Is correct?

Snake 08-25-2006 12:31 PM

Very nice. Thank you! :)

tobybird 08-29-2006 12:02 PM

Quote:

Originally Posted by mr bix
Excuse for my english :).
But if you change this templates, the first category (Main Category by installation default) didn't show. Is correct?

I experienced this as well.

eta: To expand... the category for the first forum disappeared and the category/forum header did not switch as expected for the remaining forums.

Any ideas?

jcodemasters 08-29-2006 03:02 PM

thanks

Azel 09-06-2006 02:30 AM

Quote:

Originally Posted by RS_Jelle
That's also a limitation, then you have to do a template edit:
  1. First install the product
  2. Open forumhome_forumbit_level1_nopost and remove the following code:
    HTML Code:

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

  3. Open forumhome_seperate_forumcats and add the following code at the end of the template:
    HTML Code:

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


Not workin' for me :|

Hornstar 09-06-2006 02:52 AM

They also show how to do this manually over at vb.com incase you have problems with this one.

Sidewindr 09-07-2006 04:20 AM

Would be better if you could specify a depth.

kevinj 09-17-2006 09:56 PM

Just what i was looking for; thanks :)


All times are GMT. The time now is 02:47 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.03436 seconds
  • Memory Usage 1,790KB
  • 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
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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