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)

RS_Jelle 08-10-2006 10:00 PM

Seperate Forum Categories
 
Separate Forum Categories
  • Version: 1.0.1
  • Author: RS_Jelle
  • Description: This mod separates each forum category on the forum home without any template edits. The category header is added to the top of each separated category. This will be done for ALL the styles on your forum. Have a look at the attached screenshot and everything will become clear if you don't get the point :)
  • Why? I created this mod because someone requested it.
  • Limitations:
    1. It's possible that this mod won't work properly on highly customized styles.
    2. 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). Have a look at the attached screenshot to see this limitation.
https://vborg.vbsupport.ru/external/2010/10/30.jpg

================================================== ========================
Installation
================================================== ========================
  1. Import the product
  2. Enjoy!
================================================== ========================
History
================================================== ========================
  • 1.0.0: Initial release
  • 1.0.1: Moved the version check to the vBulletin.org version check system
If you use this add-on, please click install to say thanks and to receive updates.

RS_Jelle 08-11-2006 09:47 PM

First post reserved :)

A bit more about the limitations:
  • The category header bar is necessary, otherwise your layout will be screwed. It can't be done without it.
  • I will never fix these limitations. The mod is about doing it without any template edits and the only way to get around the limitations are template edits.

Makaveli105 08-11-2006 09:50 PM

Nice release, I'd install this if the Forum, Last Post, Threads, and Posts bar was placed under the category bar.

[high]* Makaveli105 watches this mod :D[/high]

RS_Jelle 08-11-2006 10:01 PM

Quote:

Originally Posted by Makaveli105
Nice release, I'd install this if the Forum, Last Post, Threads, and Posts bar was placed under the category bar.

[high]* Makaveli105 watches this mod :D[/high]

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>


Ntfu2 08-11-2006 11:37 PM

2 hours after i did the template edits too :D

Owell, nice job with the plugin version ;)

Milad 08-12-2006 12:19 AM

I did something similar but removed it because of the same limitation.

We can do this also by adding a white <tr><td></td></tr> but the border will style be shown.

BoYagoob 08-12-2006 04:09 AM

installed ..

RS_Jelle 08-12-2006 04:15 AM

Quote:

Originally Posted by Milad
We can do this also by adding a white <tr><td></td></tr> but the border will style be shown.

Indeed, that's the first thing I tested, but that was very ugly with that border and background color -like you said-.

jellybaby 08-12-2006 05:52 PM

Can anyone help me solve this problem please - I have two description bars!

WeArab 08-13-2006 09:09 AM

You rock man!

Installed!

Thank you!! :)

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

babyfacejustin 09-28-2006 07:16 AM

I hate to sound stupid, but where do you import it at.

RS_Jelle 09-28-2006 01:26 PM

Quote:

Originally Posted by babyfacejustin
I hate to sound stupid, but where do you import it at.

AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product

Klaymen TK 09-28-2006 03:54 PM

Thanks for it. :)

Minha 10-12-2006 04:50 PM

Nice work ;), but only one question. The diferents forums are nonaligned.


Edit: Installed http://img119.imageshack.us/img119/4...sikwos15yb.gif

Tacama 10-13-2006 04:00 AM

Nice work...

Running smoothly on 2.6.2, everything aligned, etc...

Installed :)

Ohiosweetheart 10-14-2006 11:28 PM

Installed without a problem, everything aligned and working like a charm.
Thanks RS for another nice hack! :D

N-0p3rz 10-17-2006 04:11 AM

Quote:

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

any chance of a link to this?

N-0p3rz 10-17-2006 04:18 AM

nevermind I found it

RS_Jelle 10-17-2006 04:18 AM

Quote:

Originally Posted by N-0p3rz
any chance of a link to this?

You can find template edit mods for this here and here ;)

Edit: too late, lol :p

@Minha: that's a limitation, you can't fix that with a product. Then you have to do template edits (see the other two mods above).

tpearl5 10-23-2006 02:22 AM

humm, I'm getting a strange error:

n/m, I'm a retard. Wrong vB version...

Johnnnie 10-23-2006 11:57 PM

Thx. Jelle works perfekt.

Also i have make the changes from lillylissy, but the columns are not the same in the forums always is lastpost the problem.

Do i missed something?


as you can see http://www.gc-talk.nl

regards, John

RS_Jelle 10-24-2006 04:14 AM

That's a limitation of doing it with a product file (it's stated clear in the first post), otherwise you need to do some template edits. There are also two template edits mods if you want to fix this, you can find them here and here ;)

Johnnnie 10-24-2006 11:18 AM

Jelle, correct i know that this is a limitation but as i wrote i did make also the changes in the templates as lillylissy wrote on post nr.12.

I hoped that this will fixed the lastpost collumn, perhaps that lillylissy give a reply?

mescalin 10-28-2006 09:50 PM

installer did not accept that xml. my board is 3,62..

RS_Jelle 10-28-2006 09:59 PM

Quote:

Originally Posted by mescalin
installer did not accept that xml. my board is 3,62..

Normally, it should work fine on vB 3.6.2. I've got a clean vB 3.6.2 install and it imports the product without any problems :)

What's the error it gives on your site?

Stavs16 11-14-2006 12:24 AM

this did not change anything.... heres a look at my website after implementing it www.xcaliburforums.com/index.php

Tru2Chevy 11-14-2006 01:37 PM

Installed and working fine on 3.6.2 here....

Thanks!

- Justin

RS_Jelle 11-14-2006 03:25 PM

Quote:

Originally Posted by Stavs16 (Post 1116762)
this did not change anything.... heres a look at my website after implementing it www.xcaliburforums.com/index.php

Which other mods (using plugins) are you using on your forum? I think one of them are causing the incompatibility.

Or have you modified some of the forumhome templates? Try creating a new style to force all the default templates etc. :)

MeMySelfNi 11-18-2006 02:53 PM

*installed*

RS_Jelle 11-19-2006 04:37 PM

A small update to make it myself more easier: I moved the version check to the vBulletin.org version check system instead of a file on my own site :)


All times are GMT. The time now is 05:23 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.02982 seconds
  • Memory Usage 1,874KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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