View Full Version : Forums arranged in columns on forumhome
VBUsers
11-14-2006, 11:39 PM
Fatal error: Cannot redeclare construct_forum_columns() (previously declared in /home/vbusers/public_html/includes/functions_forumlist.php:190) in /home/vbusers/public_html/includes/functions_forumlist.php on line 190
zkilzz
11-22-2006, 06:30 AM
Does ANYONE know how to get this to work with forumdisplay and not just forumhome?
I will donate 50$ US to someone that are willing to do it and give me a bit support on it :D
Cheertobi
11-22-2006, 07:20 AM
I will donate 50$ US to someone that are willing to do it and give me a bit support on it :D
That just requieres another fileedit!
In includes/functions_forumlist.php search for: (Backup before you do any edits!)
if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
if ((THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'forumdisplay') AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
Tobi
zkilzz
11-22-2006, 08:32 AM
That just requieres another fileedit!
In includes/functions_forumlist.php search for: (Backup before you do any edits!)
if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
if ((THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'forumdisplay') AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
Tobi
Should i replace the old code or add the new line?
THANKS in advance :) !!!
zkilzz
11-22-2006, 10:41 AM
I have tried to replace it and also to add it under (im not sure if iam doing it the right way tough with the { and evertyhing).
I have also set up columns in the subforums. Doesnt work.
Heeeeeeeeeelp!
magnaromagna
11-22-2006, 11:11 AM
Fatal error: Cannot redeclare construct_forum_columns() (previously declared in /home/vbusers/public_html/includes/functions_forumlist.php:190) in /home/vbusers/public_html/includes/functions_forumlist.php on line 190
Installed but does not work:
Fatal error: Cannot redeclare construct_forum_columns() (previously declared in /home/magna/domains/../public_html/includes/functions_forumlist.php:206) in /home/magna/domains/../public_html/includes/functions_forumlist.php on line 206
is not for 3.6 version I suppose?
zkilzz
11-22-2006, 11:37 AM
Installed but does not work:
is not for 3.6 version I suppose?
It works well on my 3.6.3 :)
Cheertobi
11-22-2006, 01:05 PM
I have tried to replace it and also to add it under (im not sure if iam doing it the right way tough with the { and evertyhing).
I have also set up columns in the subforums. Doesnt work.
Heeeeeeeeeelp!
Ah, sorry, you have to replace that line! Got it working on my testsystem...
Tobi
zkilzz
11-22-2006, 02:24 PM
Ah, sorry, you have to replace that line! Got it working on my testsystem...
Tobi
Sorry mate! Didnt get it to work!
Here is my testforum
http://www.bilforumet.net/chum/forumdisplay.php?f=5&styleid=2
zkilzz
11-22-2006, 02:27 PM
It works here
http://www.bilforumet.net/chum/forumdisplay.php?f=4&styleid=2
But not here
http://www.bilforumet.net/chum/forumdisplay.php?f=5&styleid=2
Cheertobi
11-22-2006, 04:54 PM
Can you pm me an adminaccount, need to check something in your forumsettings and template.
Smoothie
12-01-2006, 03:21 PM
Can anyone that uses this tell me how you have your forums setup under forum manager in the admin cp? I'm not sure how I have mine set is correct.
Also, did you modify another template to remove forum, last post, threads, posts from the category header?
vietConnecting
12-01-2006, 06:23 PM
Sry for my stupid question, but this mod is work with vesion 3.6.4 ?
Thank!
vietConnecting
12-01-2006, 06:40 PM
I'm use vesion 3.6.4, have error:
Fatal error: Call to undefined function: construct_forum_columns()
$childforumbits = construct_forum_columns($forum['forumid'], $forum['subforumcolumns']);
Smoothie
12-01-2006, 08:42 PM
I'm use vesion 3.6.4, have error:
Fatal error: Call to undefined function: construct_forum_columns()
$childforumbits = construct_forum_columns($forum['forumid'], $forum['subforumcolumns']);Yea, it's works with 3.6.4.
Discussions
12-03-2006, 10:57 PM
Just installed and it works perfectly (3.6.4)
Discussions
12-05-2006, 04:26 AM
Is there any way to make this also work for actual sub forums? So far all is going great, beyond that little issue.
Smoothie
12-05-2006, 03:37 PM
Even after reading thru all 18 pages and trying all suggested I could not get this to work with subforums. Ever since Xenon moved on, the support for this mod is weak at best.
zkilzz
12-11-2006, 03:20 PM
Im also waiting for someone to make this for forumdisplay!:(
zkilzz
12-11-2006, 03:25 PM
I just made a new request for this mod. Maybe that helps.
https://vborg.vbsupport.ru/showthread.php?p=1136407#post1136407
Please show your interest here.
sylem
12-15-2006, 05:18 AM
I have the Aria skin (from vBstyles) installed on my board, and I've downloaded and installed this mod:
https://vborg.vbsupport.ru/showthread.php?t=99829&page=18
And everything is working beautifully except I can't edit the template correctly so what ends up happening is my forum columns get this extra gray box on the right side of them. On the instructions it says:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++ edit template forumhome_forumbit_level1_nopost +++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++
if your columnized forums should be below open for post categories, you also have to change level1_post that way..
find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
replace with:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<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>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The only problem is, on the Aria skin on that template, I have to work with this:
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead"> $vbphrase[threads] </td>
<td class="thead"> $vbphrase[posts] </td>
</tr>
$childforumbits
</if>
So its made it pretty difficult to integrate in there without messing up the forums. Can anyone help me out?
Nudda
12-21-2006, 05:59 PM
awesome...ill post again if i encounter any problems
Discussions
12-22-2006, 01:45 PM
It would be nice if someone would take this and make a new version with updates, extra features. Xenon has all but left the community and given up on updating any of his addons/modifications - that in my opinion is abadonment of the project and should be open for anyone to release a new copy.
Brandon Sheley
12-27-2006, 01:30 AM
It would be nice if someone would take this and make a new version with updates, extra features. Xenon has all but left the community and given up on updating any of his addons/modifications - that in my opinion is abadonment of the project and should be open for anyone to release a new copy.
Xenon
Advanced Coder
Last Online:
Dec 2006
he is been here ?
This works with a little tinkering on 3.6.4
baerwurz
12-31-2006, 01:00 PM
3,64 working fine.
But a question how have I to edit the Code to show the Forumns up like here:
http://www.goteamsgo.com/forum/
Left the Image of the Forum (i?ve installed the hack to show different images on each forumn)
and right;
Forum Name
Last Thread Title
Day and Time last Post | image to last post
I hope anyone could help me.
how do i remove the forum markers and center the forum link?
R.Solutions
01-22-2007, 09:30 AM
Any news on centering the forum link and image if you have one>?
how do i get rid of the forum icons and center it?
ibuddy
02-08-2007, 12:12 PM
what does he mean by "now you have to edit the category, which's subforums should be in columns and change the value into
the ammount of columns, you want to have."
Where do I go to change this?
Eagle Eyes
02-08-2007, 09:21 PM
How do i get it look like this guys?
https://vborg.vbsupport.ru/attachment.php?attachmentid=38223&d=1132906096
Eagle Eyes
02-08-2007, 09:42 PM
I only get thet by using a table for that!
Without testing I would try somethin like that:
<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:
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
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:
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
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
if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 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
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
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
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
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.
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:
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
/*================================================= =====================*\
|| ################################################## ################## ||
|| # 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 == -1 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'] == 1 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'] != 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 = '';
}
// ###################### 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 == 1 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
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..
Kohhal
05-31-2007, 10:25 PM
Jeez, people like you don't deserve hacks like this, it's a wonder anyone provides hacks for free at all anymore :mad:
It already works on 3.6.x if you read the thread!
Desi-Home
06-04-2007, 01:15 AM
my dear.. i tried to install it on 3.6.7 and it installed successfuly
but the edits gave me big hedic.. i cannot see 22 pages and check where's 3.6.7 edite mentioned
if somebody can provide this mod's edits for 3.6.7 that will be wounderful.. im running Approx skin
Desi-Home
06-10-2007, 07:54 PM
i got it working finally.. but don't know how to show last post and threads info.. like this site has
www.bwtorrents.com
wolfe
06-15-2007, 01:36 PM
m8 i have removed this mod and now the childforums are not showing on the index page but they are on the forumdisplay page
BigJimTheLug
06-18-2007, 08:23 PM
i got it working finally.. but don't know how to show last post and threads info.. like this site has
www.bwtorrents.com
I have the latest vb edition, can you show what you did to get this modification working.....
I cannot figure this one out.......
Thanks. ;)
Jeffler
07-31-2007, 08:40 PM
Hey, can anyone put up an updated version of this for 3.6.7?
Stickers
07-31-2007, 08:45 PM
Why dont you use Cyb - Forumhome Sub-Forums Manager ;)
Kohhal
08-01-2007, 01:00 AM
Hey, can anyone put up an updated version of this for 3.6.7?
This works on 3.6.7
Why dont you use Cyb - Forumhome Sub-Forums Manager ;)
Can this other hack be used to reproduce this one?
JTS2005
08-28-2007, 08:37 PM
is there a mod that can add different icons to the subforums? basically have a team logos to certain teams as this site http://www.footballforum.com
i have searched and no luck.
Kohhal
09-01-2007, 10:00 PM
I couldn't get this to work on 3.6.8, anyone else?
gmtalk
09-02-2007, 03:38 PM
Works on 3.6.8
I am just not able to get latestposts to be linkable now.
Reece^B
10-21-2007, 08:28 AM
Never mind :)
Charuvils
10-27-2007, 11:53 AM
can u please upgrade it to 3.6.8 version ..
ludachris
10-29-2007, 08:48 PM
Can this hack be made to work so that only specified forums are shown in columns but not all?
Hoffi
11-03-2007, 02:22 PM
You can set it up for each Category.
@Charuvils: It Works on 3.6.8 Why you don't Test it?
TPOCJames
11-15-2007, 08:01 PM
Hey,
Is there a fix for custom status icons not working with 3.6.8?
Custom Status Icons appear in normal forums, and under the parent forum when viewing the parent forum of a child that is in a column, but it won't display it on the actual column itself.
Does anyone know why or how to fix this?
Hoffi
11-21-2007, 06:50 AM
I developed my own StatusIcon Hack that Works with this Hack. I released it on vbgermay.org and can release it here too. But it's in German now, I must translate it.
silence25
12-27-2007, 09:06 PM
@Charuvils: It Works on 3.6.8 Why you don't Test it?
I've tested it, and it does not work. The instructions for the edits in admincp/forum.php are different then whats actually in forum.php. Resulting in some errors when you try to add new forums to the site.
This Line here:
if ($forum['password'] != $oldforuminfo['password'] AND $applypwdtochild)
{
$DB_site->query("
UPDATE " . TABLE_PREFIX . "forum
SET password = '" . addslashes($forum['password']) . "'
WHERE FIND_IN_SET('$forumid', parentlist)
");
}
Is not in admincp/forum.php
so, i can not find a proper place to put:
// update subforum in columns setting
if ($forum['subforumcolumns'] != $oldforuminfo['subforumcolumns'])
{
$DB_site->query("
UPDATE " . TABLE_PREFIX . "forum
SET subforumcolumns = " . intval($forum['subforumcolumns']) . "
WHERE forumid = $forumid
");
}
Resulting in errors in the acp when trying to add forums.
I've seen other sites pull this off using the latest versions of vbulletin, complete with forum icons and properly aligned text as well. I'm pretty good at figuring things out, even if instructions aren't really clear.. however for this particular mod, i can't seem to get it to work, and no one really wants to give up their secret if they did happen to get it to work.
Discussions
01-02-2008, 07:31 PM
I've tested it, and it does not work. The instructions for the edits in admincp/forum.php are different then whats actually in forum.php. Resulting in some errors when you try to add new forums to the site.
It works even on vBulletin 3.7.0 Beta 3. You are doing something wrong.
nyqnzguju
01-25-2008, 01:05 AM
Where iS the Code After This sentece suppose to go????
then add this new function to the file:
..............CODE.............
where does it go
logicuk
03-19-2008, 06:35 PM
VB 3.7 Version = https://vborg.vbsupport.ru/showthread.php?t=173526
Allan
03-28-2008, 10:46 AM
hack down :(
LT Mote
03-29-2008, 10:43 AM
VB 3.7 Version = https://vborg.vbsupport.ru/showthread.php?t=173526
Lot a good that does... its broken... lol
Does this version posted in this thread work on 3.7.x?
1Turk
04-01-2008, 02:55 PM
thanks..
soundbarrierpro
04-08-2008, 06:13 PM
Does not work in 3.6.8. cyb sub forum manager works better.
Hoffi
04-09-2008, 09:57 AM
But Cybs is a different one. ;)
smartwulf
04-10-2008, 06:30 AM
Still don't know how to show the latest post under the forum name, humm, anyone have any idea?
SEOvB
04-13-2008, 07:33 PM
works fine on 3.7RC 1 with included instructions no problems at all!
I am using 3.7 and I followed the instructions, my site is a white page...
SEOvB
04-14-2008, 04:02 PM
Try to do the file edit again of functions_forumlist.php
I tried to do it twice last night, I'll try again... :)
Do you go to ftp, and then includes and open the functions_forumlist.php?
jluerken
04-16-2008, 11:10 AM
Can this be ported to 3.7 without the need to do file edits and using the new hooks?
Hoffi
04-16-2008, 07:17 PM
I think not.
soundbarrierpro
04-16-2008, 10:48 PM
This is where the function goes
then add this new function to the file:
The "Add new Function" code goes at the very bottom of the functions_forumlist.php file right before this <?
MSheraz86
05-03-2008, 11:30 PM
^^ well yeah it does go above the <? part but above that you have this rectangle box with text inside it showing what time the mod was downloaded I think and something about CVS and Revision? Anyhow, the text you're talking about goes ABOVE that rectangle section and just below:
}
return $forumbits;
}
I can confirm that this is fully working on vBulletin 3.7.0 as I just upgraded from 3.6.8 and installed this :)
koolfire
05-04-2008, 11:36 PM
This doesnt work on 3.6.8 :'( Please guys i need this hack badly!
Hoffi
05-06-2008, 05:28 AM
Ths Hack works on all 3.6 and 3.7
shadowevil
05-06-2008, 06:03 AM
I hack work on all 3.6.x , b 3.7.x and show forumdisplay in forumhome :)
datruth55
05-24-2008, 05:28 PM
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?
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.
taydu
06-07-2008, 04:17 AM
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 ?
Blackheart_72
06-10-2008, 03:15 PM
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
if ($foruminfo['subforumcolumns'] > 1)
{
$forumbits = construct_forum_columns($foruminfo['forumid'], $foruminfo['subforumcolumns']);
}
else
{
$forumbits = construct_forum_bit($foruminfo['forumid']);
}
in place of
$forumbits = construct_forum_bit($foruminfo['forumid']
On line 425
Jeffler
06-28-2008, 11:29 PM
Got this to work, but it won't stretch 100%...it stops at the threads and replies count. On 3.7.1. Help?
Remove the thread and reply column.
Jeffler
06-29-2008, 05:29 PM
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.
sparklywater
06-29-2008, 11:20 PM
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?
Blackheart_72
07-02-2008, 10:50 AM
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.
Brother Malachi
07-07-2008, 05:24 AM
How would I go about combining this with the [AJAX] tabbed forums (https://vborg.vbsupport.ru/showthread.php?t=175687) mod.
Thanks for any help.
sparklywater
07-11-2008, 09:02 PM
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!
sparklywater
07-11-2008, 10:50 PM
I don't understand this sentence in the instructions, can someone please explain? :
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...' ?
argofans
07-14-2008, 07:57 PM
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?
sparklywater
07-15-2008, 02:05 AM
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. :)
bobster65
07-15-2008, 01:15 PM
How would I go about combining this with the [AJAX] tabbed forums (https://vborg.vbsupport.ru/showthread.php?t=175687) 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
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 ... )
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) ..
<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)
argofans
07-15-2008, 08:25 PM
add $forum[lastpostinfo] to your forumhome_forumbit_columncel template. :)
Thanks so much worked like a charm.
Also thanks for this great mod.
DJDynasty239
07-27-2008, 05:37 AM
whenever I try this I get just a white screen when I reload my board....What am I doing wrong!? :(
compact123
07-28-2008, 10:55 PM
wow nice mod...
please upgrade to 3.7x sir...
Blackheart_72
07-28-2008, 11:00 PM
whenever I try this I get just a white screen when I reload my board....What am I doing wrong!? :(
Did you follow all the instructions.
wow nice mod...
please upgrade to 3.7x sir...
Working for me on 3.7.2.:)
DJDynasty239
07-29-2008, 10:26 PM
Did you follow all the instructions.
Yeah, unless I'm not editing the last step properly :erm:
Blackheart_72
08-01-2008, 07:49 AM
Yeah, unless I'm not editing the last step properly :erm:
Have posted on your other thread.
Brother Malachi
08-20-2008, 07:41 AM
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
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 ... )
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) ..
<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)
Wow dude, thank you very much! Much appreciated. I've been messing with that php code for quite some time now and didn't realize I had to add another block of else/if. Instead I was modifying the first if statement.
Anyway, here's a quick question. Currently we have the old version of your tabbed hack and it works just fine. I'm not planning on installing the AJAX one just yet. Anyway, are the template edits you posted above for the AJAX version?
bobster65
08-22-2008, 11:30 AM
Wow dude, thank you very much! Much appreciated. I've been messing with that php code for quite some time now and didn't realize I had to add another block of else/if. Instead I was modifying the first if statement.
Anyway, here's a quick question. Currently we have the old version of your tabbed hack and it works just fine. I'm not planning on installing the AJAX one just yet. Anyway, are the template edits you posted above for the AJAX version?
Hey Nick,
Yes, that "fix" above is for the AJAX Version. The first version (manual setup/non ajax) would require something totally different. It doesn't take much to install the AJAX Version and its a heck of a lot easier/faster to setup than the first one. Version 2.0 (Not released yet) will have built in support for this mod) ..
swissknife
09-09-2008, 05:40 AM
I am really sorry, but i am playing arround with this for a while and i cant get this to work.
Problem no. 1 is how to remove the right sided column with the last post.
Problem no. 2 is how to how to display the lastpost etc. in the new columns.
would PLEASE PLEASE PLEASE someone , who geht this to work with the 3.7 post a clean instruction ?
Blackheart_72
09-09-2008, 06:08 AM
To get mine to display the info i have this in my forumhome_forumbit_columncell:
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" width="$column_width">
<div>
<table border="0" cellpadding="1" cellspacing="5">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" class="ForumImages" /></td>
<td>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if><br />
<if condition="$show['lastpostinfo']">
<div class="smallfont" align="$stylevar[left]">
<div style="clear:both">
Last Post: <a href="showthread.php?$session[sessionurl]goto=newpost&t=$lastpostinfo[lastthreadid]" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>
</div>
<div<if condition="is_browser('ie', 6)"> style="float:$stylevar[left]"</if>>
Posted By <b><phrase 1="member.php?$session[sessionurl]find=lastposter&f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase></b>
-$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']">-<span class="time">$lastpostinfo[lastposttime]</span></if></div><br />
<b>Forum Info:</b> Threads: $forum[threadcount]
Posts: $forum[replycount]
</if>
</td>
</table>
</td>
and i put this in place of the hack code changes for forumhome_forumbit_level1_nopost:
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$forum['subforumcolumns'] > 1">
<tr>
<style="border: none; width: 100%;">
$childforumbits
</td>
</tr>
<else />
<tr align="center">
<td class="thead" width="30"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="125">$vbphrase[last_post]</td>
<td class="thead" width="55">$vbphrase[threads]</td>
<td class="thead" width="55">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead" width="100">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</if>
</tbody>
</if>
</table>
click sig to see how it looks on my forum.
swissknife
09-09-2008, 07:10 AM
THANK YOU!!!!! Great!!!!!!
One little Question: How i will get this with the alternate statusicons to work?
Blackheart_72
09-09-2008, 07:28 AM
Not sure how that hack works but you could try changing:
forum_$forum[statusicon].gif" alt="" class="ForumImages
to
$forumid.png" alt="" class="ForumImages
if you could link me to the images hack you are using i will take a look
swissknife
09-09-2008, 07:31 AM
Thank you for your quick answer!
I am using the original vbulletion option for alternative statusicons....
Blackheart_72
09-09-2008, 07:43 AM
Thank you for your quick answer!
I am using the original vbulletion option for alternative statusicons....
I had noticed you had switched back to the default icons, i dont think vb has a feature to change them out of the box unless i have missed it.
Infopro
09-09-2008, 08:54 AM
Go to Edit a Forum and find the Style Options section. ;)
Blackheart_72
09-09-2008, 09:01 AM
Go to Edit a Forum and find the Style Options section. ;)
Lol, i never even noticed that option.:o
I am using the original vbulletion option for alternative statusicons.
Have you got a folder specified for the custom images?
swissknife
09-09-2008, 01:37 PM
I got it to work! Thank you for your help!!!!!!!!!!!!!!!!!!!!!!!
Have you got a folder specified for the custom images?
no, default statusicos-folder from vbulletin....
Blackheart_72
09-09-2008, 02:01 PM
I got it to work! Thank you for your help!!!!!!!!!!!!!!!!!!!!!!!
no, default statusicos-folder from vbulletin....
No problem.:)
skulldred
09-14-2008, 11:47 AM
Hi all
I use this hack and it seems that i works but not proberly. It Stretch my columes how you can see it on the screenshot. Any idea why this happen?
Thanks for your help.
Blackheart_72
09-14-2008, 07:12 PM
Hi all
I use this hack and it seems that i works but not proberly. It Stretch my columes how you can see it on the screenshot. Any idea why this happen?
Thanks for your help.
Replied to PM. :)
sadam
09-21-2008, 12:41 PM
I got this hack working great
Does anyone know how i would get it to display the subforums as links next to last post or under forum description
TIA
rapidphim
10-18-2008, 04:09 PM
can someone please let me know whether or not this hack works on 3.7.3? Thanks.
Boosted Panda
10-21-2008, 05:09 PM
Works on 3.8 Beta
rapidphim
10-22-2008, 12:56 AM
thanks so much Boosted.
rapidphim
10-22-2008, 02:47 AM
I did everything and nothing shown up.... not sure where to go to make it show.... can anyone please help? thanks.
rapidphim
10-22-2008, 02:55 AM
Remove the thread and reply column.
how are you going to remove the "Last Post/Thread/Post" without effecting others forum, that not in column format?
Blackheart_72
10-22-2008, 12:00 PM
how are you going to remove the "Last Post/Thread/Post" without effecting others forum, that not in column format?
This is what i have to keep that in the non column forums but remove it from columned ones.
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$forum['subforumcolumns'] > 1">
<tr>
<style="border: none; width: 100%;">
$childforumbits
</td>
</tr>
<else />
<tr align="center">
<td class="thead" width="30"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="125">$vbphrase[last_post]</td>
<td class="thead" width="55">$vbphrase[threads]</td>
<td class="thead" width="55">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead" width="100">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</if>
</tbody>
</if>
</table>
rapidphim
10-22-2008, 01:43 PM
Thanks Veccy. I am testing it on 3.8.0 beta1. Would you please let me know which template to go to in order to remove those?
I am still kinda confuse how to remove those three areas for the subforum column and without affecting other standard one?
Really appreciate your help!
compact123
10-22-2008, 01:44 PM
this hack works on vbdesigns.de CYBORG style? Thanks.
Blackheart_72
10-22-2008, 04:09 PM
Thanks Veccy. I am testing it on 3.8.0 beta1. Would you please let me know which template to go to in order to remove those?
I am still kinda confuse how to remove those three areas for the subforum column and without affecting other standard one?
Really appreciate your help!
Where it tells you to edit forumhome_forumbit_level1_nopost.
Or PM me the template contents and i will take a look.
rapidphim
10-22-2008, 07:03 PM
Veccy,
Here is the template code for forumhome_forumbit_level1_nopost
<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>
Modify this will remove those three section on column format but will not change for other standard forums, right?
Blackheart_72
10-22-2008, 07:27 PM
Yes, change the bit you added for the hack to what i posted up and you should be good to go.
Click the link in my sig and you will see what it does but if by any chance it does not work then we will take another look at it.:)
rapidphim
10-22-2008, 08:06 PM
no no no.... after replaced the code you provided, it messed up the whole layout ....
Blackheart_72
10-22-2008, 09:57 PM
no no no.... after replaced the code you provided, it messed up the whole layout ....
What way did it mess it up?
You can take your code from the post you made here and out it back for now.
rapidphim
10-22-2008, 10:24 PM
Veccy, it's OK... I can live with that. However, do you know how am I going to get:
1/ the latest post info lie right beneath the forum title as in this website?
http://www.nbadimensions.net/forums/
2/ and how/where I can remove the "Thread/Post" so that only left "The latest post" and move number of post a side
http://www.nbadimensions.net/forums/
3/ also, it does not show the number of member/guest view on the forum anymore .... can we put it back?
Thanks so much.
saxahan
10-30-2008, 09:14 PM
thank for plugin.
bollie
11-04-2008, 05:07 AM
How can i remove statusicon from columns ?
compact123
11-10-2008, 04:20 PM
Can anyone help me to do this T_T
How can i have the catagory icons display i near statusicon..
I'm use this is catagory icon mod: http://www.vbhackers.com/f76/vb-category-icons-1412/
http://img396.imageshack.us/img396/5007/adszrl4.png
https://vborg.vbsupport.ru/
christicehurst
12-21-2008, 10:17 AM
I would love to see if this mod would work for newer versions
JMEWLS`
12-23-2008, 12:06 AM
This doesn't work on 3.7.8?
:(
Freddy.k
12-24-2008, 08:59 AM
Merci cool
bollie
12-24-2008, 09:47 AM
This doesn't work on 3.7.8?
:(
Yes work for 3.7 & 3.8
Allan
12-24-2008, 10:00 AM
For when this hack with hook system ?
:p
JMEWLS`
12-28-2008, 03:11 AM
Yes work for 3.7 & 3.8
Doesn't work actually.
JMEWLS`
12-28-2008, 03:29 AM
Could someone please verify if it's working for 3.7.4 or not. Because right now I can't get it working. If so please tell me how it is done.
ArnyVee
12-31-2008, 09:44 PM
Someone that I asked has it working on 3.7.4
http://www.globalhockeynetwork.com/forum.php
.....I will be trying it on 3.7.4 within the next week or so to confirm on another one of my sites.
GlamRockTalk
01-03-2009, 08:29 PM
Well, it works on 3.7.3 right out of the box :)
Thanks! :up:
Also, needed the help for adding the latest thread info added and found it on post #373!
add $forum[lastpostinfo] to your forumhome_forumbit_columncel template.
Very cool hack and something that I desperately needed! :D
ArnyVee
01-03-2009, 11:46 PM
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
if ($foruminfo['subforumcolumns'] > 1)
{
$forumbits = construct_forum_columns($foruminfo['forumid'], $foruminfo['subforumcolumns']);
}
else
{
$forumbits = construct_forum_bit($foruminfo['forumid']);
}
in place of
$forumbits = construct_forum_bit($foruminfo['forumid']
On line 425
Does this mean that I can get it to display on my forumdisplay in the same 'side by side' manner in which the forum home is displaying?
ArnyVee
01-03-2009, 11:52 PM
Does ANYONE know how to get this to work with forumdisplay and not just forumhome?
I will donate 50$ US to someone that are willing to do it and give me a bit support on it :D
That just requieres another fileedit!
In includes/functions_forumlist.php search for: (Backup before you do any edits!)
if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
if ((THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'forumdisplay') AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
Tobi
Wait....or is it this way to do it?
katie hunter
01-04-2009, 04:28 AM
Hi,
Can someone help upgrade this modification to 3.7
I am not really good with editing it :'(
diouxsie
01-05-2009, 02:38 AM
Does this mod runs on 3.7.4?
ArnyVee
01-06-2009, 03:01 AM
Runs on 3.7.3 for me and someone I know is using it on 3.7.4 :)
katie hunter
01-10-2009, 03:22 AM
it could cause load spike since it is out dated, i don't know =/ i don't like editing the main vb php files for a modification.
Blackheart_72
01-10-2009, 05:18 AM
Does this mean that I can get it to display on my forumdisplay in the same 'side by side' manner in which the forum home is displaying?
Click the link in my sig fella, go to the forums and choose regional groups.
That is how it displays for me after adding the above edit.
ArnyVee
01-11-2009, 12:52 AM
Click the link in my sig fella, go to the forums and choose regional groups.
That is how it displays for me after adding the above edit.
Cool, thanks! :D
It's just that one step, right Veccy? Or, did you do both steps that I quoted a couple of posts up?
GlamRockTalk
01-11-2009, 01:03 AM
I need some suggestions on how to make this a little more manageable for my forum home. I've got 56 subforums and now I have 19 rows of forums on my forum home.
Please take a look .... http://www.glamrocktalk.com/
First suggestion I need is how to 'separate' them with a small line or something? Right now they are all sitting in one big table. How would I do that?
Secondly, what can I do to save space and not make it that long? (Aside from deleting a bunch of subforums :) )
Any thoughts? Suggestions?
Qwest
01-11-2009, 03:47 AM
This works fine in my 3.8 GOLD install
See it here: www.diyautoforum.com
katie hunter
01-11-2009, 07:20 AM
It is nice but it doesn't look quite as nice as the attachment i posted here.
https://vborg.vbsupport.ru/showthread.php?t=199727
GlamRockTalk
01-11-2009, 01:12 PM
katie hunter, I think someone mentioned that you have to combine the mod with the custom icons....
https://vborg.vbsupport.ru/showthread.php?t=102025
....to get the look you want.
Blackheart_72
01-12-2009, 04:35 PM
Cool, thanks! :D
It's just that one step, right Veccy? Or, did you do both steps that I quoted a couple of posts up?
The only step i put in was the one i posted.:)
Mod works great on my 3.8 install.
GlamRockTalk
01-13-2009, 07:53 PM
Any idea why I can't use the "Style Options" within the "Forum Manager" to add certain icons instead of the 'site-wide' ones?
I added a new prefix as instructed within the Style Options and uploaded the images, but it won't show for the forums where I have activated this mod on. But, the Style Options worked with the 'regular' forums where this hack is not enabled.
Any idea what I can do to fix that? Is there something that needs to be renamed within the xml now with versions 3.7 versus when it was originally coded?
EDITED: This is the only line within the xml that lists "statusicon"....
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
...does it need to be adjusted since we are now in the 3.7 or 3.8 versions?
EDITED #2: These are the statusicon references in the template edits.....
then add this new function to the file:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
// ###################### Start construct_forum_columns #######################
// do light bulb
$forum['statusicon'] = fetch_forum_lightbulb($forumid, $lastpostinfo, $forum);
OR
Within the same file....
// 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';
Do these need to be adjusted so that my statusicons work properly in those categories/forums in which this mod is enabled?
KevinL
01-14-2009, 02:28 AM
Hi all
I use this hack and it seems that i works but not proberly. It Stretch my columes how you can see it on the screenshot. Any idea why this happen?
Thanks for your help.
https://vborg.vbsupport.ru/attachment.php?attachmentid=86869&stc=1&thumb=1&d=1221396404
OK I have read through this thread and I have done everything Veccy 150 has said and I am still getting the problem like the person above. I actually switched my custom 'nopost' template to the default to make it work with no luck...
Any help anyone please?
Blackheart_72
01-14-2009, 05:51 PM
OK I have read through this thread and I have done everything Veccy 150 has said and I am still getting the problem like the person above. I actually switched my custom 'nopost' template to the default to make it work with no luck...
Any help anyone please?
Have you got as bigger screen shot as the one posted by skulldred is a tad small.
KevinL
01-14-2009, 06:13 PM
Have you got as bigger screen shot as the one posted by skulldred is a tad small.
Right on. Here we go :)
Blackheart_72
01-14-2009, 06:22 PM
delete please
KevinL
01-14-2009, 06:38 PM
Thanks for the reply. That is what I did already and I'm still coming up with that picture above. Thats why I'm getting so frustrated haha I don't get it.
Any other ideas?
Blackheart_72
01-14-2009, 06:54 PM
Try this in your nopost template:
<if condition="!$show['collapsable_forums']">
<tbody>
</if>
<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>
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
<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>
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
</if>
KevinL
01-14-2009, 07:54 PM
Veccy 150 Got this all wrapped up for me! The code above worked mint!
Thanks
GlamRockTalk
01-14-2009, 08:54 PM
Veccy is a good person...he's trying to help me with my custom icons issue too! Thanks Veccy! :D
KevinL
01-14-2009, 09:10 PM
Yeah he is.
I got the icons set up no problem.
Check my sig :)
GlamRockTalk
01-14-2009, 09:47 PM
Looks good Kevin! :D
By the way, did you use the prefix field within the forum manager for the icons? Or, did Veccy help you with that as well?
KevinL
01-14-2009, 10:04 PM
Did this here... it's another mod on here :) I don't feel like looking for the thread but here is the attachment. I hope this is ok
Styles & Templates > Style Manager > Edit templates
Forum Home Templates > forumhome_forumbit_columncell
Select all and delete
================================================
Add This Code In Window:
================================================
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" width="$column_width">
<div>
<table border="0" cellpadding="1" cellspacing="5">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/$forumid.png" alt="" class="ForumImages" /></td>
<td>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['lastpostinfo']">
<div class="smallfont" align="$stylevar[left]">
<div style="clear:both">
Last Post: <a href="showthread.php?$session[sessionurl]goto=newpost&t=$lastpostinfo[lastthreadid]" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>
</div>
<div<if condition="is_browser('ie', 6)"> style="float:$stylevar[left]"</if>>
Posted <phrase 1="member.php?$session[sessionurl]find=lastposter&f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
-$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']">-<span class="time">$lastpostinfo[lastposttime]</span></if></div><BR>
Forum Info: Topic: $forum[threadcount]
Post: $forum[replycount]
</if>
</td>
</table>
</td>
==============================================
Click SAVE
==============================================
Now go to your style options ( Styles & Templates > Style Manager > All style Options) and add the following into additional css:
/* Forum Images next to the Description for every Forum */
.ForumImages {
float: left;
margin-right: 8px;
margin-top: 2px;
}
Save your style options and you are done.
Now you simply need to create images called:
ForumID.png
for each forum you want to have an image and put it into /images/statusicon/
Example: 22.png
TIP: You can upload .gif images and just rename it in your FTP client as .png (works for me).
IMPORTANT NOTE: Dont forget to edit ur catagorys and select the number of columns at the end of the edit page.
You are done!
Enjoy!
GlamRockTalk
01-14-2009, 10:09 PM
Thanks Kevin.
I'll wait to see if Veccy helps me get it working so that I can use the built in vB custom category icon field. If he can't get it to work, then I'll try your method as a backup. :D
KevinL
01-15-2009, 01:07 AM
Cool beans :)
Just be aware that this is far from XHTML valid. I went from 1 error to 80! haha
So if you're big on validating your site you're going to have some work cut out for you after using this :D hahah
Reece^B
01-15-2009, 10:50 AM
Veccy what are you using in your columncell template?
It's very neat and what not. Mind sharing lol?
Reece^B
01-15-2009, 10:54 AM
On another note, when you have the columnised forums how did you remove the last post, threads, posts bit @ the top?
Could people share their template? I've spent got knows how long trying to make this look good, but it's not happening lol.
Also, anyone got that image prefix in the forum manager to work?
Blackheart_72
01-15-2009, 05:13 PM
Veccy what are you using in your columncell template?
It's very neat and what not. Mind sharing lol?
Here you go fella.
columncell template ( using standard vb style):
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" width="$column_width">
<div>
<table border="0" cellpadding="1" cellspacing="5">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" class="ForumImages" /></td>
<td>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if><br />
<if condition="$show['lastpostinfo']">
<div class="smallfont" align="$stylevar[left]">
<div style="clear:both">
Last Post: <a href="showthread.php?$session[sessionurl]goto=newpost&t=$lastpostinfo[lastthreadid]" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>
</div>
<div<if condition="is_browser('ie', 6)"> style="float:$stylevar[left]"</if>>
Posted By <b><phrase 1="member.php?$session[sessionurl]find=lastposter&f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase></b>
-$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']">-<span class="time">$lastpostinfo[lastposttime]</span></if></div><br />
<b>Forum Info:</b> Threads: $forum[threadcount]
Posts: $forum[replycount]
</if>
</td>
</table>
</td>
Blackheart_72
01-15-2009, 05:29 PM
On another note, when you have the columnised forums how did you remove the last post, threads, posts bit @ the top?
Could people share their template? I've spent got knows how long trying to make this look good, but it's not happening lol.
Also, anyone got that image prefix in the forum manager to work?
I have removed it from the columns but kept it in the normal forums, this is what i have where the code from the hack goes in level one no post:
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$forum['subforumcolumns'] > 1">
<tr>
<style="border: none; width: 100%;">
$childforumbits
</td>
</tr>
<else />
<tr align="center">
<td class="thead" width="30"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="125">$vbphrase[last_post]</td>
<td class="thead" width="55">$vbphrase[threads]</td>
<td class="thead" width="55">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead" width="100">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</if>
</tbody>
</if>
I am going to look at the prefixes asap for glamrock and will post in here if i get it sorted.
GlamRockTalk
01-15-2009, 05:43 PM
Veccy, thank you so much! I'd love to be able to use the normal prefix option within the forum manager for the custom icons! :D
Reece^B
01-15-2009, 08:19 PM
Ledge you ledge, yeah same as above. :)
ArnyVee
01-17-2009, 02:23 PM
Veccy, hopefully you can get it working for the normal prefix option. I'd rather do the "normal" way rather than the 'template way' :)
Reece^B
01-18-2009, 08:44 AM
Yup, does it work in IE properly?
Because I get this in IE:
http://img140.imageshack.us/img140/8610/picnm6.jpg
As you can see all the tables are spaced, not how they're supposed to be!
Blackheart_72
01-18-2009, 09:54 AM
I will take a look later today, mine looks fine in IE with the default template.
Have had no luck with the prefixes yet though.
carubmun
01-18-2009, 10:27 AM
Veccy, you have been helping people a great deal with this plugin it seems. Great thanks for that.
Im one of the many hapless folks who just cant make it work, at least not the way its supposed to work (in my head at least).
Ive been trying for a year now to get this to work... and no dice.
I like how you have it in your forum... very much like what i want to do.
1. Three Columns
2. The "last post" info visible.
3. And the Status Icon "old/new/locked,etc..." working correctly.
Would it be possible for you to put what you have done here as one step by step guide for those of us still having trouble?
GlamRockTalk
01-18-2009, 11:45 AM
carubmun, you might want to look through some of the past posts. Veccy has detailed and even pasted the same codes he uses within the last few pages of this mod. Check 'em out, they may already help you with what you're looking for. :)
Blackheart_72
01-18-2009, 02:24 PM
How to use image prefixes:
open the forumhome_forumbit_columncell template and find:
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" class="ForumImages" /></td>
change to:
<td><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" class="ForumImages" /></td>
create 5 images and give them a prefix (i used 17_ for the example):
17_forum_link.gif
17_forum_new.gif
17_forum_new_lock.gif
17_forum_old.gif
17_forum_old_lock.gif
and upload them to your style statusicon folder, then i added 17_ in the prefix field.
GlamRockTalk
01-18-2009, 03:06 PM
Oh man...thanks Veccy! :D
Worked for me! My code in the first line was just a little different, but I noticed what you did and it worked. Thank you so much for sharing and helping us with this! :up:
Blackheart_72
01-18-2009, 03:16 PM
Oh man...thanks Veccy! :D
Worked for me! My code in the first line was just a little different, but I noticed what you did and it worked. Thank you so much for sharing and helping us with this! :up:
No worries. :)
its $forum[imageprefix] thats missing from the above template.
carubmun
01-19-2009, 07:26 AM
carubmun, you might want to look through some of the past posts. Veccy has detailed and even pasted the same codes he uses within the last few pages of this mod. Check 'em out, they may already help you with what you're looking for. :)
I have, im not entirely a noob at this kind of stuff... but for some reason i just cant get this to work.
Ive tried it like 20 times these past couple of days... and a bunch more times about a year ago before i gave up.
I know its all me, because others are not having the issues im having.
Tried it with the instructions found here by you guys, older instructions in this thread, instructions i saw on another vb forum... i disabled my tabs, tried it on 3 different skins including the default skin. Nothing.
So im gonna post here exactly what im doing, step by step.
See if im just missing a step somewhere.
1. Install product-xenon_forumcols.xml through admincp.
2. Download my functions_forumlist.php and do the Find/Change edit per this hacks original instructions.
3. Add the "Add This New Function" part at the very end of the functions_forumlist.php file, but above the box at the end.
4. Upload functions_forumlist.php back to my forum.
5. Go to my forumbit_level1_nopost file and do the Find/Replace edit as per the original instructions.
6. Go to Forum Manager and make subforums appear in 3 columns.
7. As it still did not work at this point, i went and added the contents of post #451 by Veccy in this thread... into my columncell. Still, nothing.
8. I repeat step 5, but this time using the info provided by Veccy in post #452. Still, nothing.
So, am I missing a step?
Blackheart_72
01-19-2009, 09:08 AM
I have, im not entirely a noob at this kind of stuff... but for some reason i just cant get this to work.
Ive tried it like 20 times these past couple of days... and a bunch more times about a year ago before i gave up.
I know its all me, because others are not having the issues im having.
Tried it with the instructions found here by you guys, older instructions in this thread, instructions i saw on another vb forum... i disabled my tabs, tried it on 3 different skins including the default skin. Nothing.
So im gonna post here exactly what im doing, step by step.
See if im just missing a step somewhere.
1. Install product-xenon_forumcols.xml through admincp.
2. Download my functions_forumlist.php and do the Find/Change edit per this hacks original instructions.
3. Add the "Add This New Function" part at the very end of the functions_forumlist.php file, but above the box at the end.
4. Upload functions_forumlist.php back to my forum.
5. Go to my forumbit_level1_nopost file and do the Find/Replace edit as per the original instructions.
6. Go to Forum Manager and make subforums appear in 3 columns.
7. As it still did not work at this point, i went and added the contents of post #451 by Veccy in this thread... into my columncell. Still, nothing.
8. I repeat step 5, but this time using the info provided by Veccy in post #452. Still, nothing.
So, am I missing a step?
Have you got a link to your site so i can see style you are using, can go from there then matey.
djxcee
01-20-2009, 08:16 AM
Does anyone know how to make this display in a vertical alphabetic order?
A D
B E
C F
Instead of
A B
C D
E F
GlamRockTalk
01-20-2009, 12:47 PM
djxcee,
You could simply change the display order in the forum manager main screen of the subforums.
diouxsie
01-20-2009, 04:17 PM
Does anyone has already tryed this mod on vB 3.8.0?
djxcee
01-20-2009, 07:13 PM
djxcee,
You could simply change the display order in the forum manager main screen of the subforums.
I did change the display order but it doesn't show in a vertical alphabetic structure.
Reece^B
01-20-2009, 09:55 PM
Does anyone has already tryed this mod on vB 3.8.0?
Yes fully works.
Freddy.k
02-07-2009, 04:01 PM
thanks you
lalbahadur
02-10-2009, 12:44 AM
I have this modification installed on my forum. In the offline version of my forum, I installed the Tabbed Forumhome Mod https://vborg.vbsupport.ru/showthread.php?t=175687
For some reason, the forumhome is no more displayed in coloumns. Please Help.
bobster65
02-10-2009, 01:14 AM
I have this modification installed on my forum. In the offline version of my forum, I installed the Tabbed Forumhome Mod https://vborg.vbsupport.ru/showthread.php?t=175687
For some reason, the forumhome is no more displayed in coloumns. Please Help.
I posted a solution for this in this thread... just do a search for it ..
EDIT: Here is a link to the post in this thread... https://vborg.vbsupport.ru/showpost.php?p=1575929&postcount=374
lalbahadur
02-10-2009, 03:47 PM
thanks ! works excellent now
lalbahadur
02-11-2009, 02:31 PM
I was just wondering if by any possible way, we could make the last forums (in case of odd number of forums in a category) end up center aligned.
TruVB
03-15-2009, 03:47 PM
3.8?
Raffaele
03-30-2009, 07:27 AM
3.8?
yeap got it running on a test site (3.8.1)...check it out [code]http://www.ultimateresources.biz/forum/index.php[code]
livefreetv
03-31-2009, 09:25 PM
Hi,
Does anyone know how can i display the subforums (on forumhome) in the columncell?
kairev
04-01-2009, 02:04 AM
This is what I'm trying to accomplish:
http://www.hockeyforum.com
See how each team is listed in different categories (Atlantic Division, Northeast Division, Southeast Division, etc). It looks like a subforum of a subforum, almost. How can I do this? The only thing I'm able to get going here is columns for the first set of subforums...but those subforums have subforums too. ie my first set of subforums would be labeled Atlantic Division, Northeast Division, Southeast Division. I have all the teams set as subforums of those...but they aren't showing up on the main forum. I attached a screenshot of what I get...
Can anyone please help?
Indyaboard
04-12-2009, 12:50 PM
thank you
vibedream
04-14-2009, 12:44 AM
Need a mod for v3.8 plz!
Lionel
04-16-2009, 08:51 PM
This is what I'm trying to accomplish:
http://www.hockeyforum.com
See how each team is listed in different categories (Atlantic Division, Northeast Division, Southeast Division, etc). It looks like a subforum of a subforum, almost. How can I do this? The only thing I'm able to get going here is columns for the first set of subforums...but those subforums have subforums too. ie my first set of subforums would be labeled Atlantic Division, Northeast Division, Southeast Division. I have all the teams set as subforums of those...but they aren't showing up on the main forum. I attached a screenshot of what I get...
Can anyone please help?
it's very easy.
First you set the main forum which will hold the subforums, you set how many columns you want, then you get the forumid
then you edit the template forumhome_forumbit_level1_nopostyou look for:
<table style="border: none; width: 100%;">
$childforumbits
</table>and depending of the amount column that you set, this is how many <td that you put. For example for 3 columns, you would place the red in your template, replacing xx with the main forumid
<table style="border: none; width: 100%;">
<if condition="$forum[forumid]=='xx'">
<tr><td class="thead">Column 1 Title</td><td class="thead">Column 2 Title</td><td class="thead">Column 3 Title</td></tr>
</if>
$childforumbits
</table>then in admincp you simply arrange the subforums order so they display in the proper column.
You might want to add some css in the td to give them some padding
legion!
04-24-2009, 03:06 AM
this is the error i get wen i try to install on 3.81
Fatal error: Field subforumcolumns is not defined in $validfields in class vb_datamanager_forum in [path]/includes/class_dm.php on line 485
Lionel
04-24-2009, 03:13 AM
This works just fine up to 3.82. You need to import the product and do the file edit, and you'll be fine.
belindazhu
06-11-2009, 03:08 AM
don't work on 3.8.1, the error is: Parse error: syntax error, unexpected T_STRING in /home/content/j/s/e/******/html/forum/includes/functions_forumlist.php on line 273
You should make updation to 3.8.x.
belindazhu
06-12-2009, 12:38 AM
Veccy, it's OK... I can live with that. However, do you know how am I going to get:
1/ the latest post info lie right beneath the forum title as in this website?
http://www.nbadimensions.net/forums/
2/ and how/where I can remove the "Thread/Post" so that only left "The latest post" and move number of post a side
http://www.nbadimensions.net/forums/
3/ also, it does not show the number of member/guest view on the forum anymore .... can we put it back?
Thanks so much.
Hi Rapidphim,
I saw your forum, this hack showing very good on your forum 3.8.2, I am admiring.
I think many people admire that, you pass through it.
So could you please share with us how did you do on 3.8.x? I met problems after do as Xenon tell us, the error is: Parse error: syntax error, unexpected T_STRING in /home/content/j/s/e/******/html/forum/includes/functions_forumlist.php on line 273
1. Copy your code here in "/includes/functions_forumlist.php" to me compeletely, ok?
2. Copy your code here in "forumhome_forumbit_level1_nopost", is it ok?
We need you.
JMEWLS`
06-18-2009, 02:48 AM
how do I show moderators? I've put in the code but it puts me as a moderator:
http://www.nbadimensions.net/forums/
Look under team forums.
JMEWLS`
06-19-2009, 05:57 AM
Bump.
JMEWLS`
06-21-2009, 03:34 AM
anyone willing to help?
JMEWLS`
06-22-2009, 10:39 AM
Anyone see a problem in the code?
functions_forumlist.php
<?php
// ###################### 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 == 1 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;
}
Carpetsmoker
06-22-2009, 10:54 PM
Asking the same question four times will not get you an answer sooner, please do not keep asking the same question over and over.
JMEWLS`
06-23-2009, 11:17 AM
Well, I don't exactly see what harm it does? It brings my post into the new posts section in which users can see and potentially help me. No ones going to view an old thread?
JMEWLS`
06-24-2009, 08:20 PM
Bump
lordtopcat
06-24-2009, 11:12 PM
Notice that the modification was made for the 3.5 system and if you read you will notice it says: Not Supported up the top.
JMEWLS`
06-26-2009, 05:06 AM
Notice that the modification was made for the 3.5 system and if you read you will notice it says: Not Supported up the top.
So the modification just stuffs up the moderators in 3.8?
It's fine with everything else.
Blackheart_72
06-27-2009, 05:38 PM
how do I show moderators? I've put in the code but it puts me as a moderator:
http://www.nbadimensions.net/forums/
Look under team forums.
I am having the same problem at the moment, shows my moderators including myself.
If i can work it out will post up.
JMEWLS`
07-01-2009, 12:01 AM
Thankyou, I can't seem to find it. It's weird.
trinity9
07-05-2009, 06:17 PM
1. Imported product-xenon_forumcols.xml through admincp, imported fine.
2. Edited functions_forumlist.php via ftp and did the edits detailed in the instructions.
3. I added the "Add This New Function" above the footer description box at the very end of the functions_forumlist.php file.
4. Uploaded edited functions_forumlist.php back to my forum.
Then, when I went to check my forums (I still have another edit to do in templates,) each time I get a invalid compression error box on white screen with my forums totally inactive.
I am using 3.5.4 and do have other modifications including cyb-subforum mod.
Another note, in my forums edit, the box to Show Subforums in # of columns does appear.
I have re-inserted a brand new .php file to get my forums up and running, yet would like to get this hack active.
Any help would be appreciated.
adamskiii
07-28-2009, 02:35 PM
Can someone please help me install this on Vbulletin 3.8.3
maddento
07-31-2009, 01:01 AM
Can someone please help me install this on Vbulletin 3.8.3
Same here please. Willing to pay a good lump of money to do so as well
anestetic
09-16-2009, 07:58 PM
for 3.8.x ???? please
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.