PDA

View Full Version : Forum Home Enhancements - Category separation


PitchouneN64ngc
07-28-2009, 10:00 PM
Description

With this mod, you can separate each block of categories (containing forums / subforums) with a space.

This mod as created by akex054 for 3.5 for the first initial release and was never released out of vbulletin-fr.org (was totally in French).

Enjoy ;)

grey
Installation

Time: 1 minute
vB version: 3.8.0 Beta 2 minimum

grey
Instructions
Import the product file. This file contains some code to edit templates cache.
Go to "vBulletin Options > vBulletin Options > Categories separation" and configure your settings.All instructions are given to upgrade like a charm ;)

grey
FAQ

No FAQ for now (and not needed) :p

grey
Copyright

All code present is this mod can't be redistributed or anything else without my consentement.

grey
Changelog

- 1.0.0 : Initial release. (July 29 2009)

grey
If you like it...

-> Mark as Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=219769) <-
and/or
-> Nominate for MOTM (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=219769&type=1) <-

Bin7raib
07-29-2009, 09:29 PM
nice, Installed :)

Sofia
07-29-2009, 10:50 PM
Thank you fot this mod, pitchoune.

Just a problem : lastpost column is malaligned on forumhome.

PitchouneN64ngc
07-30-2009, 12:01 PM
I will check if I don't miss some option. Have you tested on default vB style?

Sofia
07-30-2009, 12:29 PM
I will check if I don't miss some option. Have you tested on default vB style?

Hi Pitchoune. Yes. You don't have this problem?

PitchouneN64ngc
07-30-2009, 12:34 PM
I don't have this problem. This is defined as 25% of the width of the style.

sphinx
07-30-2009, 01:55 PM
works fine here thanks

saadessa
07-30-2009, 04:45 PM
installed thank you

danyxx
08-03-2009, 12:06 AM
bu how i can clear the category separation ?
No your mod , i want to clear separation from a style .. where i must go? (template ? ?)

PitchouneN64ngc
08-03-2009, 06:55 AM
It edits template cache in plugins. Maybe I should try to create an update with dedicated templates, replacing the default ones.

I can't be back since August 18th, I will try to see until this date if I can do something.

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:

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

Black Tiger
10-02-2010, 10:06 PM
Yep me 2, the reason that it worked with vBA disabled was because I had switch back to the original style before switching off vBA and forgot to reload the page.:)
So everything oke. I'm very happy.:D

Clydesdale
05-09-2011, 02:15 PM
Pardon my newbieness, but I don't know where to install/upload this file. Please advise.

Thanks

Scyther
06-05-2011, 07:49 AM
Excellent Mod.
Thanks

pigpog
09-03-2011, 01:27 PM
Tried using it and nothing happened. :(