View Single Post
  #54  
Old 11-25-2005, 06:08 AM
fridayweb's Avatar
fridayweb fridayweb is offline
 
Join Date: Jun 2002
Location: F13 Headquarters
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03657 seconds
  • Memory Usage 1,785KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete