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)

carpman 07-29-2002 08:14 AM

Quote:

Originally posted by dabean


That fact fact that the hack is storing the data has me puzzled.

My gut feeling is that another hack is somehow conflicting with this one.

To test this theory I've attached modified version a one file which would cure such a problem. This file is direct replacement for the existing one in the zip file.



works a treat :)

many thanks

PeterNRG 08-01-2002 08:14 AM

Instead of contracting all the forums to just the category titles, it would be cool if you could also contract to just the category + forum titles (so without the forum descriptions, and maybe the moderators)

I think the forum descriptions are only needed for new visitors. Once you are a regular visitor to a board, you don't really read the forum descriptions anymore, thus they take up a lot of space, which forces the (lazy) user to scroll more :).

What do you think? It would be a cool addition to this hack IMHO.

dabean 08-01-2002 07:36 PM

Quote:

Originally posted by PeterNRG
Instead of contracting all the forums to just the category titles, it would be cool if you could also contract to just the category + forum titles (so without the forum descriptions, and maybe the moderators)

I think the forum descriptions are only needed for new visitors. Once you are a regular visitor to a board, you don't really read the forum descriptions anymore, thus they take up a lot of space, which forces the (lazy) user to scroll more :).

What do you think? It would be a cool addition to this hack IMHO.

The extremely simple and lazy way. :rambo:

template: forumhome_expandcontract
PHP Code:

<div id="c$forum[forumid]style="$divcollapse"><img alt="Collapse" title="Contract Category" src="{imagesfolder}/collapse.gif" onclick="forumexp('$forum[forumid]')" /><a href="forumdisplay.php?s=$session[sessionhash]&amp;forumid=$forum[forumid]">$forum[title]</a>
    <
br>$forum[description]</div>
<
div id="e$forum[forumid]style="$divexpand"><img alt="Expand" title="Expand Category" src="{imagesfolder}/expand.gif" onclick="forumexp('$forum[forumid]')" /><a href="forumdisplay.php?s=$session[sessionhash]&amp;forumid=$forum[forumid]">$forum[title]</a>
    </
div

template: forumhome_forumbit_level1_nopost
PHP Code:

<tr class="cat">
    <
td colspan="6">$expandcontract</td>
</
tr

:banana:

carpman 08-06-2002 09:04 AM

I have been playing about with adding sub catagories to some of my forum catagories, however this does not work with this hack.

Sub catagory does not collapse with main catagory and the forums in the sub catagory do not have collapse contact options.

If you understand what i am talking about, is it possible to acheive this?

cheers

dabean 08-06-2002 06:09 PM

Quote:

Originally posted by carpman
I have been playing about with adding sub catagories to some of my forum catagories, however this does not work with this hack.

Sub catagory does not collapse with main catagory and the forums in the sub catagory do not have collapse contact options.


If you understand what i am talking about, is it possible to acheive this?


cheers

Seeing as this question pops up regularly I've added a FAQ
Qouting from it..

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/show...0465#post250465

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

carpman 08-06-2002 07:20 PM

cheers, i will give it a go

DarkDraco07 08-13-2002 10:12 AM

PHP Code:

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

what does this mean?????

DarkDraco07 08-13-2002 09:46 PM

can someone help???

dabean 08-13-2002 11:25 PM

Quote:

Originally posted by DarkDraco07
PHP Code:

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

what does this mean?????

Parse errors mean that your code is just plain wrong and cannot/will not run.

To fix the error you need to look at what is wrong with line(s) mentioned, which in these cases are lines 435 and 4?
The PHP interpreter is trying to help you fix this by telling you what it expected to find ( '] ).

The problem and the solution is unique to your index.php, I would assume due to mispasting from the readme.

If you don't know what you did wrong or can't find the problem then you need to revert index.php (just index.php not the db) to the backup version you should have taken before attempting to make the modifications required by this hack. Then re-add the changes this hack requires.


When the readme is followed to the letter this hack will and does work "out of the box" so to speak.

DarkDraco07 08-14-2002 09:41 AM

i uninstalled and reinstalled it 3 times, i couldnt have messed up 3 times


All times are GMT. The time now is 05:01 PM.

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.01981 seconds
  • Memory Usage 1,758KB
  • 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
  • (4)bbcode_php_printable
  • (4)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