vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Home Enhancements - Category separation (https://vborg.vbsupport.ru/showthread.php?t=219769)

Dax IX 11-14-2009 06:22 PM

I have one category that contains more categories (sub-categories), and I'm trying to remove the "Forum, Last Post, Threads, Posts" row.

I've tried editing the plugins to eclude that category, but it doesn't seem to work. :\

Here's what I did:

PHP Code:

$vbulletin->templatecache['FORUMHOME'] = preg_replace('/(<!-- main -->\s*?<table class=\\\"tborder\\\" cellpadding=\\\"\$stylevar\[cellpadding\]\\\" cellspacing=\\\"\$stylevar\[cellspacing\]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\s*?<thead>)/''\\1'$vbulletin->templatecache['FORUMHOME']);

$vbulletin->templatecache['FORUMHOME'] = preg_replace('/<tr align=\\\"center\\\">\s*?<td class=\\\"thead\\\">&nbsp;<\/td>\s*?<td class=\\\"thead\\\" width=\\\"100%\\\" align=\\\"\$stylevar\[left\]\\\">\$vbphrase\[forum\]<\/td>\s*?<td class=\\\"thead\\\">\$vbphrase\[last_post\]<\/td>\s*?<td class=\\\"thead\\\">\$vbphrase\[threads\]<\/td>\s*?<td class=\\\"thead\\\">\$vbphrase\[posts\]<\/td>\s*?"\\.\(\(\$GLOBALS\[\'vbulletin\'\]->options\[\'showmoderatorcolumn\'\]\) \? \("\s*?<td class=\\\"thead\\\">\$vbphrase\[moderator\]<\/td>\s*?"\) : \(""\)\)\\."\s*?<\/tr>\s*?<\/thead>\s*?\$forumbits/''$forumbits'$vbulletin->templatecache['FORUMHOME']);

$vbulletin->templatecache['forumhome_forumbit_level1_nopost'] = preg_replace('/("\\.\(\(\!\$show\[\'collapsable_forums\'\]\) \? \(\"\s*?<tbody>\s*?\"\) \: \(\"\"\)\)\\.\"\s*?<tr>)/''<tr>'$vbulletin->templatecache['forumhome_forumbit_level1_nopost']);

$vbulletin->templatecache['forumhome_forumbit_level1_nopost'] = preg_replace(
            
'/("\\.\(\(\!\$show\[\'collapsable_forums\'\]\) \? \(\"\s*?<tbody id=\\\"collapseobj_forumbit_\$forumid\\\" style=\\\"\{\$collapseobj_forumid\}\\\">\s*?\"\) \: \(\"\"\)\)\\."\s*?\$childforumbits\s*?"\\.\(\(\!\$show\[\'collapsable_forums\'\]\) \? \(\"\s*?<\/tbody>\s*?\"\) \: \(\"\"\)\)\\.")/',
            
'</thead>
        <tbody id=\"collapseobj_forumbit_$forumid\" style=\"{$collapseobj_forumid}\">
        <if condition=\"$forum[forumid] != 57\">
            <tr align=\"center\">
                  <td class=\"thead\" width=\"{$vbulletin->options[\'catmod_statusicon_width\']}\">&nbsp;</td>
                  <td class=\"thead\" width=\"{$vbulletin->options[\'catmod_forum_width\']}\" align=\"$stylevar[left]\">$vbphrase[forum]</td>
                  <td class=\"thead\" width=\"{$vbulletin->options[\'catmod_lastpostinfo_width\']}\">$vbphrase[last_post]</td>
                  <td class=\"thead\" width=\"{$vbulletin->options[\'catmod_threadcount_width\']}\">$vbphrase[threads]</td>
                  <td class=\"thead\" width=\"{$vbulletin->options[\'catmod_replycount_width\']}\">$vbphrase[posts]</td>
                  ".(($GLOBALS[\'vbulletin\']->options[\'showmoderatorcolumn\']) ? ("
                  <td class=\"thead\" width=\"{$vbulletin->options[\'catmod_moderators_width\']}\">$vbphrase[moderator]</td>
                  ") : (""))."
            </tr>
        </if>
        $childforumbits
        </tbody>'
$vbulletin->templatecache['forumhome_forumbit_level1_nopost']); 

I added an IF CONDITION in the last section.

Any ideas?

PHILLYFAN 11-14-2009 07:09 PM

love it!

thanks!

Scout24 11-17-2009 06:08 AM

Not used I see no difference

Jeweetog 12-15-2009 09:17 PM

Hi,

I applied this mod, i was wondering how i can adjust the forum width?

Doing this in forumhome template makes only the first category adjusted, everything else stays the same.

Black Tiger 09-24-2010 10:48 PM

Just installed this on a fresh 3.8.6 installation, looks fine, thank you!

Black Tiger 09-27-2010 02:56 PM

However, I need vBAdvanced. And after installing vBA it's not working anymore. So I uninstalled it from my forums.

Is there a way to make this work with vBAdvanced please?

drsli 10-01-2010 09:10 AM

Many thanks for this useful mod! :)

@Black_Tiger
It works for me perfectly together with my vbadvanced installation.

Black Tiger 10-01-2010 11:51 AM

Maybe you have other columns in vBA then I do. As soon as I disable vBA it works, but with vBA enabled on my forums it doesn't. So it must be vBA.

Black Tiger 10-02-2010 12:30 AM

I have to excuse myself. After you stated this worked with vBA I ran a few times over my settings. My forum is a complete fresh install. There was the standard style with style id 1. Then I created 1 new style. Strangely enough this style did not get style id 2 but style id 4 and my mistake was to fill in id 2.
So now everything is working like a charm. For as much as I can see, including the width of the last post section for example, this is one of the best seperation mods online!
I voted MOTD for this!

drsli 10-02-2010 09:44 PM

I?m glad you got this sorted out! :)


All times are GMT. The time now is 05:34 PM.

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.01127 seconds
  • Memory Usage 1,750KB
  • 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
  • (1)bbcode_php_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
  • (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