vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forums arranged in columns on forumhome (https://vborg.vbsupport.ru/showthread.php?t=99829)

Xenon 10-31-2005 10:00 PM

Forums arranged in columns on forumhome
 
As requested several times, this hack allows you to arrange forums on forumhome in xx columns instead of just one per row as it is in standart vb3. It is a plain port of my 3.0 version you can find here.

Look at the screenshot to know what i mean :)

The design is changeable in the templates of course :)


I've tested it, and it should work, but as i don't use it myself, i cannot do a longtime test, so if you find any bugs, report them :)

Right now, it's just working on forumhome.
I'll add changes for forumdisplay later

Cheertobi 11-01-2005 11:43 AM

First to thanks you for that hack!

My members still love you for that one ;)

[high]* Cheertobi clicks install!
[/high]

Tobi

Yorixz 11-01-2005 12:05 PM

Looks interesting, I might use this for a few chat forums; I suppose this only affects the category you select and not your whole forum?

bpn 11-01-2005 12:31 PM

Thank you so much :)

Cheertobi 11-01-2005 12:51 PM

Hi,

I found two small typos within the filemodifications:

Code:

find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                // Set Defaults;
                $forum = array(
                        'title' => '',
                        'description' => '',
                        'link' => '',
                        'displayorder' => 1,
                        'daysprune' => -1,
                        'parentid' => $vbulletin->GPC['parentid'],
                        'newthreademail' => '',
                        'newpostemail' => '',
                        'moderatenewpost' => 0,
                        'moderatenewthread' => 0,
                        'moderateattach' => 0,
                        'warnall' => 0,
                        'styleid' => '',
                        'styleoverride' => 0,
                        'password' => '',
                        'canhavepassword' => 1,
                        'cancontainthreads' => 1,
                        'active' => 1,
                        'allowposting' => 1,
                        'indexposts' => 1,
                        'allowhtml' => 0,
                        'allowbbcode' => 1,
                        'allowimages' => 1,
                        'allowsmilies' => 1,
                        'allowicons' => 1,
                        'allowratings' => 1,
                        'countposts' => 1,
                        'showonforumjump' => 1,

There is no comma after 'showonforumjump' => 1.

Code:

find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$forumbits = construct_forum_bit($forumid);

Seems now to be:
Code:

$forumbits = construct_forum_bit($foruminfo['forumid']);
Regards,

Tobi

99SIVTEC 11-01-2005 01:36 PM

Thanks xenon. I'll install and report back ;)

Andreas 11-01-2005 01:41 PM

To get rid of the index.php edit:

cache_templates
PHP Code:

if (THIS_SCRIPT == 'index')
{
    
$globaltemplates[] = ''forumhome_forumbit_columncell';


To get rid of the admincp/forum.php edits
forumadmin_add_default
PHP Code:

$forum['subforumcolumns'] = '1'

forumadmin_edit_form
PHP Code:

print_table_header($vbphrase['subforum_settings']);
print_input_row($vphrase['show_subforums_in_x_columns'], 'forum[subforumcolumns]'$forum['subforumcolumns']); 


forumdata_start
PHP Code:

$this->validfields['subforumcolumns'] = array(TYPE_UINTREQ_NO); 


Cheertobi 11-01-2005 03:11 PM

Hi,

seems to work great, but when I press on a categoryname to view only this categoeries forums I got a wrong table!

Picture is attached, seems like something in forumdisplay is wrong for me.

Tobi

Xenon 11-01-2005 03:44 PM

@Cheertobi: i have not yet worked out the forumdisplay parts.

as sai i did not have enough time yet to code it in a way i would like it myself, and it's jsut released so the missing functionaly time could be reduced ;)
Quote:

Originally Posted by Yorixz
I suppose this only affects the category you select and not your whole forum?

yep

@Andreas: thx ;)

99SIVTEC 11-01-2005 03:50 PM

works perfectly for me. http://www.automotivearena.com or a direct link to the forums http://www.automotivearena.com/forums/


All times are GMT. The time now is 11:38 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.01593 seconds
  • Memory Usage 1,749KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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