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)

VirtueTech 06-04-2002 01:06 AM

Thanks for your time and effort. It works great!

ManagerJosh 06-05-2002 05:37 PM

Just wondering but does this hack apply to sub forums on listed on the main site? I know that it works for Main Forums but it appears in the pictures not to work on subforums to display sub-sub forums on the main page.

dabean 06-06-2002 03:34 AM

Quote:

Originally posted by ManagerJosh
Just wondering but does this hack apply to sub forums on listed on the main site? I know that it works for Main Forums but it appears in the pictures not to work on subforums to display sub-sub forums on the main page.
Not sure what your asking for, am I to assume your enquiring about if a forum depth greater than 2 is supported on the index?

If so then yes it can work upto N levels deep, where N is the value you set for depth, subject to creating the additional sub level templates.

ManagerJosh 06-06-2002 07:50 AM

Does your hack support a forum depth greater than 2 on the index?

dabean 06-06-2002 07:40 PM

Quote:

Originally posted by ManagerJosh
Does your hack support a forum depth greater than 2 on the index?
Yes, but the additional sub level templates need to be created as they are not included with vb.

dabean 06-06-2002 09:20 PM

Hmm there is a minnor bug in previous zip file.

PHP Code:

$templatesused=',forumhome_expandcontract,forumhome_expandjscript'

should be

PHP Code:

$templatesused.=',forumhome_expandcontract,forumhome_expandjscript'

The zip has been updated accordingly now.

Christoff 06-08-2002 08:04 PM

Help!

On server that my forum is, there is php 4.0.6.
Is there any chance to make this hack working on it?
Pliz help me!

dabean 06-09-2002 07:46 PM

If you want to modify the hack to work with 4.0.x change all references of $_GET to $HTTP_GET_VARS in updateindex.php.

Christoff 06-09-2002 11:48 PM

I've changed that but still.... there is no sign of those icons + and - next to forum names :((
I've got 2,2,4 and i'll upgrade it... i hope it will work after...

dabean 06-09-2002 11:56 PM

Quote:

Originally posted by Christoff
I've changed that but still.... there is no sign of those icons + and - next to forum names :((
I've got 2,2,4 and i'll upgrade it... i hope it will work after...

You need to make the template modifications mentioned in the readme.

globalwin 06-19-2002 07:48 PM

I get this error when inserting it into the db..

SQL-query: [Edit]

ALTER TABLE forum ADD collapsed SMALLINT DEFAULT '0' NOT NULL
ALTER TABLE user ADD forumviewset varchar(250) NOT NULL default ':'
MySQL said: You have an error in your SQL syntax near 'ALTER TABLE user ADD forumviewset varchar(250) NOT NULL default ':'' at line 2

The automated file thing cX_install.php doesnt work...

dabean 06-19-2002 08:37 PM

Quote:

Originally posted by globalwin
I get this error when inserting it into the db..

SQL-query: [Edit]

ALTER TABLE forum ADD collapsed SMALLINT DEFAULT '0' NOT NULL
ALTER TABLE user ADD forumviewset varchar(250) NOT NULL default ':'
MySQL said: You have an error in your SQL syntax near 'ALTER TABLE user ADD forumviewset varchar(250) NOT NULL default ':'' at line 2


The automated file thing cX_install.php doesnt work...

The error you've posted looks suspiciously like a phpmyadmin error message, so what is wrong with cx_install.php?

As stated in the readme you can either manually change the database or use cx_install to do it for you.

As for the error you've reported you need to put a semi-colon at the end of the first line.

FleaBag 06-20-2002 10:11 AM

Working great on 2.2.6. I did notice though in the install guide it mentioned 'add the bits in red', but there were no red bits. Maybe it's just me though. :)

Birdie501 06-25-2002 12:49 PM

Hi,

it works for me. But if i contract the forums in one category only the category is shown. That is ok, but if i reload the page it is still contracted but now there are also the headlines like Forum, Date, Posts, etc... under the category.?

If i expand it and contract it again it is without that headlines?

How to fix that?
Thanks! :cross-eyed:

dabean 06-25-2002 02:03 PM

Quote:

Originally posted by Birdie501
Hi,

installed it, works fine, but what does this mean?

now
find the template you added the the Forum Posts Threads Last Post Moderator repeats per forum to and alter
<tr align="center">
<td bgcolor="

to read
<tr id="f$forum[forumid]z" align="center">
<td bgcolor="

which template???

That instruction is contained in the "template_option" file which is only to be used when you've modified the display to repeat the "forum, posts... etc" header for each group of forums. Now depending on how you've done that modification the template will be either forumhome_forumbit_level1_nopost or forumhome_forumbit_level2_nopost. If you are not using a template mod to repeat the header carrying out the instructions in template_option WILL stop the hack from working correctly.

Birdie501 06-25-2002 02:04 PM

upps i just edited my post! :-)

dabean 06-25-2002 02:08 PM

The solve the problem you have modify forumhome_forumbit_level1_nopost to include the fragment you pasted.

Birdie501 06-25-2002 02:15 PM

yes but how to do that? can give more details? Thanks!

dabean 06-25-2002 03:14 PM

Quote:

Originally posted by Birdie501
yes but how to do that? can give more details? Thanks!
As mentioned in the template_option instructions...
PHP Code:

templateforumhome_forumbit_level1_nopost
find 
and alter 
<tr align="center"
<
td bgcolor=

to read 
<tr id="
f$forum[forumid]z$fhomeexpandstyle align="center">  
<td bgcolor=" 

You also need to have made all of the other changes mentioned in the file.

Birdie501 06-25-2002 03:36 PM

ok this is my template:

PHP Code:

<tr align="middle">
            <
td valign="center" bgColor="#d3e5fa" colSpan=5>&nbsp</td>
</
tr>

<
tr id="cat">

 <
TD bgcolor="#1960CA" background="{ imagesfolder }/cat_backing.gif" colSpan=10 align=center align=middle valign="middle">
 <
table width="100%" border="0" cellspacing="0" cellpadding="0">
<
tr
    <
td align="left" width="15%" valign="middle">
$expandcontract   
    
<img src="{ imagesfolder }/cat_image.gif" width="23" height="15" align="absmiddle">
    </
td>
<
td width="70%" align="center" valign="middle">
  <
b><img src="{ imagesfolder }/cat_sideleft.gif" width="30" height="15" align="middle"></b
 
<
a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]">
    <
normalfont color="#FFFFFF"><b>$forum[title]</b></normalfont></a
    <
img src="{ imagesfolder }/cat_sideright.gif" width="30" height="15" border="0" align="middle">
  

</
td>
    <
td width="15%" valign="middle">&nbsp;</td>
  </
tr>
</
table>
</
td>
</
tr>
<
tr id="f$forum[forumid]z" align="center"
  <
td background="{ imagesfolder }/col_backing.gif" width="5%"><smallfont>&nbsp;</smallfont></td>
  <
td background="{ imagesfolder }/col_backing.gif" width="65%" align="left"><smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont></td>
  <
td background="{ imagesfolder }/col_backing.gif"><smallfont color="{tableheadtextcolor}"><b>Beitr?ge</b></smallfont></td>
  <
td background="{ imagesfolder }/col_backing.gif"><smallfont color="{tableheadtextcolor}"><b>Themen</b></smallfont></td>
  <
td background="{ imagesfolder }/col_backing.gif" nowrap><smallfont color="{tableheadtextcolor}"><b>Letzter Beitrag</b></smallfont></td></tr

What is wrong?
As i said before: if i ctract it, it is ok and i can only see the category!
but if i reload the page you see the category and this part:

PHP Code:

<td background="{ imagesfolder }/col_backing.gif" width="5%"><smallfont>&nbsp;</smallfont></td>
  <
td background="{ imagesfolder }/col_backing.gif" width="65%" align="left"><smallfont color="{tableheadtextcolor}"><b>Forum</b></smallfont></td>
  <
td background="{ imagesfolder }/col_backing.gif"><smallfont color="{tableheadtextcolor}"><b>Beitr?ge</b></smallfont></td>
  <
td background="{ imagesfolder }/col_backing.gif"><smallfont color="{tableheadtextcolor}"><b>Themen</b></smallfont></td>
  <
td background="{ imagesfolder }/col_backing.gif" nowrap><smallfont color="{tableheadtextcolor}"><b>Letzter Beitrag</b></smallfont></td></tr

???

dabean 06-25-2002 03:55 PM

Quote:

Originally posted by Birdie501

What is wrong?

<tr id="f$forum[forumid]z" $fhomeexpandstyle align="center">
<td background="{ imagesfolder }/col_backing.gif" width="5%"><smallfont>&nbsp;</smallfont></td>
<td background="{ imagesfolder }/col_backing.gif" width="65%" align="left"><smallfont color="#EEEEFF"><b>Forum</b></smallfont></td>
<td background="{ imagesfolder }/col_backing.gif"><smallfont color="#EEEEFF"><b>Beitr?ge</b></smallfont></td>
<td background="{ imagesfolder }/col_backing.gif"><smallfont color="#EEEEFF"><b>Themen</b></smallfont></td>
<td background="{ imagesfolder }/col_backing.gif" nowrap><smallfont color="#EEEEFF"><b>Letzter Beitrag</b></smallfont></td></tr>


Your missing a $fhomeexpandstyle in there (highlighted), which um should be in the instructions.

Birdie501 06-25-2002 04:06 PM

aaarrggh, that was it sorry!!!! I read it that much but couldn't find it?
Sorry and thanks for this nice hack!

fixer 06-28-2002 12:14 PM

ok

i have 2 styles

templeats are created in both of them.
it works great in one style while gives (error on page) in the defult style.

dabean 06-29-2002 03:50 PM

Quote:

Originally posted by fixer
ok

i have 2 styles

templeats are created in both of them.
it works great in one style while gives (error on page) in the defult style.

error? a javascript error?

You need to make sure $expandcontractscript appears in your "forumhome" template. Details of where it should be are included in the readme.

fixer 06-29-2002 08:22 PM

yes it is.

i am sure of that.

the $expandcontractscript appears in forumhome template for the both styles at the same place.

dabean 06-30-2002 09:54 PM

Quote:

Originally posted by fixer
yes it is.

i am sure of that.

the $expandcontractscript appears in forumhome template for the both styles at the same place.

hmm the "forumhome_expandjscript" template exists in both styles?

If it does could you supply me a url to your forums or attach the output of your index page.

69-FLy-gUy 07-06-2002 07:49 AM

Ok. I am having a little problem with this hack..

I tried installing it on my forums.. and it doesn't show the + or - sign.... I can manually collapse it from the admin panel... but i can't get the + or - image to show in order to click on it. i am running 2.2.6.. the images are in the images folder...

The only thing i can think of is it may be because i have an image as my category backing.. (kind of like these forums) is there any way i can get this to work?

fixer 07-06-2002 12:19 PM

Quote:

Originally posted by dabean


hmm the "forumhome_expandjscript" template exists in both styles?

If it does could you supply me a url to your forums or attach the output of your index page.


here is the output of my index page.

dabean 07-07-2002 02:17 AM

fixer: your using the javascript contained in "template_option.txt" when you should be using the javascript contained in the main readme :).

69-FLy-gUy: you've modified the "forumhome_forumbit_level1_nopost" template as required? refer to the readme to see what modifications are nessesary. As you'll have altered that line it won't look exactly as shown in the readme.

69-FLy-gUy 07-07-2002 09:08 AM

thanks it worked. sorry for wasting your time.

fixer 07-07-2002 11:47 AM

it works so fine now

thanx

Timmmmmy 07-14-2002 05:43 PM

Code:

Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: INSERT INTO forum
                      (forumid,styleid,title,description,active,displayorder,parentid,
                      parentlist,allowposting,cancontainthreads,daysprune,newpostemail,newthreademail,
                      moderatenew,allowhtml,allowbbcode,allowimages,allowsmilies,allowicons,
                      styleoverride,allowratings,countposts,moderateattach)
                  VALUES
                      (NULL,'1','test','','1','1','-1',
                      '','1','1','30','','',
                      '0','1','1','1','1','1',
                      '0','1','1','0','')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

thats the error i get, This hack didnt work at all for me, i get that error when i try to add another forum.

This all started when i went thru with the altering templates, the index and /admin/forum.php files to what the readme said then i went to run the installer, it wouldnt do anything just kinda look, id lick install and it would just sit there, id click uninstall and it would just sti there so i added the install stuff manually thu phpmyadmin.

I uninstalled everything and I still cant add forums, any thoughts would be nice thanks

dabean 07-14-2002 10:45 PM

Quote:

Originally posted by Timmmmmy
Code:

Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: INSERT INTO forum
                      (forumid,styleid,title,description,active,displayorder,parentid,
                      parentlist,allowposting,cancontainthreads,daysprune,newpostemail,newthreademail,
                      moderatenew,allowhtml,allowbbcode,allowimages,allowsmilies,allowicons,
                    styleoverride,allowratings,countposts,moderateattach)
                  VALUES
                      (NULL,'1','test','','1','1','-1',
                      '','1','1','30','','',
                      '0','1','1','1','1','1',
                      '0','1','1','0','')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

thats the error i get, This hack didnt work at all for me, i get that error when i try to add another forum.

This all started when i went thru with the altering templates, the index and /admin/forum.php files to what the readme said then i went to run the installer, it wouldnt do anything just kinda look, id lick install and it would just sit there, id click uninstall and it would just sti there so i added the install stuff manually thu phpmyadmin.

I uninstalled everything and I still cant add forums, any thoughts would be nice thanks

Assuming you are after uninstallation, then the colum count in that query doesn't match you need to remove the last entry, which will read " ,'$collapsed' " in fact the whole before and after for that line is in the readme. Now coming on to the installer which/what version of php are you using and could you clarrify "just sit there"? does it not progress past the first step?

Graphics 07-15-2002 04:36 PM

I have vb 2.2.6 and when i searched for if ($forum['cancontainthreads']==1) {
$tempext = '_post';
} else {
$tempext = '_nopost';
}
It wasn't found in index.php

Timmmmmy 07-15-2002 04:45 PM

sorry, i click on it, it says at the bottom going to step 2, but doesnt do anything. I had to manually enter the sql data, and ive removed them too. The same thing happens when i go to uninstall it.
Thanks

Timmmmmy 07-15-2002 04:50 PM

Thanks, i thought i had taken everything out, I removed ",'$collapsed' " from the /admin/forum.php and it worked.

dabean 07-16-2002 05:42 PM

Quote:

Originally posted by Graphics
I have vb 2.2.6 and when i searched for if ($forum['cancontainthreads']==1) {
$tempext = '_post';
} else {
$tempext = '_nopost';
} It wasn't found in index.php
Assuming your index.php is unmodified lines 305 to 309 will contain those lines.

Quote:

Originally posted by Timmmmmy
sorry, i click on it, it says at the bottom going to step 2, but doesnt do anything. I had to manually enter the sql data, and ive removed them too. The same thing happens when i go to uninstall it.
Thanks
Installer and the hack will fail to work correctly on php older than 4.0.x, PHP 4.1.x or 4.2.x is required for succesful installation.

carpman 07-26-2002 02:07 PM

template_option.txt
What are these setting for?

I have it working, except it won't remember settings?

I have all but one forum catagory to be collapse as standard, tried in IE5.5 NS6.01 Mozilla 0.9.9 Galeon 1.2.0

many thanks

dabean 07-26-2002 04:19 PM

Quote:

Originally posted by carpman
template_option.txt
What are these setting for?
Optional additional code, generally if you don't know what its for you don't need it.

Quote:

I have it working, except it won't remember settings?
Random guess upload update_index.php to your forums directory.

carpman 07-26-2002 04:57 PM

Quote:

Originally posted by dabean


Optional additional code, generally if you don't know what its for you don't need it.



Random guess upload update_index.php to your forums directory.


thanks for reply.

If someone told me what they are for i could make my own mind up?


I have uploaded updateindex.php, this is the one that came in the zip file!!!


All times are GMT. The time now is 01:59 AM.

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.02358 seconds
  • Memory Usage 1,883KB
  • 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
  • (5)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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