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)

Lionel 07-26-2002 03:25 PM

it removed the category image in forumhome and did not display the columns... :(

Xenon 07-26-2002 03:34 PM

hmm, intresting, does your code look like that?

PHP Code:

        if($forum['parentid']!=$columnparent) {
          if(
$colsdone==1) {
            
$colsdone=0;
            eval(
"\$forumbits .= \"".gettemplate("colforumtablefooter")."\";");
          }
        if (
$forum['sponsorimg'] && $forum['cancontainthreads']==&& $depth==1) {
          eval(
"\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_sponsor")."\";");
        } else {
           if (
$forum['link']) {
        eval(
"\$forumbits .= \"".gettemplate("forumdisplay_linkbit_level$depth")."\";");
        } else {
        eval(
"\$forumbits .= \"".gettemplate("forumdisplay_forumbit_level$depth$tempext")."\";");
        }
        }
        } else {
          if(
$colsdone!=1) {
            
$colsdone=1;
            
$colcounter=1;
            eval(
"\$forumbits .= \"".gettemplate("colforumtableheader")."\";");
          } else {
            
$colcounter++;
            if(
$colcounter%($forumcols+1)==0$forumbits .= "</tr><tr>";
          }  
          eval(
"\$forumbits .= \"".gettemplate("colforumbit")."\";");
        }
}
        if (
$depth<$forumhomedepth) {
          
$forumbits.=makeforumbit($forum['forumid'],$depth+1,$forumperms);
        } 

if it does, then it should work

Lionel 07-26-2002 03:59 PM

Probably from a bracket somewhere?

my code:

$tempext = '_nopost';
}

if ($forum['sponsorimg'] && $forum['cancontainthreads']==0 && $depth==1) {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_ sponsor")."\";");
} else {
if ($forum['link']) {
eval("\$forumbits .= \"".gettemplate("forumdisplay_linkbit_level$depth" )."\";");
} else {
eval("\$forumbits .= \"".gettemplate("forumdisplay_forumbit_level$depth $tempext")."\";");
}
}

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

yours:

$tempext = '_nopost';
}
if($forum['parentid']!=$columnparent) {
if($colsdone==1) {
$colsdone=0;
eval("\$forumbits .= \"".gettemplate("colforumtablefooter")."\";");
}
if ($forum['sponsorimg'] && $forum['cancontainthreads']==0 && $depth==1) {
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level1_nopost_ sponsor")."\";");
} else {
if ($forum['link']) {
eval("\$forumbits .= \"".gettemplate("forumdisplay_linkbit_level$depth" )."\";");
}
}else {
eval("\$forumbits .= \"".gettemplate("forumdisplay_forumbit_level$depth $tempext")."\";");
} else {
if($colsdone!=1) {
$colsdone=1;
$colcounter=1;
eval("\$forumbits .= \"".gettemplate("colforumtableheader")."\";");
} else {
$colcounter++;
if($colcounter%($forumcols+1)==0) $forumbits .= "</tr><tr>";
}
eval("\$forumbits .= \"".gettemplate("colforumbit")."\";");
}

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

Xenon 07-26-2002 04:06 PM

yes seems i forgot a } in my post, try to apply it again...

if it doesn't work print the exact error msg and the refering line ;)

Lionel 07-26-2002 04:12 PM

I got it at line 727. But your line is different than mine. Mine calls for template forumdisplay, yours calls for forumhome

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

Xenon 07-26-2002 04:16 PM

hmm, you're on forumhome so i think forumhome templates would be better ;)

i don't see any errors, you should maybe ask in the supportthread for sponsoring hack....

Lionel 07-26-2002 04:24 PM

I'll give it another try later

ModshackUK 07-27-2002 05:47 PM

when i try to run the the sql alterations I get this message ?

MySQL said: You have an error in your SQL syntax near 'INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,op' at line 2

Does anyone else get it or am I alone in the dark here :)

ModshackUK 07-27-2002 10:25 PM

Its OK I put the 2 queries in seperatly and it worked ok although now I have 2 sets of each forum on the forums home and the templates are a little screwy

HM

jeffj 07-28-2002 11:37 AM

like someone else here I get an error as soon as I installed the hack according to the instructions...parse error...

I had to comment out a '}" to get it to even read index.php without generating a parse error.... the one right before
PHP Code:

// END if can view 

after that I tried to get it to display in columnar format and was only partially successful.

This is what I observed:

If I specified 1 column it would display two columns.
If I specified 2 columns it would display 3 columns and so on.

that is actually the least of my concerns since I am experiencing this wierdness show in the attached jpg.

any ideas???

thanks in advance...

- jeff


All times are GMT. The time now is 10:38 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.01102 seconds
  • Memory Usage 1,755KB
  • 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
  • (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