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)

Eagle Eyes 02-08-2007 09:42 PM

Quote:

Originally Posted by Cheertobi (Post 834293)
I only get thet by using a table for that!

Without testing I would try somethin like that:

Code:

<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" width="$column_width">
        <table>
                <tr>
                        <td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
                        <td><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
                                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if></td>
                </tr>
        </table>
</td>

Tobi

Where did you paste it?

Cheertobi 02-10-2007 03:26 PM

I think it was in the template that was created by the product!

lovelypk 02-10-2007 03:51 PM

Working fine for me on 3.6.4 but how do i show last post info, total threads and posts of the forums?

Like this:
Attachment 60348

Also i want to know, how to show the small statusicon icons instead of big icons.

Thanks in advance.

BigJimTheLug 02-15-2007 04:08 PM

Help.

I couldn't get this to work on my forum.

I now have categories separated, but they are not vertical columns.

Everything is the same and I think I am missing one final detail to get this mod to work completely.

Any help would be appreciated, thank you.

BigJimTheLug 02-15-2007 04:16 PM

Quote:

Originally Posted by lovelypk (Post 1179205)
Working fine for me on 3.6.4 but how do i show last post info, total threads and posts of the forums?

Like this:
Attachment 60348

Also i want to know, how to show the small statusicon icons instead of big icons.

Thanks in advance.

Nice site. ;)

Hope you fix things.

magnaromagna 02-16-2007 10:32 PM

Quote:

Originally Posted by magnaromagna (Post 1122872)
Installed but does not work:


is not for 3.6 version I suppose?

moving the hack code at the top of the file the error disappears.

If the forumhome is not into index.php but in home.php may I edit the file where says

PHP Code:

        if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != AND ($subsonly OR $depth MAXFORUMDEPTH)) 

:confused:

Because in home.php now is not working

BigJimTheLug 02-25-2007 06:04 AM

So does this work on vb 3.6.4 without any massively technical tinkering?

I'd be easier if someone were to mod this into compliance with 3.6.4.

Smoothie 02-25-2007 02:41 PM

I had it working on 3.6.4 but you need to do template edits to fine tune it.

JollyJack 02-26-2007 03:15 PM

Can someone please tell us what the template edits are for 3.6.4 or as the coder of this hack nolong supports it, someone rewrite it for 3.6.4

We are not all coders and want to have great looking forums

aceofspades 03-09-2007 12:22 PM

Bump id also like to know

Smoothie 03-09-2007 03:19 PM

I can't remember the name of the templates this installs specifically, but if you look under forum_home, you'll see them. Those are the templates that you would need to edit to make this to your liking.

BigJimTheLug 03-18-2007 05:19 AM

Quote:

Originally Posted by Smoothie (Post 1199567)
I can't remember the name of the templates this installs specifically, but if you look under forum_home, you'll see them. Those are the templates that you would need to edit to make this to your liking.

Ok, with what do you have to edit?

What is the exact thing you have to do?

You go into the forumhome and then what?

Hmmmmm....?

Any clues? :)

maxicep 03-21-2007 02:05 PM

nice hack ,thanks.

satfox360 03-23-2007 07:14 PM

I would like to upgrade to a newer version but vb but am using this hack on 3.5.4 right now. Would be great if anyone has any can provide detailed information on how to make this hack work with 3.6.4 or 3.6.5.

Thank you for any help provided and have a great day!

delnouro 03-23-2007 08:47 PM

Yeah upgrade please?

Smoothie 03-24-2007 01:06 AM

You peeps need to learn how to read through a thread. If you want the information, it's there, right in front of you. This works with 3.6.

magnaromagna 03-24-2007 01:22 AM

For my 3.6 does not works, as ny post in this thread reports ;) :rolleyes:

Smoothie 03-24-2007 01:41 AM

worked for me. Read my post.

JollyJack 03-24-2007 06:49 AM

Quote:

Originally Posted by Smoothie (Post 1210756)
worked for me. Read my post.

Back on page 17 even you was asking for help, can you link to which thread helped you

satfox360 03-24-2007 08:53 AM

Quote:

Originally Posted by Smoothie (Post 1210741)
You peeps need to learn how to read through a thread. If you want the information, it's there, right in front of you. This works with 3.6.

Were very glad it worked for someone who has been here since 2001 on 6.5.4 and you had to edits. We read that perfectly however we also read that you don't remember what edits you made. Telling us to edit forum home doesn't help much. Many others stating it didn't work. We were asking for a clear how to.

