View Full Version : How to tile 1st gen child sub categories horizontally instead of ?the default? vertic
Anton Rahman
12-31-2017, 12:29 PM
As you can see in the image,
https://drive.google.com/drive/folders/1t2_M55OI5zZp5fOhBmR3G2V9dk8oNyID?usp=sharing
this is how vBulletin 5 default style handles the following channel layout :
Parent category " no post " nested -of course- under [forum] ---- > 1st generation child category "no post i.e acting as a 2nd category under the parent category"
------ > 2nd generation child, a CHANNEL this time " i.e where user may post"
By default, vBulletin 5 default theme will implement the following -sometimes undesirable- formatting:
It will tile VERTICALLY aaaalll the 1st generation child categories !!
While in forums that may have relatively a bit too many 1st GENERATION CHILD CATEGORIES nested under a bit too many PARENT CATEGORIES; the result is an un appealing loooooong page that is stacked up sooo sooo vertically in a very un professional way !!
This certainly calls for a direct to the point functionality that gives users the choice of TILE VERTICALLY or otherwise TILE HORIZONTALLY
If we didn’t miss something , this function doesn't yet seem to be available in admincp
So meanwhile until the authorized vBulletin geeks in the vBulletin team will consider adding this functionality !.
We are left again soliciting any ideas , specifically codes for css_additional .css
Or a hook modification ?
S.O.S :confused:
In Omnibus
12-31-2017, 12:56 PM
If you edit the CSS to change the display you will completely break the responsive theme.
Having said that, this is the general CSS:
https://vbulletin.org/forum/showthread.php?t=228484&highlight=two+column
Note that is for vB4.x
Mark.B
12-31-2017, 04:13 PM
vB4 css will not work on a vB5 site.
In Omnibus
12-31-2017, 05:12 PM
vB4 css will not work on a vB5 site.
I know that but he's asking for something a lot more complicated than a simple line of additional CSS. If someone wants to provide the entire CSS free of charge that's their prerogative.
Anton Rahman
01-01-2018, 12:05 PM
hold your horses boys , you make it sound like climbing mount everest , pls dont kill the topic before it even started :'-)
Anyway while waiting for masters Seven Skins and delicjous to take a look at this , here's a little heads up:
the default horizontal wrapping of SUB FORUMS on the main page is so similar to what we need to do , as you all know sub-forums always wrap around horizontally !!
only that we need to apply it on the SUB CATEGORIES , which is the level right above the SUB FORUMS and right below the MAIN PARENT CATEGORIES " those nested directly under --forum
That said actually a similar code does exist in display templates but it's handling only the SUB FORUMS not the SUB CATEGORIES
so In Omnibus , be nice to rookies, we are but a new thinking animal in the long food chain of human evolution
Any help from someone with more superior knowledge , ahm probably whose more kind and merciful ? :-D
--------------- Added 1514820851 at 1514820851 ---------------
here is an example in the very first 6 lines of display_Forums_list
{vb:set subChannelsPerRow, 3}
and that's why the default sub forums layout will always wrap around into 3 per line !
so how can we apply the same for sub categories ? i.e one step above in the hierarchy descending from --forum
do we get an amen ? pls ask for clarifications if this could help the discussion
In Omnibus ?
any one ?
In Omnibus
01-02-2018, 12:50 PM
Let me see if I can explain this a a manner that is not insulting.
One or two coders have been willing to assist you with any number of requests for custom code that extends beyond the core functionality of the software. That's great and that is their prerogative. There is an invisible line between free assistance and paid work. My (or anyone else) providing what should be paid work free of charge steps on the toes of people like Glenn Vergara who are trying to sustain a living by coding for vBulletin 5. I'm not willing to do that. It's not personal against you or anyone else. My conscience won't allow me to provide free what would be and should be paid work.
Having said that, and seeing as how no one else has responded to your request, I suggest you contact Glenn at his website https://www.vbmods.rocks and inquire as to whether he might be willing to do the coding for you and if there would be a charge.
Anton Rahman
01-02-2018, 02:53 PM
hmm , okay In Omnibus, it seems you know you have the answer that's why the overwhelming confidence huh ;-)
well noted !
but pls take note that we are looking for a css_addtional.css or a hook , not a direct edit to the templates...
still waiting for more people with more superior knowledge , or anything ? anyone ?
Seven Skins
01-02-2018, 07:32 PM
but pls take note that we are looking for a css_addtional.css or a hook , not a direct edit to the templates...
Not possible as vb5 uses tables ..
You will have to edit templates.
Mark.B
01-02-2018, 08:39 PM
hmm , okay In Omnibus, it seems you know you have the answer that's why the overwhelming confidence huh ;-)
well noted !
but pls take note that we are looking for a css_addtional.css or a hook , not a direct edit to the templates...
still waiting for more people with more superior knowledge , or anything ? anyone ?
It's important to note that with customisation work like this, people usually don't "know the answer" but they may have the skills to work it out and code something, be it css or templates or whatever, that might achieve it. In Omnibus could probably work it out, as could I, I doubt he just 'knows it'. This working out takes time and effort, it isn't a matter of pressing a few buttons, and as previously stated it's how some people make their living.
In essence, you're asking for the software to do something it was never built to do....that's why you've had no instant answers, because there isn't one!
When a request strays too far from providing a quick bit of five minute css work, it's usually going to stray into paid work territory. I'm sure it wouldn't be expensive, in the grand scheme of things. As stated above, Glenn Vergara at https://vbmods.rocks does custom work at very reasonable costs, and he's very good. SevenSkins is also in this thread, I don't know if he takes on that type of work but he's very good as well, he is at https://www.sevenskins.com. These and others like them have been around the vBulletin scene for years and know what they are doing.
delicjous
01-03-2018, 08:33 AM
It's important to note that with customisation work like this, people usually don't "know the answer" but they may have the skills to work it out and code something, be it css or templates or whatever, that might achieve it. In Omnibus could probably work it out, as could I, I doubt he just 'knows it'. This working out takes time and effort, it isn't a matter of pressing a few buttons, and as previously stated it's how some people make their living.................These and others like them have been around the vBulletin scene for years and know what they are doing.
Just want to clearify that I told you "Anton Rahman" to don't change any vB-standard templates and answered serveral pm's.
Personaly I don't want money for some forum-help any Glenn helps also a lot for free ...but I don't think that you should force answer (and thats for free) you will never get.
There is no answer to your question with any vB5-standard-features...Once again -> You could modify your templates...but you have to repeat it everytime you upgrade.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.