vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Collapsable forums on forum home (https://vborg.vbsupport.ru/showthread.php?t=33961)

herby 09-01-2002 06:18 PM

Thanks.

I've pretty much followe the instructions to the letter, but no joy on the collapsing.

>> http://iafma.org/gm/forums/

Where are the obvious places to look under the hood?

Thanks,

Herby

dabean 09-01-2002 07:20 PM

Quote:

Originally posted by herby
Thanks.

I've pretty much followe the instructions to the letter, but no joy on the collapsing.

>> http://iafma.org/gm/forums/

Where are the obvious places to look under the hood?

Thanks,

Herby

define more clearly what's wrong with the collapsing?

1. No + - icons?
2. The icons exist but groups don't collapse?
3. Collapsed state is not remebered?

Solutions
1. Sounds very much like your missing a template check that
forumhome_expandcontract exists and that
forumhome_forumbit_level1_nopost contains "$expandcontract"
2. Check the template "forumhome_expandjscript" exists and "forumhome" contains $expandcontractscript.
3. Check "updateindex.php" is in your forums directory.

I would look at your site but the registration system requiring multiple accounts put me off.

herby 09-01-2002 07:40 PM

1. No + - icons?

All solution steps checked.

I've just PMed a temp username/pass

Many thanks,

Herby

Quote:

Originally posted by dabean


define more clearly what's wrong with the collapsing?

1. No + - icons?
2. The icons exist but groups don't collapse?
3. Collapsed state is not remebered?

Solutions
1. Sounds very much like your missing a template check that
forumhome_expandcontract exists and that
forumhome_forumbit_level1_nopost contains "$expandcontract"
2. Check the template "forumhome_expandjscript" exists and "forumhome" contains $expandcontractscript.
3. Check "updateindex.php" is in your forums directory.

I would look at your site but the registration system requiring multiple accounts put me off.


dabean 09-01-2002 08:10 PM

Quote:

Originally posted by herby
1. No + - icons?

All solution steps checked.

Many thanks,

Herby


Okay all required templates seem to exist on the defualt template set. So I'd now suggest that a code modification hasn't been made.
Firstly what PHP version?

Secondly does
PHP Code:

// expand collapse hack
require('./admin/getbrowser.php');
require(
'./admin/getforumview.php');
$BrowserDOM=GetBrowserDOM2();
$templatesused.=',forumhome_expandcontract,forumhome_expandjscript';
// end expand collapse hack 

Exist?

now does
PHP Code:

global $BrowserDOM$collapsedstate

Exist?

does
PHP Code:

if ($BrowserDOM==True) {
  eval(
"\$expandcontractscript = \"".gettemplate('forumhome_expandjscript')."\";");


Exist?

Is getbrowser.php in your admin directory?

What is the output of phpinfo.php (included in the vBulletin archive)?
If you don't want to post the output of phpinfo then PMing it is fine.

herby 09-01-2002 09:29 PM

Oops!

Running PHP Version 4.0.6

Will get that upgraded and see what happens.

Thanks,

Herby

dabean 09-01-2002 09:36 PM

Quote:

Originally posted by herby
Oops!

Running PHP Version 4.0.6

Will get that upgraded and see what happens.

Thanks,

Herby

Open getbrowser.php change
PHP Code:

 function GetBrowserDOM2() {
  if (isset(
$_SERVER['HTTP_USER_AGENT'])) {
     
$htuagent trim($_SERVER['HTTP_USER_AGENT']); 

into
PHP Code:

 function GetBrowserDOM2() {
  global 
$HTTP_SERVER_VARS;
  if (isset(
$HTTP_SERVER_VARS['HTTP_USER_AGENT'])) {
     
$htuagent trim($HTTP_SERVER_VARS['HTTP_USER_AGENT']); 

Which should make it work.

herby 09-01-2002 09:53 PM

Perfect. That did the trick.

I assume that after upgrading to the latest version PHP, I have to reverse the above again?

Cheers,

Herby

PS How can I make the forums collapsed by default?

dabean 09-01-2002 10:42 PM

Quote:

Originally posted by herby
Perfect. That did the trick.

I assume that after upgrading to the latest version PHP, I have to reverse the above again?

Cheers,

Herby

PS How can I make the forums collapsed by default?

No, you don't need to undo the change $HTTP_SERVER_VARS is still supported on 4.1.x and 4.2.x. The reason I choose use $_server was to encourage upgrading to 4.1.x or newer.

Collapsing forums by default can be done in your admin cp by selected "collapsed" for the parent forum. Currently forums can't be collapsed based on usergroups.

herby 09-01-2002 10:58 PM

I was getting the mysql 1054 error when navigating the forums.

Running the following seems to have cured that.

ALTER TABLE user ADD forumviewset varchar(250) NOT NULL default ':'


However. when setting the "collapsed" option in the parent forum via the CP, I'm getting this...

Database error in vBulletin Control Panel 2.2.7:

Invalid SQL: UPDATE forum
SET
styleid='1', title='iAfma.org Manifesto', description='',
active='1', displayorder='5', parentid='-1', parentlist='69,-1',
allowposting='0', cancontainthreads='0', daysprune='30',
newpostemail='forums@iafma.org', newthreademail='forums@iafma.org',
moderatenew='1', allowhtml='0', allowbbcode='1',
allowimages='0', allowsmilies='1', allowicons='1',
styleoverride='0', allowratings='1', countposts='1',
moderateattach='1', collapsed='1'
WHERE forumid='69'
mysql error: Unknown column 'collapsed' in 'field list'

mysql error number: 1054

dabean 09-01-2002 11:03 PM

Quote:

Originally posted by herby
I was getting the mysql 1054 error when navigating the forums.
However. when setting the "collapsed" option in the parent forum via the CP, I'm getting this...

Database error in vBulletin Control Panel 2.2.7:

Invalid SQL: UPDATE forum
SET
styleid='1', title='iAfma.org Manifesto', description='',
active='1', displayorder='5', parentid='-1', parentlist='69,-1',
allowposting='0', cancontainthreads='0', daysprune='30',
newpostemail='forums@iafma.org', newthreademail='forums@iafma.org',
moderatenew='1', allowhtml='0', allowbbcode='1',
allowimages='0', allowsmilies='1', allowicons='1',
styleoverride='0', allowratings='1', countposts='1',
moderateattach='1', collapsed='1'
WHERE forumid='69'
mysql error: Unknown column 'collapsed' in 'field list'

mysql error number: 1054

The installer is designed for php 4.1.x or newer to.

You need to run "ALTER TABLE forum ADD collapsed SMALLINT DEFAULT '0' NOT NULL" to add the additional field to the database.


All times are GMT. The time now is 05:04 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.01393 seconds
  • Memory Usage 1,760KB
  • 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
  • (5)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