vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forums arranged in columns on forumhome (https://vborg.vbsupport.ru/showthread.php?t=99829)

Xenon 11-24-2005 05:09 PM

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.

DJ XtAzY 11-25-2005 05:17 AM

i cant wait till u have time to work on the forumdisplay version

fridayweb 11-25-2005 06:08 AM

Thank you for your quick response before, I know you're a busy person!

From Forums arranged in columns on forumhome (3.0.3):

Quote:

Originally Posted by Xenon
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'] != AND ($subsonly OR $depth MAXFORUMDEPTH)) 

and change into
PHP Code:

if ($bbuserinfo['fieldxx'] == 'yes' AND THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 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.

Help me, Xenon. You're my only hope! :)

Allan 11-25-2005 01:26 PM

Click Install ;)

but, i'm this error:
Code:

Fatal error: Call to undefined function: construct_forum_columns() in /xxxxxxxxxxx/xxxxxxx/public_html/forum/includes/functions_forumlist.php on line 296

Xenon 11-25-2005 05:32 PM

@Allan: you missed a step during the installation:

Quote:

then add this new function to the file:
Quote:

Originally Posted by fridayweb
PHP Code:

if ($bbuserinfo['fieldxx'] == 'yes' 


should be:
PHP Code:

if ($vbulletin->userinfo['fieldxx'] == 'yes' 

then it should work.
Quote:

Originally Posted by XtAzY
cant wait till u have time to work on the forumdisplay version

shouldn be too long ;)

Allan 11-25-2005 05:41 PM

Not understand this:
Code:

replace the xx with the fieldid of your new custom field
Which custom field ???

Xenon 11-25-2005 07:03 PM

he is referring to an old addon, look into the 3.0 thread to find out :)

Allan 11-25-2005 07:34 PM

Quote:

Originally Posted by Xenon
he is referring to an old addon, look into the 3.0 thread to find out :)

https://vborg.vbsupport.ru/showpost....&postcount=375

but not anderstand :(

I does not see the report with the hack, why creates one custom field ?

fridayweb 11-25-2005 09:35 PM

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. :)

Xenon 11-27-2005 01:41 PM

@friday: well, you don't have to, but if you want, xenon@vbulletin.org is my paypal addy ;)

@Allan: that mod was never officially added to the hack, it's normal for such sub addons ;)


All times are GMT. The time now is 01:39 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
  • Page Generation 0.01423 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete