Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

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

Version: 3.5.0 Rating:
Released: 10-31-2005 Last Update: 11-21-2005 Installs: 264
DB Changes Uses Plugins Template Edits
Code Changes  
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 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

Show Your Support

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

Comments
  #362  
Old 05-27-2008, 09:49 PM
AWS's Avatar
AWS AWS is offline
 
Join Date: Nov 2001
Location: Joliet, IL
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by datruth55 View Post
Is there a way to show columns in the forumdisplay view? In other words, if I click on a catagory it will take me to a sub-forum view with all the sub-forums listed underneath. Can I change that view to a column view like this hack does on the Index page?
The instructions to make it work on forumdisplay are in the zip.
Reply With Quote
  #363  
Old 06-07-2008, 04:17 AM
taydu taydu is offline
 
Join Date: Oct 2006
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please help i tried to uninstall the product but i get this error

Invalid SQL:
ALTER TABLE forum DROP subforumcolumns;

MySQL Error : Can't DROP 'subforumcolumns'; check that column/key exists
Error Number : 1091

i check the database, and it doesn't have table "subforumcolumns"

what can i do to uninstall this product ?
Reply With Quote
  #364  
Old 06-10-2008, 03:15 PM
Blackheart_72 Blackheart_72 is offline
 
Join Date: Dec 2007
Location: UK
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, works fine on 3.7.

I did all the edits but could only get it to display on forumdisplay when i added this to forumdisplay.php

