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)

jminiman 01-12-2002 12:59 AM

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.

Martz 01-12-2002 01:03 AM

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.

jminiman 01-12-2002 01:09 AM

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!

SirSteve 01-12-2002 01:11 AM

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

dabean 01-12-2002 01:16 AM

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) {

SirSteve 01-12-2002 01:47 AM

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...

dabean 01-12-2002 01:51 AM

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.

SirSteve 01-12-2002 02:03 AM

I tried the file but same thing. Although the "error" is gone from the status bar but it is still not saving my settings.

dabean 01-12-2002 02:29 AM

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

[change included in release]

SirSteve 01-12-2002 03:11 AM

hmm.... guess I will clear my cookies and see what happens. Thanks. I added that other part as suggested.


All times are GMT. The time now is 11:01 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.01395 seconds
  • Memory Usage 1,774KB
  • 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
  • (1)bbcode_php_printable
  • (2)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