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
  #52  
Old 01-12-2002, 12:59 AM
jminiman jminiman is offline
 
Join Date: Nov 2001
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by dabean
jminiman: put the modifications in * forumhome_forumbit_level1_post
insted of * forumhome_forumbit_level1_nopost
then (the exact alteration is to add $expandcontract ).

martz: yes that looks correct.
Did that, and no plusses or minuses show up next to parent forums on forums home. Do note that I removed the on/off (check marks) from the parent forum bits on forums home, though I don't think that should matter.

Check out http://discuss.pocketnow.com

Update: just restored everything so the parent forums are showing what they should by default, and still no plusses or minuses.
Reply With Quote
  #53  
Old 01-12-2002, 01:03 AM
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Location: UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still not working for me.

http://forums.utassault.net/index.php?s=

Isn't saving the settings, and I have double checked a lot of stuff.
Reply With Quote
  #54  
Old 01-12-2002, 01:09 AM
jminiman jminiman is offline
 
Join Date: Nov 2001
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it to work, AND I moved the expand/contract images over the left-most cells so it looks a lot tighter.

Check it out: http://discuss.pocketnow.com

You like?

Great hack!
Reply With Quote
  #55  
Old 01-12-2002, 01:11 AM
SirSteve SirSteve is offline
 
Join Date: Oct 2001
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by dabean
hehe,starbug. I really need to work on packaging releases

Steve, I've looked over the hack you have installed change the forumexp function in forumhome_expandjscript to read.

PHP Code:
function forumexp(itemID) {
 var 
fitems=new Array();
 var 
i=0;
 var 
csslevel =1;

if (
document.implementation &&
document.implementation.hasFeature &&
document.implementation.hasFeature("CSS""2.0")) {
 
// The browser claims to support CSS Level 2
 // interface
  
csslevel=2;
}

if (
document.getElementById('c'+itemID).style.visibility=='hidden') {
 
document.getElementById('c'+itemID).style.visibility="visible";
 
document.getElementById('c'+itemID).style.display="inline";
 
document.getElementById('e'+itemID).style.visibility="hidden";
 
document.getElementById('e'+itemID).style.display="none";
 
document.getElementById('f'+itemID+'z').style.visibility="visible";
 if (
csslevel==1) {
   
document.getElementById('f'+itemID+'z').style.display="inline"
 } else {
   
document.getElementById('f'+itemID+'z').style.display="table-row"
 }
 
// build element collection using w3c dom level2 methods
 
while (document.getElementById('f'+itemID+i)!=null) {
  
fitems[i]= document.getElementById('f'+itemID+i);
  
i++;
 }
 
 for (
0fitems.lengthi++) {
  
fitems[i].style.visibility="visible";
  if (
csslevel==1) {
   
fitems[i].style.display="inline";
  } else {
   
fitems[i].style.display="table-row";
  }
 }
 
dostatesaveXP(itemID,0);
} else {
 
document.getElementById('c'+itemID).style.display="none";
 
document.getElementById('c'+itemID).style.visibility="hidden";
 
document.getElementById('e'+itemID).style.display="inline";
 
document.getElementById('e'+itemID).style.visibility="visible";
 
document.getElementById('f'+itemID+'z').style.visibility="hidden";
 
document.getElementById('f'+itemID+'z').style.display="none";
 
 
// build element collection using w3c dom level2 methods
 
while (document.getElementById('f'+itemID+i)!=null) {
  
fitems[i]= document.getElementById('f'+itemID+i);
  
i++;
 }
 for (
0fitems.lengthi++) {
  
fitems[i].style.visibility="hidden";
  
fitems[i].style.display="none";
  }
 }
 
dostatesaveXP(itemID,1);

The other change is to 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="


If that modification works I'll add it to the hack readme
Works great! Check it out:

http://www.sirstevesguide.com/vbportal/forums
Reply With Quote
  #56  
Old 01-12-2002, 01:16 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Martz: do you have phpmyadmin? to check that it is saving settings in the database.

SirSteve: cool and you need to add back the "function dostatesaveXP ()" found in the readme to the template.
It starts on
<!--
function dostatesaveXP (forumID, value) {

all the way down to

}

function forumexp(itemID) {
Reply With Quote
  #57  
Old 01-12-2002, 01:47 AM
SirSteve SirSteve is offline
 
Join Date: Oct 2001
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's getting irratating that the settings are not saving... Also, I noticed in the status bar there is no "Error" on the page until I click the expand/collapse graphic...
Reply With Quote
  #58  
Old 01-12-2002, 01:51 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sirsteve, the fix is in my post above.

Or replace forumhome_expandjscript with the attached file. This is only for people with the forum, post etc.. template hack.
Reply With Quote
  #59  
Old 01-12-2002, 02:03 AM
SirSteve SirSteve is offline
 
Join Date: Oct 2001
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried the file but same thing. Although the "error" is gone from the status bar but it is still not saving my settings.
Reply With Quote
  #60  
Old 01-12-2002, 02:29 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sirsteve visited your site it works for me, apart from a minor display glitch which is fixed by adding $fhomeexpandstyle

[change included in release]
Reply With Quote
  #61  
Old 01-12-2002, 03:11 AM
SirSteve SirSteve is offline
 
Join Date: Oct 2001
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm.... guess I will clear my cookies and see what happens. Thanks. I added that other part as suggested.
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 03:38 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.04422 seconds
  • Memory Usage 2,345KB
  • 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
  • (1)bbcode_php
  • (2)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