vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Listing categories\forums side by side...? (https://vborg.vbsupport.ru/showthread.php?t=41369)

zkilzz 07-21-2002 11:49 PM

Listing categories\forums side by side...?
 
Here is and example

http://www.automotiveforums.com/vbulletin/index.php


Does anyone know how to do it?

Marius

Xenon 07-22-2002 02:43 PM

most of all it's a template modification

this are the templates you have to edit:
forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_post
forumhome_forumbit_level2_nopost
forumhome_forumbit_level2_post

you have to take out all the stuff in the columns, just have the name and the first colum in it.

then you have to change index.php

find:
PHP Code:

eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");

        if (
$depth<$forumhomedepth) {
          
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
        } 

just before add:
PHP Code:

if(!isset($counter) or $counter%4==$forumbits.="<tr>"; } 

and after
PHP Code:

eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");

        if (
$depth<$forumhomedepth) {
          
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
        } 

add this:
PHP Code:

if($counter%4==$forumbits.="</tr>"$counter++; } 


i think it'll do the trick, but it's not tested

Dean C 07-22-2002 03:01 PM

wow that could be very helpful to a lot of people... i might try it out on a test board :D !

Xenon 07-22-2002 03:50 PM

:)
tell me if it works as it should ^^

zkilzz 07-24-2002 12:16 AM

Quote:

Originally posted by Xenon
most of all it's a template modification

this are the templates you have to edit:
forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_post
forumhome_forumbit_level2_nopost
forumhome_forumbit_level2_post

you have to take out all the stuff in the columns, just have the name and the first colum in it.


Hmm how do i actually do this, cant separate one column for another. Is there a away to sort some forums/categories likes this and other the 'normal' way for other forums/categories?

Xenon 07-24-2002 12:28 AM

yes you can also do it this way, but then the coding work would increase a 'bit'

perhaps i'll write such a hack, so i can say how much work it'll really be

/me puts it on to do list

zkilzz 07-24-2002 01:19 PM

Quote:

Originally posted by Xenon
yes you can also do it this way, but then the coding work would increase a 'bit'

perhaps i'll write such a hack, so i can say how much work it'll really be

* Xenon puts it on to do list

ahh cool :D thank you.... looking forward to it...

Xenon 07-25-2002 10:44 PM

https://vborg.vbsupport.ru/showthrea...threadid=41529

unbelievable i found time to code it ;)


All times are GMT. The time now is 07:50 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.01735 seconds
  • Memory Usage 1,732KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete