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)
-   -   Forums arranged in columns on forumhome (https://vborg.vbsupport.ru/showthread.php?t=41529)

Dean C 10-30-2002 05:21 PM

Lol im a nuiscance i know but i still am desperate to get my forum columns looking like here at:

http://www.wildvibes.net/forum

Regards

- miSt

Mr_P 10-30-2002 07:38 PM

ok i suzzed my prob out i added instead of replacing inside index.php so was down to User Error (cause of to many probs on vbull i bet :)


In index.php (root) find this :


PHP Code:

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

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


Now REPLACE this in index.php to this

PHP Code:

if(strstr(" ".$columnparent." "" ".$forum['parentid']." ")) {
if(
$colsdone!=1) {
$colsdone=1;
$colcounter=1;
eval(
"\$forumbits .= \"".gettemplate("colforumtableheader")."\";");
} else {
$colcounter++;
if(
$colcounter%($forumcols+1)==0) {
$forumbits .= "</tr><tr>";
$colcounter=1;
}
}
$width="width=".(100/$forumcols)."%"//take out if you want variable column widths
eval("\$forumbits .= \"".gettemplate("colforumbit")."\";");


} else {
if(
$colsdone==1) {
$colsdone=0;
$colcounter=0;
eval(
"\$forumbits .= \"".gettemplate("colforumtablefooter")."\";");
}

// eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");
if(strstr(" ".$columnparent." "" ".$forum['forumid']." ")) {
eval(
"\$forumbits .= \"".gettemplate("forumhome_colbit_level$depth$tempext")."\";");
} else {
eval(
"\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");
}

}

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


if (
$depth<$forumhomedepth) {
$forumbits. =makeforumbit($forum['forumid'],$depth+1,$forumper
ms
);
}
// END if can view
// END while ( list($key2,$forum)=each($val1) ) {
// END while ( list($key1,$val1)=each($iforumcache["$forumid"]) ) { 

and now it works fine the bars have totally disappeared for me.

So if it dont work just go over tha hack again.If you installed the one that adds a GFX to the section recheck this as well.

Mr_P 10-30-2002 07:42 PM

ok i have re-add the install file for this hack as i have made a few template changes and it works Deffo.

just go over it and see whats different and tell me if it works for u.

Buddha 10-31-2002 12:36 AM

excellent work guys.
thank you very much. works like a charm, and allows me a lot of freedom with the templates to modify as i need to.

thanks!

Mr_P 10-31-2002 04:41 AM

Quote:

Originally posted by Buddha
excellent work guys.
thank you very much. works like a charm, and allows me a lot of freedom with the templates to modify as i need to.

thanks!

Nps

Consider yourself lucky first time one of my fixes has work :)

Xenon 10-31-2002 10:05 AM

thanx, have to take a closer look at it. :)

N9ne 11-01-2002 07:27 PM

Xenon: Is there a quick fix for this:

I have this template mod installed: http://www.vbulletintemplates.com/mo...ghlight=header

It is the famous "add header cells under categories".

Now because of this it shows under the category for forums arranged in columns! I want to remove it from JUST that category, ie. all categories arranged in columns.

For Mr_P's code, do I just uninstall your hack [in index.php] and apply what he has done? And all is ok? Or do I actually need to create the extra templates he calls in his code?

Mr_P 11-01-2002 07:33 PM

Hmm i dont call in no extra templates m8,all the orginal coding is done by Xenon

all i did was edit some of them to suit me and get the effect i wanted.

You dont need to uninstall the hack

just look at instructions in the zip file its the same as Xenons but i have already added the extra bits needed so check them against the code you have and add as needed.

Only takes a few mins to do the full hack anyway.

Quote:

For Mr_P's code, do I just uninstall your hack [in index.php] and apply what he has done? And all is ok? Or do I actually need to create the extra templates he calls in his code?
Change the code in index.php

and then in the txt file u notice the templates you have to make have a bit differetn code in them.Just cut and paste over the template you already have.

N9ne 11-01-2002 08:02 PM

I can't cut and paste them because you have hardcoded colours, use a tbody tag, and have hardcoded widths :(

N9ne 11-01-2002 10:20 PM

bump.


All times are GMT. The time now is 12:44 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.01466 seconds
  • Memory Usage 1,757KB
  • 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
  • (2)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
  • (2)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