![]() |
|
Mod Options |
![]() |
|||||||||||||||||||
[vBMods.rocks] Forum Category Spacing - no template editing needed/vBCloud compatible
![]() Developer Last Online: May 2023 ![]() ![]() ![]()
![]() Want to separate or group forum categories in its own "table" without editing display_Forums_list template? The entire category and forum directory are displayed using a single <table> tag. This makes it impossible to separate the forums by category in its own table that has border without editing display_Forums_list template and adding multiple <table> tags as others had done. But not until now.
I thought that mod was great (and it is!) but it requires editing an existing template and most of you know that editing existing vBulletin templates is not recommended and ideal. So I got challenged to create my own version that doesn't require editing using pure CSS. But technically not really using pure CSS as I had no choice but to add a little bit of JavaScript in order to programmatically identify which is the last forum channel in a category. Knowing the last forum in a category enables the CSS to know where to break the table into multiple "tables". The end result is not using multiple actual <table> tags but with a little bit of creativity and imagination, I was able to replicate an illusion or impression of using multiple tables. Without much further ado, here's how to accomplish this. 1. Add in css_additional template or via Sitebuilder (Edit Site ON) > Style > CSS Editor.
NOTE: The border colors and spacing used above were based off the default vB5 style. You may need to tweak some values if you have a customized style/theme. 2. Add a script to dynamically determine the last forum in a category. Ideally, we should use a template hook to insert the script but unfortunately, there is no hook location that is close to the forum directory list. We need to run the script as soon as the forum directory is rendered to avoid flickering or flashing. I chose to add the script in the Mark Channels Read phrase which is right below the forum directory.
Compatibility:
Demo: See homepage of my mod site at http://vbmods.rocks/ This mod is also posted at http://vbmods.rocks/forum/vbulletin-...oud-compatible Enjoy! ![]() Download Now Only licensed members can download files, Click Here for more information. Show Your Support
The following members like this post: In Omnibus
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Show Thread Enhancements [vBMods.rocks] Add Custom Profile Fields in Postbit | noypiscripter | vBulletin 5.x Products & Extensions | 14 | 02 Feb 2022 04:31 |
New Posting Features [vBMods.rocks] Quote Selected Text | noypiscripter | vBulletin 5.x Products & Extensions | 8 | 02 Feb 2022 04:29 |
Show Thread Enhancements [vBMods.rocks] Display Status Update in Postbit | noypiscripter | vBulletin 5.x Products & Extensions | 1 | 29 Jan 2019 15:31 |
Forum Display Enhancements [vBMods.rocks] Display Forum Description on Forum Channel page using an Ad Module | noypiscripter | vBulletin 5.x Products & Extensions | 15 | 24 Nov 2016 15:24 |
Miscellaneous Hacks [vBMods.rocks] Quick fix for guests having no access to the reset-password page | noypiscripter | vBulletin 5.x Products & Extensions | 0 | 06 Aug 2016 01:17 |
Comments |
#2
|
||||
|
||||
I like it. It looks really clean from the image on your site.
How difficult would it be to make each "table" collapsible? No members have liked this post.
|
#3
|
||||
|
||||
I will look into it.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer ![]() GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic No members have liked this post.
|
#4
|
||||
|
||||
Found a bug in the script. Updated the script in Step 2 in the first post. If you've already installed this mod, you have to update it.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer ![]() GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic No members have liked this post.
|
#5
|
||||
|
||||
Got and issue with thise code, grid lines does not finish at the end of category, any advice?>
No members have liked this post.
|
#6
|
||||
|
||||
Does not work on 4.2.5
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 14:36.