Smoothie 03-24-2007 02:08 PM

That's because the template edits were too time consuming and I never achieved the look I was after. In it's present state it works, but cosmetically you may not like what you see. That's one of the reasons I gave up on it. When installed, it needs too much work.

I can't specify what you need to do because I did the edits to my liking, which probably wouldn't be to yours. There are a few helpful posts about how to align this and that, but there is no "set in stone" template edits I could tell you about.

satfox360,

Because it's been a while since I had this installed, I'm trying to steer you in the right direction, that's the best I can do. I don't remember the exact edits, nor do I remember the template names

BigJimTheLug 03-24-2007 03:00 PM

Ok, I'm going through this entire thread until I find it and then I will post an approximate way of doing this mod. :)

Bye.

satfox360 03-26-2007 04:39 AM

Quote:

Originally Posted by Smoothie (Post 1211087)
That's because the template edits were too time consuming and I never achieved the look I was after. In it's present state it works, but cosmetically you may not like what you see. That's one of the reasons I gave up on it. When installed, it needs too much work.

I can't specify what you need to do because I did the edits to my liking, which probably wouldn't be to yours. There are a few helpful posts about how to align this and that, but there is no "set in stone" template edits I could tell you about.

satfox360,

Because it's been a while since I had this installed, I'm trying to steer you in the right direction, that's the best I can do. I don't remember the exact edits, nor do I remember the template names

Thanks for the input. I have it working exactly how I like it on ftalife.com and don't want to switch to the new version untill i'm sure it will work. I will test it on another forum and report back in detail later.

Thanks to anyone who can provide any helpful information.

004 04-02-2007 09:28 PM

Yes, it works on 3.6.5.
Same instructions.

I couldn't get it to work. Tried again & again, but no go.....til i disabled/uninstalled all but vbshout (have since reinstalled all), reverted the "forumhome_forumbit_level1_nopost" template, and started over. In other words....User Error somewhere along the line.

1) Edited new/original functions_forumlist.php
2) Edited forumhome_forumbit_level1_nopost
3) Imported product-xenon_forumcols
4) Set columns in Forum Manager for specific category

Easy Squeazie!!

aceofspades 04-13-2007 04:37 PM

When it says:

Quote:

then add this new function to the file:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ###################### Start construct_forum_columns #######################
function construct_forum_columns($parentid, $columncount)
{
global $vbulletin, $stylevar, $vbphrase, $show;
global $imodcache, $lastpostarray, $counters, $inforum;

// this function takes the constant MAXFORUMDEPTH as its guide for how
// deep to recurse down forum lists. if MAXFORUMDEPTH is not defined,
// it will assume a depth of 2.

if ($columncount == 0)
{..................
What does it mean, am i just meant to put this at the very end of the file or what?

aceofspades 04-14-2007 10:03 AM

On top of this the template edits no longer work with 3.6, they are totally different so this doesnt work with 3.6

BigJimTheLug 04-19-2007 05:14 AM

I couldn't get this to work either.

I could really use something like this.........

Darn it.

BoNeS42 04-20-2007 02:30 AM

Help me please. I get this error Fatal error: Cannot redeclare construct_forum_columns() (previously declared in /public_html/forum/includes/functions_forumlist.php:192) in /public_html/forum/includes/functions_forumlist.php on line 192

Here's my code. :erm:
PHP Code:

<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.6.2 - Licence Number 
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000-2006 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

// ###################### Start getimodcache #######################
function cache_moderators($userid null)
{
    global 
$vbulletin$imodcache$mod;

    
$imodcache = array();
    
$mod = array();

    
$forummoderators $vbulletin->db->query_read_slave("
        SELECT moderator.*, user.username,
        IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid, infractiongroupid
        FROM " 
TABLE_PREFIX "moderator AS moderator
        INNER JOIN " 
TABLE_PREFIX "user AS user USING(userid)
        " 
. ($userid != null "WHERE moderator.userid = " intval($userid) : "") . "
    "
);
    while (
$moderator $vbulletin->db->fetch_array($forummoderators))
    {
        
fetch_musername($moderator);
        
$imodcache["$moderator[forumid]"]["$moderator[userid]"] = $moderator;
        
$mod["$moderator[userid]"] = 1;
    }
    
$vbulletin->db->free_result($forummoderators);
}

// ###################### Start getlastpostinfo #######################
// this function creates a lastpostinfo array that tells makeforumbit which forum
// each forum should grab its last post info from.
// it also tots up the thread/post totals for each forum. - PERMISSIONS are taken into account.
function fetch_last_post_array()
{
    global 
$vbulletin$lastpostarray$counters;

    
$cannotView = array();
    
$children = array();

    
// loop through the vbulletin->iforumcache
    
foreach ($vbulletin->iforumcache AS $moo)
    {
        foreach (
$moo AS $forumid)
        {
            
$forum $vbulletin->forumcache["$forumid"];

            
// if we have no permission to view the forum's parent
            // set cannotView permissions cache for this forum and continue
            
if (!empty($cannotView["$forum[parentid]"]))
            {
                
$cannotView["$forumid"] = 1;
            }
            else
            {

                
$forumperms $vbulletin->userinfo['forumpermissions']["$forumid"];

                
// if we have no permissions for this forum, set the cannotView permissions cache
                // so that we don't have to check its child forums
                //if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers'])
                
if ((!($forumperms $vbulletin->bf_ugp_forumpermissions['canview']) AND (($vbulletin->forumcache["$forumid"]['showprivate'] AND $vbulletin->forumcache["$forumid"]['showprivate'] != 3) OR (!$vbulletin->forumcache["$forumid"]['showprivate'] AND $vbulletin->options['showprivateforums'] != 2))) OR ($forum['password'] AND !verify_forum_password($forum['forumid'], $forum['password'], false)))
                {
                    
$cannotView["$forumid"] = 1;
                }
                else
                {
                    if (!isset(
$lastpostarray["$forumid"]))
                    {
                        
$lastpostarray["$forumid"] = $forumid;
                    }
                    
$parents explode(','$forum['parentlist']);
                    foreach (
$parents AS $parentid)
                    {
                        
// for each parent, set an array entry containing this forum's number of posts & threads
                        
$children["$parentid"]["$forumid"] = array('threads' => $forum['threadcount'], 'posts' => $forum['replycount']);

                        if (
$parentid == -OR !isset($vbulletin->forumcache["$parentid"]))
                        {
                            continue;
                        }

                        
// compare the date for the last post info with the last post date
                        // for the parent forum, and if it's greater, set the last post info
                        // array for this forum to point to that forum... (erm..)
                        
if ($forum['lastpost'] > $vbulletin->forumcache["$parentid"]['lastpost'])
                        {
                            
$lastpostarray["$parentid"] = $forumid;
                            
$vbulletin->forumcache["$parentid"]['lastpost'] = $forum['lastpost'];
                        }
                    } 
// end foreach($parents)
                
// end can view
            
// end can view parent
        
}
    }

    
$counters = array();
    if (
is_array($vbulletin->forumcache))
    {
        foreach(
$vbulletin->forumcache AS $forum)
        {
            
$this_forum =& $counters["$forum[forumid]"];
            
$this_forum['threadcount'] = 0;
            
$this_forum['replycount'] = 0;
            if (
is_array($children["$forum[forumid]"]))
            {
                foreach(
$children["$forum[forumid]"] AS $id => $info)
                {
                    
$this_forum['threadcount'] += $info['threads'];
                    
$this_forum['replycount'] += $info['posts'];
                }
            }
        }
    }

}

// ###################### Start makeforumbit #######################
// this function returns the properly-ordered and formatted forum lists for forumhome,
// forumdisplay and usercp. Of course, you could use it elsewhere too..
function construct_forum_bit($parentid$depth 0$subsonly 0)
{
    global 
$vbulletin$stylevar$vbphrase$show;
    global 
$imodcache$lastpostarray$counters$inforum;

    
// this function takes the constant MAXFORUMDEPTH as its guide for how
    // deep to recurse down forum lists. if MAXFORUMDEPTH is not defined,
    // it will assume a depth of 2.

    // call fetch_last_post_array() first to get last post info for forums
    
if (!is_array($lastpostarray))
    {
        
fetch_last_post_array();
    }

    if (empty(
$vbulletin->iforumcache["$parentid"]))
    {
        return;
    }

    if (!
defined('MAXFORUMDEPTH'))
    {
        
define('MAXFORUMDEPTH'1);
    }

    
$forumbits '';
    
$depth++;

    foreach (
$vbulletin->iforumcache["$parentid"] AS $forumid)
    {
        
// grab the appropriate forum from the $vbulletin->forumcache
        
$forum $vbulletin->forumcache["$forumid"];
        
$lastpostforum $vbulletin->forumcache["$lastpostarray[$forumid]"];
        if (!
$forum['displayorder'] OR !($forum['options'] & $vbulletin->bf_misc_forumoptions['active']))
        {
            continue;
        }

        
$forumperms $vbulletin->userinfo['forumpermissions']["$forumid"];
        
$lastpostforumperms $vbulletin->userinfo['forumpermissions']["$lastpostarray[$forumid]"];
        if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']) AND ($vbulletin->forumcache["$forumid"]['showprivate'] == OR (!$vbulletin->forumcache["$forumid"]['showprivate'] AND !$vbulletin->options['showprivateforums'])))
        { 
// no permission to view current forum
            
continue;
        }

        if (
$vbulletin->userinfo['fieldxx'] == 'Yes'  AND THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 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 '';
        }


// ###################### Start construct_forum_columns ####################### 
function construct_forum_columns($parentid$columncount

    global 
$vbulletin$stylevar$vbphrase$show
    global 
$imodcache$lastpostarray$counters$inforum

    
// this function takes the constant MAXFORUMDEPTH as its guide for how 
    // deep to recurse down forum lists. if MAXFORUMDEPTH is not defined, 
    // it will assume a depth of 2. 

    
if ($columncount == 0
    { 
        
// 0 Columns means don't show subforums at all 
        
return ''
    } 

    
// call fetch_last_post_array() first to get last post info for forums 
    
if (!is_array($lastpostarray)) 
    { 
        
fetch_last_post_array(); 
    } 

    if (empty(
$vbulletin->iforumcache["$parentid"])) 
    { 
        return; 
    } 

    if (!
defined(MAXFORUMDEPTH)) 
    { 
        
define('MAXFORUMDEPTH'1); 
    } 

    
$forumbits ''

    
$counter 0
    foreach (
$vbulletin->iforumcache["$parentid"] AS $forumid
    { 
        
// grab the appropriate forum from the $vbulletin->forumcache 
        
$forum $vbulletin->forumcache["$forumid"]; 
        
$lastpostforum $vbulletin->forumcache["$lastpostarray[$forumid]"]; 
        if (!
$forum['displayorder'] OR !($forum['options'] & $vbulletin->bf_misc_forumoptions['active'])) 
        { 
            continue; 
        } 

        
$forumperms $vbulletin->userinfo['forumpermissions']["$forumid"]; 
        
$lastpostforumperms $vbulletin->userinfo['forumpermissions']["$lastpostarray[$forumid]"]; 
        if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums']) 
        { 
// no permission to view current forum 
            
continue; 
        } 

        if (
$subsonly
        { 
            
$childforumbits construct_forum_bit($forum['forumid'], 1$subsonly); 
        } 
        else if (
$depth MAXFORUMDEPTH
        { 
            
$childforumbits construct_forum_bit($forum['forumid'], $depth$subsonly); 
        } 
        else 
        { 
            
$childforumbits ''
        } 

        
// do stuff if we are not doing subscriptions only, or if we ARE doing subscriptions, 
        // and the forum has a subscribedforumid 
        
if (!$subsonly OR ($subsonly AND !empty($forum['subscribeforumid']))) 
        { 

            
$GLOBALS['forumshown'] = true// say that we have shown at least one forum 

            
if (($forum['options'] & $vbulletin->bf_misc_forumoptions['cancontainthreads'])) 
            { 
// get appropriate suffix for template name 
                
$tempext '_post'
            } 
            else 

            { 
                
$tempext '_nopost'
            } 

            if (!
$vbulletin->options['showforumdescription']) 
            { 
// blank forum description if set to not show 
                
$forum['description'] = ''
            } 

            
// dates & thread title 
            
$lastpostinfo $vbulletin->forumcache["$lastpostarray[$forumid]"]; 

            
// compare last post time for this forum with the last post time specified by 
            // the $lastpostarray, and if it's less, use the last post info from the forum 
            // specified by $lastpostarray 
            
if ($vbulletin->forumcache["$lastpostarray[$forumid]"]['lastpost'] > 0
            { 
                if (!(
$lastpostforumperms $vbulletin->bf_ugp_forumpermissions['canview']) OR (!($lastpostforumperms $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND $lastpostinfo['lastposter'] != $vbulletin->userinfo['username'])) 
                { 
                    
$forum['lastpostinfo'] = $vbphrase['private']; 
                } 
                else 
                { 
                    
$lastpostinfo['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $lastpostinfo['lastpost'], 1); 
                    
$lastpostinfo['lastposttime'] = vbdate($vbulletin->options['timeformat'], $lastpostinfo['lastpost']); 
                    
$lastpostinfo['trimthread'] = fetch_trimmed_title($lastpostinfo['lastthread']); 

                    if (
$icon fetch_iconinfo($lastpostinfo['lasticonid'])) 
                    { 
                        
$show['icon'] = true
                    } 
                    else 
                    { 
                        
$show['icon'] = false
                    } 

                    
$show['lastpostinfo'] = (!$lastpostforum['password'] OR verify_forum_password($lastpostforum['forumid'], $lastpostforum['password'], false)); 

                    eval(
'$forum[\'lastpostinfo\'] = "' fetch_template('forumhome_lastpostby') . '";'); 
                } 
            } 
            else if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canview'])) 
            { 
                
$forum['lastpostinfo'] = $vbphrase['private']; 
            } 
            else 
            { 
                
$forum['lastpostinfo'] = $vbphrase['never']; 
            } 

            
// do light bulb 
            
$forum['statusicon'] = fetch_forum_lightbulb($forumid$lastpostinfo$forum); 
             
$show['customstatusicon'] = false
if (
$forum['hasstatusicons']) 

    
$show['customstatusicon'] = true
    if (
$forum['statusicon'] == 'new'
    { 
        
$forum['customicon'] = $forum['statusiconon']; 
    } 
    if (
$forum['statusicon'] == 'new_lock'
    { 
        
$forum['customicon'] = $forum['statusiconlockon']; 
    } 
    if (
$forum['statusicon'] == 'old'
    { 
        
$forum['customicon'] = $forum['statusiconoff']; 
    } 
    if (
$forum['statusicon'] == 'old_lock'
    { 
        
$forum['customicon'] = $forum['statusiconlockoff']; 
    } 
    if (
$forum['statusicon'] == 'link'
    { 
        
$forum['customicon'] = $forum['statusiconlink']; 
    } 


            
// add lock to lightbulb if necessary 
            
if ((!($forumperms $vbulletin->bf_ugp_forumpermissions['canpostnew']) OR !($forum['options'] & $vbulletin->bf_misc_forumoptions['allowposting'])) AND $vbulletin->options['showlocks'] AND !$forum['link']) 
            { 
                
$forum['statusicon'] .= '_lock'
            } 

            
// get counters from the counters cache ( prepared by fetch_last_post_array() ) 
            
$forum['threadcount'] = $counters["$forum[forumid]"]['threadcount']; 
            
$forum['replycount'] = $counters["$forum[forumid]"]['replycount']; 

            
// get moderators ( this is why we needed cache_moderators() ) 
            
if ($vbulletin->options['showmoderatorcolumn']) 
            { 
                
$showmods = array(); 
                
$listexploded explode(','$forum['parentlist']); 
                foreach (
$listexploded AS $parentforumid
                { 
                    if (!isset(
$imodcache["$parentforumid"])) 
                    { 
                        continue; 
                    } 
                    foreach(
$imodcache["$parentforumid"] AS $moderator
                    { 
                        if (isset(
$showmods["$moderator[userid]"])) 
                        { 
                            continue; 
                        } 

                        (
$hook vBulletinHook::fetch_hook('forumbit_moderator')) ? eval($hook) : false

                        
$showmods["$moderator[userid]"] = true
                        if (!isset(
$forum['moderators'])) 
                        { 
                            eval(
'$forum[\'moderators\'] = "' fetch_template('forumhome_moderator') . '";'); 
                        } 
                        else 
                        { 
                            eval(
'$forum[\'moderators\'] .= ", ' fetch_template('forumhome_moderator') . '";'); 
                        } 
                    } 
                } 
                if (!isset(
$forum['moderators'])) 
                { 
                    
$forum['moderators'] = ''
                } 
            } 

            if (
$forum['link']) 
            { 
                
$forum['replycount'] = '-'
                
$forum['threadcount'] = '-'
                
$forum['lastpostinfo'] = '-'
            } 
            else 
            { 
                
$forum['replycount'] = vb_number_format($forum['replycount']); 
                
$forum['threadcount'] = vb_number_format($forum['threadcount']); 
            } 

            if ((
$subsonly OR $depth == MAXFORUMDEPTH) AND $vbulletin->options['subforumdepth'] > 0
            { 
                
$forum['subforums'] = construct_subforum_bit($forumid, ($forum['options'] & $vbulletin->bf_misc_forumoptions['cancontainthreads'] ) ); 
            } 
            else 
            { 
                
$forum['subforums'] = ''
            } 

            
$children explode(','$forum['childlist']); 
            foreach(
$children AS $childid
            { 
                
$forum['browsers'] += ($inforum["$childid"] ? $inforum["$childid"] : 0); 
            } 

            if (
$depth == AND $tempext == '_nopost'
            { 
                global 
$vbcollapse
                
$collapseobj_forumid =& $vbcollapse["collapseobj_forumbit_$forumid"]; 
                
$collapseimg_forumid =& $vbcollapse["collapseimg_forumbit_$forumid"]; 
                
$show['collapsebutton'] = true
            } 
            else 
            { 
                
$show['collapsebutton'] = false
            } 

            
$show['forumsubscription'] = ($subsonly true false); 
            
$show['forumdescription'] = ($forum['description'] != '' true false); 
            
$show['subforums'] = ($forum['subforums'] != '' true false); 
            
$show['browsers'] = ($vbulletin->options['displayloggedin'] AND !$forum['link'] AND $forum['browsers'] ? true false); 

            
// build the template for the current forum 
            
$column_width intval(100 $columncount) . '%'
            eval(
'$column = "' fetch_template("forumhome_forumbit_columncell") . '";'); 
             
            
// do the columnstuff 
            
if ($counter $columncount == 0
            { 
                
// Begin a new row 
                
$forumbits .= "\t<tr>\n"
            } 
            
$forumbits .= $column
            if (
$counter $columncount == $columncount 1
            { 
                
// End row 
                
$forumbits .= "\t</tr>\n"
            } 
            
$counter++; 
        } 
    } 

    
// prevent unclosed <tr> tags 
    
if ($counter $columncount != 0
    { 
        
$forumbits .= "\t</tr>\n"
    } 
     
    return 
$forumbits
}


aceofspades 04-29-2007 04:57 PM

It doesnt work for 3.6 dont bother trying it.

category 04-30-2007 01:57 AM

It does work on the latest 3.6.5
http://www.drillerdeals.com/forum/ example

magnaromagna 04-30-2007 08:09 AM

Quote:

Originally Posted by 004 (Post 1218657)
Yes, it works on 3.6.5.
Same instructions.

I couldn't get it to work. Tried again & again, but no go.....til i disabled/uninstalled all but vbshout (have since reinstalled all), reverted the "forumhome_forumbit_level1_nopost" template, and started over. In other words....User Error somewhere along the line.

1) Edited new/original functions_forumlist.php
2) Edited forumhome_forumbit_level1_nopost
3) Imported product-xenon_forumcols
4) Set columns in Forum Manager for specific category

Easy Squeazie!!

I have two 3.6.5 forums. I made the same changes in both: one works, the other no! :confused:

aceofspades 04-30-2007 10:57 AM

Hmm sounds like a bodge though since it didnt work on a fresh 3.6.5. It needs to updated :(

unnpro 05-07-2007 03:34 PM

How can I arrange forum in columns and not subforums in forumhome?
Actually I display only forum (40+) in forumhome.

Thanks in advance :-)

Kohhal 05-22-2007 01:55 PM

I have this working on 3.6.5 so I know it works. About to upgrade to 3.6.7PL1 and am just wondering if there are any new issues with it, for people that had it working on 3.6.x before?

xMisunderstoodx 05-22-2007 02:45 PM

It doesn't work properly when you upgrade to 3.6.7.

Kohhal 05-22-2007 02:47 PM

But it was working good for you on 3.6.5?

xMisunderstoodx 05-22-2007 02:58 PM

Yeah fine

xMisunderstoodx 05-23-2007 10:13 PM

Actually it will work fine when you upgrade silly me forgot about the file edits lol

Kohhal 05-24-2007 08:29 AM

Good to know, thanks. Will upgrade today so :)

Desi-Home 05-31-2007 07:27 PM

Can you please provide this mod for vB 3.6.x

If yest.. then please PM me because i won't be checking it..

Thanks..


All times are GMT. The time now is 02:24 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.02226 seconds
  • Memory Usage 2,085KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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