Welcome to vbmods.rocks! Get FREE and paid vBulletin mods, plugins, addons, API extensions, custom modules, custom BB Codes, vBCloud mods, CORE hacks, JS hacks, custom coding by Glenn, an ex-vBulletin Developer. You must register before you can post, download the files or copy the code from the free plugins.
in vBulletin 4 categories are separated unlike vBulletin 5 which makes it harder to design the layout of the categories with CSS, looking for help to modify the display_Forums_list template in order to give each category a unique ID.
Example:
Thanks in advance
Last edited by glennrocksvb; 05-20-2022, 08:21 AM.
The challenge in customizing the style is the entire list uses a single <table> tag. It would have been easier if each category and its forum channels is in its own <table>. Or better yet, to not use <table> tag.
I have a pure CSS mod to separate the forum category list in its "own table". It's not perfect due to the challenge mentioned above but here it is:
The challenge in customizing the style is the entire list uses a single <table> tag. It would have been easier if each category and its forum channels is in its own <table>. Or better yet, to not use <table> tag.
I have a pure CSS mod to separate the forum category list in its "own table". It's not perfect due to the challenge mentioned above but here it is:
Thanks, I'm currently using your modification which works very well but not quite what I'm looking to implement here, as you can see in the screenshot the red mark is what you reffered to in your screenshot but I want the category to be selected as a whole just like the green mark, which includes the whole category under ID 163. I guess it does have to do with the table tags which make it very difficult to change the layout, I guess what I'm looking for is basically changing the whole structure of the template which sucks.. vBulletin 4 already had it implemented by default but they changed it in vB 5
This will require substantial changes to the display_Forums_list template. Changing the HTML structure will depend on how your intended style would look like.
This will require substantial changes to the display_Forums_list template. Changing the HTML structure will depend on how your intended style would look like.
I wanted to update this thread with a solution, I was able to give each category a custom DIV with JS. After that I could edit each category with the nth:child pseudo-class.
Here is the code:
Nice one darkboy245. But you need to use <tbody id="catsXXX"></tbody> to prevent generating invalid HTML markup. Table tags cannot have <li> tag as parent of <tr> tags.
With your changes, I think it can be easily done in the display_Forums_list template instead of doing it in JS.
Paste this code right after the <vb:each from="channels" value="channel"> line. (line 5 in vB 5.7.0)
HTML Code:
<tbody id="category{vb:raw channel.nodeid}">
Paste this code right before the last </vb:each> line. (line 97 and the last line in the template in vB 5.7.0)
HTML Code:
</tbody>
This is untested but I think it would work.
Thank you very much Glenn, your fix was originally what I was looking for. I'm really surprised it was that easy to implement, of course I couldn't do this without your help.
The template change does work and your JS code works as well.
Cheers.
I have never edit the mobile skin before. Is it hard or easy? I don't see many tutorials on it either. You ski. For example, is it a downloadable skin...
Granting "Can Manage Topics" permissions to Moderators or other usergroups gives them the power to Move, Delete/Undelete, Open/Close, Approve/Unapprove,...
05-27-2023, 11:57 PM
Working...
X
Searching...Please wait.
An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.
Please push the back button and reload the previous window.'
An unexpected error was returned: 'Your submission could not be processed because the token has expired.
Please push the back button and reload the previous window.'
An internal error has occurred and the module cannot be displayed.
Comment