![]() |
Forums arranged in columns on forumhome
As requested several times, this hack allows you to arrange forums on forumhome in xx columns instead of just one per row as it is in standart vb3.
Look at the screenshot to know what i mean :) The design is changeable in the templates of course :) I've tested it, and it should work, but as i don't use it myself, i cannot do a longtime test, so if you find any bugs, report them :) You can apply the changes to forumdisplay as well if wanted :) |
Nice one Xenon, another quality hack as always. now, i KNOW alot of people want this ;)
|
Haven't had use for this in the past, but now with about 50 hosted forums this will save a little space on forumhome. :)
|
Time to port my add-on;)
|
Thanks!, i've been waiting for this. <333
|
Quote:
that reminds me of adding the addon things to vb.org which i have planned ;) |
okay, i'm getting an error... it says:
Code:
then add this new function to the file: |
what does it look like if the forum that is aligned in a coloumn has posts in it ? does that number get displayed
|
*arie ---- you need to edit includes/functions_forumlist.php like it says in the instructions, then for the code underneath the line you just showed up there, Copy it all and place it above the ?> Tag at the bottom of the file.
Corsacrazy --- I cannot remember exactly, but there may be more information over in the vB2 thread, of this hack. Maybe try looking there for your answer, sorry i couldnt help more. |
this looks real nice, but I tired this on me learning curve on vb2 and could not get it to work :( hopefully I might have another go with RC2, if it works on RC2 that is? :)
thanks |
@surfhog: this version work better than my old vb2 solution, as with template conditionals and all, there are some improvements to use :)
@corsacrazy: if you look closer into the construct_column function, you will see, that postcount/threadcount/description is parsed, so you just have to add it to the columncell template and it'll show :) |
cheers one more thing, if i do add the parsed selection u mentioned and the forum is private will ir reconize this and show the private text instead of the info ?
|
you could answer this question yourself if you would have looked at the code ;)
PHP Code:
|
sotty im not lazy honest just dont download hacks til i know its what my forum needs, appriciate ur effots mate
|
Quote:
|
Glad to hear it helped :)
|
it is rather a good hack
|
I like this hack , there's one thing i would love to see change in this.
I have a members gallery forum that has just links as sub-forums , can this hack be altered for links as well as forums ? Would be brilliant as there's about 30 links & have a fair page size. Cheers Chris |
Well, you know forums can actually be links, so just create some link forums as the subforums.
as you can change the desing within the template, it should be possible as well :) |
Great hack. I got it installed and working on my test boards. Can't wait for the forum image addon.
|
very nice Stefan, but you forgot to add 'forumhome_forumbit_columncell' to the global templates in index.php. It doesnt get cached atm. :)
|
Now all we need are custom on/off icons for it and then i'll port my custom header bit hack :p
|
Quote:
|
Thanks very good hack
|
If it doesnt already can we have the latest post underneath the name and maybe a shorter version of the description?
|
the last post info is parsed, so you can add it to the template yourself if you want to
for a shorter description find this: PHP Code:
PHP Code:
|
Interesting looking hack! I have one category that has grown and now has 23 forums in it.
Question 1: "Sub-Forums" has been referred too, but by looking at the screen shot it appears that is puts all forums in a category into the column mode. Is this correct or just a forum that has 1 or more sub-forums? Question 2: If it indeed only works with forums that have sub-forums, can you specify which forum(s) that you want to do this in? Sorry for the dumb questions, but it's been one of those days. Maybe I'm not seeing the forest for the trees! Thanks all! Dan |
All sections are meerly put into the way it is shown in the screenshot, if these sections have sub sections, i believe you will have to go inside to see them.
As for specifying what forum you want to do this with, the answer is yes :) |
As Mindtrix already posted, you can specify which forums have their subforums ordered in columns.
on that screenshot i entered to show the subforums of my 2 categories to show up in that specific columns, but you can change which one's subforums show up that way. But note, this just works on Forumhome, on forumdisplay it will show all forums the traditional way. also i have not tested about how nested forums will look like if you have enabled to display more than two levels on forumhome, maybe it would be worth a try someday :) |
Quote:
|
it's spelled construct_forum_columns
|
Having some difficulty figuring this one out...
I use the category spacing mod, so my level_one_no_post looks like this: Code:
<if condition="$childforumbits"> |
you just have to replace the $childforumbits with that
HTML Code:
<if condition="$forum['subforumcolumns'] > 1"> |
Thanks for the reply!
Only one thing still wrong, see attachment. |
replace
HTML Code:
<else /> HTML Code:
<else /> |
Quote:
|
HTML Code:
<tr align="center"> |
Perfect... thanks for all the help :)
|
:)
you're welcome |
I too have the separate catagory box hack and applied the fix you show above. Everything looks and works great however my expand and collapse buttons do not operate now for any of the catagories.
BTW, very nice hack indeed. This sure is going to save a lot of screen real estate for my forums when I get them updated! Thanks! Dan Here is my level1_nopost code. Code:
<if condition="$childforumbits"> |
All times are GMT. The time now is 04:52 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|