Version: 1.0, by Xenon
Developer Last Online: Oct 2023
Version: 3.5.0
Rating:
Released: 10-31-2005
Last Update: 11-21-2005
Installs: 264
DB Changes Uses Plugins Template Edits
Code Changes
No support by the author.
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. It is a plain port of my 3.0 version you can find here.
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
Right now, it's just working on forumhome.
I'll add changes for forumdisplay later
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I don't remeber of such a modification, but it should work quite similiar, just a few variables have changed, so you might reneame those whaen porting that mod.
as said create a new custom profile field just allowing yes/no as option, and afterwards open functions_forumlist.php
find:
PHP Code:
if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
and change into
PHP Code:
if ($bbuserinfo['fieldxx'] == 'yes' AND THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
replace the xx with the fieldid of your new custom field
that's all
Quote:
Originally Posted by Xenon
glad you could solve it
oh yes, i know the second problem
i forgot to tell you, that you ahve to manipulate the template forumhome_forumbit_level1_nopost as well.
find there
HTML Code:
<if condition="$forum['subforumcolumns'] > 1">
and change it to
HTML Code:
<if condition="$bbuserinfo['fieldxx'] == 'yes' AND $forum['subforumcolumns'] > 1">
I made those two conditional adjustments. On 3.0 it worked great for me, but on 3.5, this is what I'm seeing. The yescolumn.gif and the nocolumn.gif show you what my forum looks like. I've been playing with the fields and it's driving me crazy! (it's not a problem of the yes/no being case-sensitive or a wrong field number)
Oh and when I don't have the conditional in there, the columns work perfectly and I love them. I just know that some of my users want to have the 'old style' rows. If you could give me any advice, I'd really appreciate it. This is the last thing I need to fix for my 3.5 update and my forum will be ready.
Fatal error: Call to undefined function: construct_forum_columns() in /xxxxxxxxxxx/xxxxxxx/public_html/forum/includes/functions_forumlist.php on line 296
Xenon, that works PERFECT!!! Is there someway I can donate some money to you? Seriously, you just cured a four day headache for me! Much appreciated.
Allan, sorry to confuse you, I was asking about an old setup that would allow this to be user selectable. Check the other thread, and then make the small correction Xenon suggested above.