Code:
if ($foruminfo['subforumcolumns'] > 1)
{
	$forumbits = construct_forum_columns($foruminfo['forumid'], $foruminfo['subforumcolumns']);
}
else
{
$forumbits = construct_forum_bit($foruminfo['forumid']);
}
in place of
Code:
$forumbits = construct_forum_bit($foruminfo['forumid']
On line 425
Reply With Quote
  #365  
Old 06-28-2008, 11:29 PM
Jeffler's Avatar
Jeffler Jeffler is offline
 
Join Date: Feb 2006
Location: Toronto
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got this to work, but it won't stretch 100%...it stops at the threads and replies count. On 3.7.1. Help?
Reply With Quote
  #366  
Old 06-29-2008, 03:42 PM
AWS's Avatar
AWS AWS is offline
 
Join Date: Nov 2001
Location: Joliet, IL
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Remove the thread and reply column.
Reply With Quote
  #367  
Old 06-29-2008, 05:29 PM
Jeffler's Avatar
Jeffler Jeffler is offline
 
Join Date: Feb 2006
Location: Toronto
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured it out now...but new question. I can't get the "catagory icons" mod in forums that have this on. How would I get about doing that? It works on normal forums but not the ones in columns.
Reply With Quote
  #368  
Old 06-29-2008, 11:20 PM
sparklywater sparklywater is offline
 
Join Date: Jun 2008
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm confused, what do I need to do with the file 'product-xenon_forumcols' that comes in the zipped folder? I didn't see anything in the instructions about this?
Reply With Quote
  #369  
Old 07-02-2008, 10:50 AM
Blackheart_72 Blackheart_72 is offline
 
Join Date: Dec 2007
Location: UK
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sparklywater View Post
I'm confused, what do I need to do with the file 'product-xenon_forumcols' that comes in the zipped folder? I didn't see anything in the instructions about this?
Import it through the product manager.
Reply With Quote
  #370  
Old 07-07-2008, 05:24 AM
Brother Malachi Brother Malachi is offline
 
Join Date: Jun 2008
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would I go about combining this with the [AJAX] tabbed forums mod.

Thanks for any help.
Reply With Quote
  #371  
Old 07-11-2008, 09:02 PM
sparklywater sparklywater is offline
 
Join Date: Jun 2008
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Veccy 150 View Post
Import it through the product manager.
Thanks, I guess that was supposed to be obvious but I think it should be mentioned somewhere in the instructions to avoid confusion!
Reply With Quote
  #372  
Old 07-11-2008, 10:50 PM
sparklywater sparklywater is offline
 
Join Date: Jun 2008
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't understand this sentence in the instructions, can someone please explain? :

Quote:
if your columnized forums should be below open for post categories, you also have to change level1_post that way..
What does it mean by '...should be below open for post categories...' ?
Reply With Quote
  #373  
Old 07-14-2008, 07:57 PM
argofans argofans is offline
 
Join Date: Sep 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

K got this all working but one problem.
http://www.zambonitime.com
how do i get the latest thread or topic to show up in the boxes?
Reply With Quote
  #374  
Old 07-15-2008, 02:05 AM
sparklywater sparklywater is offline
 
Join Date: Jun 2008
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by argofans View Post
K got this all working but one problem.
http://www.zambonitime.com
how do i get the latest thread or topic to show up in the boxes?
add $forum[lastpostinfo] to your forumhome_forumbit_columncel template.
Reply With Quote
  #375  
Old 07-15-2008, 01:15 PM
bobster65's Avatar
bobster65 bobster65 is offline
 
Join Date: Mar 2006
Location: Montana
Posts: 1,169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hammerhead24 View Post
How would I go about combining this with the [AJAX] tabbed forums mod.

Thanks for any help.
Pretty easy actually ..

I am going to assume you already installed this and am only going to give you the changes you need to make for this to work with TFH ..

FIND THIS in (includes/functions_forumlist.php ) File

Code:
if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
		{
			$childforumbits = construct_forum_columns($forum['forumid'], $forum['subforumcolumns']);
		}
		else if ($subsonly)
		{
			$childforumbits = construct_forum_bit($forum['forumid'], 1, $subsonly);
		}
		else if ($depth < MAXFORUMDEPTH)
		{
			$childforumbits = construct_forum_bit($forum['forumid'], $depth, $subsonly);
		}
		else
		{
			$childforumbits = '';
		}

REPLACE with THIS (NOTE: New Code is highlighted in red ... )

Code:
if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
		{
			$childforumbits = construct_forum_columns($forum['forumid'], $forum['subforumcolumns']);
		}
		else if (THIS_SCRIPT == 'tabforumhome' or 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
		{
			$childforumbits = construct_forum_columns($forum['forumid'], $forum['subforumcolumns']);
		}
		else if ($subsonly)
		{
			$childforumbits = construct_forum_bit($forum['forumid'], 1, $subsonly);
		}
		else if ($depth < MAXFORUMDEPTH)
		{
			$childforumbits = construct_forum_bit($forum['forumid'], $depth, $subsonly);
		}
		else
		{
			$childforumbits = '';
		}


THEN CHECK/EDIT your forumhome_forumbit_level1_nopost Template

NOTE: You should have this step already done if you installed both properly..

NOTE: Red Highlite = TFH Code Green Highlite= Forums arranged in columns on forumhome Code Black Code = Default vB (yours might be slightly different if you have a custom style, however, the colored stuff HAS to be exact) ..

Code:
<if condition="(THIS_SCRIPT == 'tabforumhome' AND in_array($forum['forumid'], $GLOBALS[tabcats])) OR THIS_SCRIPT == 'forumdisplay'">
<tbody>
	<tr>
		<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
			<if condition="$childforumbits">
			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
			</if>
			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
			<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
		</td>
	</tr>
</tbody>

<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$forum['subforumcolumns'] > 1">
	<tr>
		<td class="alt1" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<table style="border: none; width: 100%;">
			$childforumbits
</table>
		</td>
	</tr>
<else />
	$childforumbits
</if>
</tbody>
</if>
</if>

This works fine on both default vB and with Custom styles (I tested both this AM)
Reply With Quote
  #376  
Old 07-15-2008, 08:25 PM
argofans argofans is offline
 
Join Date: Sep 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sparklywater View Post
add $forum[lastpostinfo] to your forumhome_forumbit_columncel template.
Thanks so much worked like a charm.
Also thanks for this great mod.
Reply With Quote
Reply


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 02:42 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.05741 seconds
  • Memory Usage 2,371KB
  • Queries Executed 30 (?)
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
  • (5)bbcode_code
  • (7)bbcode_quote
  • (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
  • (2)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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