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
  #262  
Old 08-14-2002, 09:55 AM
DarkDraco07's Avatar
DarkDraco07 DarkDraco07 is offline
 
Join Date: Apr 2002
Posts: 414
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i just tried again, i even replaced my index.php with the original file and it still shows the error
Reply With Quote
  #263  
Old 08-14-2002, 10:23 AM
DarkDraco07's Avatar
DarkDraco07 DarkDraco07 is offline
 
Join Date: Apr 2002
Posts: 414
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MY FORUMS HAVE BEEN CURRUPTED AHHHHHHHHHHHHHHHH
i unistalled every step, took out and unedited template, took out the tables, unedited the file AND IT STILL SHOWS THE ERROR!!!
Reply With Quote
  #264  
Old 08-14-2002, 04:30 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DarkDraco07
MY FORUMS HAVE BEEN CURRUPTED AHHHHHHHHHHHHHHHH
i unistalled every step, took out and unedited template, took out the tables, unedited the file AND IT STILL SHOWS THE ERROR!!!
Paste the full error message.

Paste the contents of the line(s) mentioned in the error message. If as a suspect the line is some like eval("\$blahblah = \"".gettemplate('sometemplate')."\";"); Paste the contents of the template named too.

And do you still get a parse error when using the default stock index.php supplied with vB?
Reply With Quote
  #265  
Old 08-14-2002, 05:12 PM
DarkDraco07's Avatar
DarkDraco07 DarkDraco07 is offline
 
Join Date: Apr 2002
Posts: 414
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

error

PHP Code:
Parse errorparse errorexpecting `']'' in /home/darkneme/public_html/forums/index.php(380) : eval()'d code on line 4 
line 4

PHP Code:
$templatesused='forumhome_birthdaybit,error_nopermission,forumhome_pmloggedin,forumhome_welcometext,forumhome_logoutcode,forumhome_newposts,forumhome_todayposts,forumhome_logincode,forumhome_loggedinuser,forumhome_loggedinusers,forumhome_lastpostby,forumhome_moderator,forumhome_forumbit_level1_nopost,forumhome_forumbit_level1_post,forumhome_forumbit_level2_nopost,forumhome_forumbit_level2_post,forumhome,forumhome_unregmessage'
line 380

PHP Code:
eval("\$forumbits .= "".gettemplate("forumhome_forumbit_level$depth$tempext")."";"); 
Reply With Quote
  #266  
Old 08-14-2002, 05:31 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DarkDraco07

line 380

PHP Code:
eval("\$forumbits .= "".gettemplate("forumhome_forumbit_level$depth$tempext")."";"); 
Please paste the contents of
"forumhome_forumbit_level1_nopost",
"forumhome_forumbit_level2_post" &
"forumhome_forumbit_level2_nopost"
Reply With Quote
  #267  
Old 08-14-2002, 07:46 PM
DarkDraco07's Avatar
DarkDraco07 DarkDraco07 is offline
 
Join Date: Apr 2002
Posts: 414
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

forumhome_forumbit_level1_nopost
PHP Code:
<tr id="cat">
    <
td bgcolor="{ categorybackcolor}" colspan=" 7">
<
a href="forumdisplay.php?s=$session[s
essionhash]&forumid=
$forum[ forumid]"><normalfont color="{categoryfontcolor}"><b>$forum[title]</b></normalfont></a>
    <
br><smallfont color="{ categoryfontcolor}">$forum[description]</smallfont></td>
</
tr


forumhome_forumbit_level2_post
PHP Code:
<tr align="center">
    <
td bgcolor="{ secondaltcolor}" valign="top"><img src="{ imagesfolder}/$forum[onoff].gif" border="0" alt=""></td>
    <
td bgcolor="{ firstaltcolor}" align="left"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a>
    <
br><smallfont>$forum[description]</smallfont></td>
    <
td bgcolor="{ secondaltcolor}"><normalfont>$forum[replycount]</normalfont></td>
    <
td bgcolor="{ firstaltcolor}"><normalfont>$forum[threadcount]</normalfont></td>
    <
td bgcolor="{ secondaltcolor}"><normalfont>$count</normalfont></td>
    <
td bgcolor="{ firstaltcolor}"><smallfont>$forum[lastpostinfo]</smallfont></td>
<
form><td bgcolor="{ secondaltcolor}" valign="middle" align="right" nowrap>
<
IMG align="absmiddle" SRC="{ imagesfolder}/team.gif">
<
SELECT NAME="newLoc" onChange="jumpPage(this.form.newLoc)" style="font-size: 7pt; background-color: #dfdfdf; font-family: Arial, Tahoma;" maxlength="20">
<
OPTION VALUE="#">moderators</OPTION>
<
OPTION VALUE="#">---------------------</OPTION>
$forum[moderators]</select></td></form></tr
forumhome_forumbit_level2_nopost
PHP Code:
<tr id="cat">
  <
td bgcolor="{ categorybackcolor}"><smallfont>&nbsp;</smallfont></td>
  <
td bgcolor="{categorybackcolor}" colspan="7">
   <
a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="{ categoryfontcolor}"><b>$forum[title]</b></normalfont></a>
   <
br><smallfont color="{ categoryfontcolor}">$forum[description]</smallfont></td>
</
tr
Reply With Quote
  #268  
Old 08-14-2002, 08:33 PM
DarkDraco07's Avatar
DarkDraco07 DarkDraco07 is offline
 
Join Date: Apr 2002
Posts: 414
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

o wait, there was a space between a variable in the template, THANK YOU SO MUCH FOR POINTING THAT OUT!!!!

I LOVE YOU :banana:
Reply With Quote
  #269  
Old 08-14-2002, 09:00 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<snipped> figured out the error I see.
Reply With Quote
  #270  
Old 09-01-2002, 02:25 PM
herby herby is offline
 
Join Date: May 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Anyone installed this on 2.2.7?

I've tried and it does not seem to work. No errors. The forum display just remains as is.

The only thing I can see that might be the problem is that

global $bbforumview;

is no longer in the index.php for 2.2.7

Hence, will these lines below that still be there, as per the hack instuctions?

// expand collapse hack
global $BrowserDOM, $collapsedstate;
// end expand collapse hack

Thanks in advance.

Herby
Reply With Quote
  #271  
Old 09-01-2002, 05:53 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by herby
Hello,

Anyone installed this on 2.2.7?

I've tried and it does not seem to work. No errors. The forum display just remains as is.

The only thing I can see that might be the problem is that

global $bbforumview;

is no longer in the index.php for 2.2.7

Hence, will these lines below that still be there, as per the hack instuctions?

// expand collapse hack
global $BrowserDOM, $collapsedstate;
// end expand collapse hack


Thanks in advance.

Herby
Tested and works on vB 2.2.7. Whilst the line "global $bbforumview;" has been removed from vB 2.2.7 you do still need to add
PHP Code:
// expand collapse hack
global $BrowserDOM$collapsedstate;
// end expand collapse hack 
Below what remains from the large location fragment.

If your not sure what I mean by this then the readme's inside the zip have been updated to reflect 2.2.7.
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 04:06 PM.


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.05212 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
  • (8)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
  • (1)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