Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by dabean dabean is offline
Developer Last Online: Dec 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-08-2002 Last Update: Never Installs: 122
 
No support by the author.

This hack adds expansion and contraction support to the forum home page (index.php). The current version of this hack has been tested on vBulletin 2.3.2

Only supported browsers gain the ability to expand and collapse forum groups, non supported browsers do not gain anything, but no errors will be displayed.
Each users preference is saved to the database, additionally admins can select which forums are to be collapsed by default.

  • Browsers supported
  • Netscape6+/Mozilla0.6+
  • MS IE5+
  • Konqueror
  • Opera 7 support is included
  • Browsers unsupported
  • MS IE4 or earlier
  • Netscape 4 or earlier
  • Opera (version 6 and earlier)

Note: PHP 4.1.x or 4.2.x is required, PHP 4.0.x is now unsupported.

Instructions inside attachment.
Updated 4:18 PM 1/12/2002
- Packaged Post, Thread template Addon

Updated 7:53 PM 1/11/2002
- corrected installer

Updated 4:23 PM 1/11/2002
- Added DB support
- Added Per forum Collapsed Pref to admin cp

Updated 01/10/02 01:39am.
- Fixed missing line.

Updated 04/06/02 01:30am.
- Version 1.2
- PHP 4.1.x, 4.2.x support with or without register globals off.
- Performance tweeked javascript

Updated 06/06/02 11:20pm.
- Corrected templatecache bug

Updated 06/25/02
- Corrected formatting errors in readme

Updated 09/01/02
- vB 2.2.7 compatiblity statement, updated readme.

Updated 30/08/03
- vB 2.2.x and 2.3.x compatiblity statement, added new automatic testing script.

FAQ
Q: what exactly is Template_Option.txt?
A: Basically that exention was provided as a request to cover sites with the template modification that adds a "header" to each grouping.

Q: How do I show a forum depth greater than 2?
A: Open vB Admin cp set forum depth to your required level. Then create the additional templates. For template examples see https://vborg.vbsupport.ru/showthrea...465#post250465

Q: Can sub-forums be collapsed?
A: Yes. See the above answer for example templates.

Q: XYZ doesn't work help.
A: Check that all the template changes required have been made, 99% of problems are due to incorrect template alteration. Also use the cx_test.php to automatically check your installation!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #212  
Old 06-19-2002, 07:48 PM
globalwin's Avatar
globalwin globalwin is offline
 
Join Date: Jun 2002
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #213  
Old 06-19-2002, 08:37 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #214  
Old 06-20-2002, 10:11 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #215  
Old 06-25-2002, 12:49 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #216  
Old 06-25-2002, 02:03 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #217  
Old 06-25-2002, 02:04 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

upps i just edited my post! :-)
Reply With Quote
  #218  
Old 06-25-2002, 02:08 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The solve the problem you have modify forumhome_forumbit_level1_nopost to include the fragment you pasted.
Reply With Quote
  #219  
Old 06-25-2002, 02:15 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes but how to do that? can give more details? Thanks!
Reply With Quote
  #220  
Old 06-25-2002, 03:14 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #221  
Old 06-25-2002, 03:36 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
???
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04866 seconds
  • Memory Usage 2,353KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete