Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Forums arranged in columns on forumhome Details »»
Forums arranged in columns on forumhome
Version: 1.00, by Xenon Xenon is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-25-2002 Last Update: Never Installs: 62
 
No support by the author.

As requested several times, this hack allows you to arrange forums on forumhome in xx columns instead of just one per row as it now.

You have to set up a new category(s). All direct subforums to this category(s) will be arranged in columns.
It can be very usefull if you have very much Subforums, so you haven't to scroll as much as you have before

Newest Version: 1.21
Known Bugs: none

Screenshots below.

Design can be changed in templates..

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 07-26-2002, 03:25 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it removed the category image in forumhome and did not display the columns...
Reply With Quote
  #23  
Old 07-26-2002, 03:34 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #24  
Old 07-26-2002, 03:59 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"]) ) {
Reply With Quote
  #25  
Old 07-26-2002, 04:06 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #26  
Old 07-26-2002, 04:12 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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")."\";");
Reply With Quote
  #27  
Old 07-26-2002, 04:16 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....
Reply With Quote
  #28  
Old 07-26-2002, 04:24 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll give it another try later
Reply With Quote
  #29  
Old 07-27-2002, 05:47 PM
ModshackUK ModshackUK is offline
 
Join Date: Jun 2002
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #30  
Old 07-27-2002, 10:25 PM
ModshackUK ModshackUK is offline
 
Join Date: Jun 2002
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #31  
Old 07-28-2002, 11:37 AM
jeffj jeffj is offline
 
Join Date: Jul 2002
Location: Chesapeake Bay
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06187 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete