View Full Version : Forums arranged in columns on forumhome
Xenon
10-31-2005, 10:00 PM
As requested several times, this hack allows you to arrange forums on forumhome in xx columns instead of just one per row as it is in standart vb3. It is a plain port of my 3.0 version you can find here.
Look at the screenshot to know what i mean :)
The design is changeable in the templates of course :)
I've tested it, and it should work, but as i don't use it myself, i cannot do a longtime test, so if you find any bugs, report them :)
Right now, it's just working on forumhome.
I'll add changes for forumdisplay later
Cheertobi
11-01-2005, 11:43 AM
First to thanks you for that hack!
My members still love you for that one ;)
* Cheertobi clicks install!
Tobi
Yorixz
11-01-2005, 12:05 PM
Looks interesting, I might use this for a few chat forums; I suppose this only affects the category you select and not your whole forum?
Cheertobi
11-01-2005, 12:51 PM
Hi,
I found two small typos within the filemodifications:
find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Set Defaults;
$forum = array(
'title' => '',
'description' => '',
'link' => '',
'displayorder' => 1,
'daysprune' => -1,
'parentid' => $vbulletin->GPC['parentid'],
'newthreademail' => '',
'newpostemail' => '',
'moderatenewpost' => 0,
'moderatenewthread' => 0,
'moderateattach' => 0,
'warnall' => 0,
'styleid' => '',
'styleoverride' => 0,
'password' => '',
'canhavepassword' => 1,
'cancontainthreads' => 1,
'active' => 1,
'allowposting' => 1,
'indexposts' => 1,
'allowhtml' => 0,
'allowbbcode' => 1,
'allowimages' => 1,
'allowsmilies' => 1,
'allowicons' => 1,
'allowratings' => 1,
'countposts' => 1,
'showonforumjump' => 1,
There is no comma after 'showonforumjump' => 1.
find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$forumbits = construct_forum_bit($forumid);
Seems now to be:
$forumbits = construct_forum_bit($foruminfo['forumid']);
Regards,
Tobi
99SIVTEC
11-01-2005, 01:36 PM
Thanks xenon. I'll install and report back ;)
Andreas
11-01-2005, 01:41 PM
To get rid of the index.php edit:
cache_templates
if (THIS_SCRIPT == 'index')
{
$globaltemplates[] = ''forumhome_forumbit_columncell';
}
To get rid of the admincp/forum.php edits
forumadmin_add_default
$forum['subforumcolumns'] = '1';
forumadmin_edit_form
print_table_header($vbphrase['subforum_settings']);
print_input_row($vphrase['show_subforums_in_x_columns'], 'forum[subforumcolumns]', $forum['subforumcolumns']);
forumdata_start
$this->validfields['subforumcolumns'] = array(TYPE_UINT, REQ_NO);
Cheertobi
11-01-2005, 03:11 PM
Hi,
seems to work great, but when I press on a categoryname to view only this categoeries forums I got a wrong table!
Picture is attached, seems like something in forumdisplay is wrong for me.
Tobi
Xenon
11-01-2005, 03:44 PM
@Cheertobi: i have not yet worked out the forumdisplay parts.
as sai i did not have enough time yet to code it in a way i would like it myself, and it's jsut released so the missing functionaly time could be reduced ;)I suppose this only affects the category you select and not your whole forum?
yep
@Andreas: thx ;)
99SIVTEC
11-01-2005, 03:50 PM
works perfectly for me. http://www.automotivearena.com or a direct link to the forums http://www.automotivearena.com/forums/
Snake
11-01-2005, 04:27 PM
Wow perfect hack! Thanks X! :)
Thanks for this Xenon :)
Thanks,
Mat
Reminder
11-02-2005, 09:45 AM
Thanks Xenon :)
krvaricp
11-02-2005, 10:34 AM
Well, I think that this hack mod works for the Default Style of vBulletin and some other style. I'm using the Cyborg Style of vBDesigns so I can't install it anyway. :ermm:
Cheertobi
11-02-2005, 11:38 AM
Hi,
Well, I think that this hack mod works for the Default Style of vBulletin and some other style. I'm using the Cyborg Style of vBDesigns so I can't install it anyway. :ermm:
nope, it also works with custom styles! I use the Element Style of vBStyles, as you can see here (http://www.cheerforum.de).
Tobi
Xenon
11-02-2005, 07:33 PM
it works for any styles, but you may have to change the template instructions a little bit of course
Allan
11-02-2005, 07:49 PM
Fatal error: Call to undefined function: construct_forum_columns() in c:\program files\easyphp1-8\www\forum\includes\functions_forumlist.php on line 296
don't work for me, file attach updated ?
in "admincp/forum.php", There is twice:
$forumdata =& datamanager_init('Forum', $vbulletin, ERRTYPE_CP);
michaelbenson
11-02-2005, 08:40 PM
Wow, so many fantastic "Code Modifications" are being released.
Keep up the good work :)
Guest190829
11-03-2005, 02:00 AM
Excellant Xenon, always releasing things just when I need it.
* Guest190829 clicks install. :)
Xenon
11-03-2005, 10:23 AM
i know ;)
Anyone got this working on 3.5.1 .. couple of code changes that don't match the instructions.
ggiersdorf
11-03-2005, 11:59 AM
make it so we can sort subforms of our choice by alphabetic and you got a hack of the month :)
good work :)
cool hack... anyway i can just set this so it only applies these changes to sub forums ?
Xenon
11-03-2005, 06:52 PM
you have the ability to set this for all subforums of one specific forum, the forum has not to be a category it's just that it normally is a category
Blackbeard
11-06-2005, 12:30 PM
working on 3.5.1 yet as TTG said things not matching up
Alien
11-06-2005, 06:53 PM
Appears to work fine on 3.5.1...
I also used less file edits as one of the posts in here assists with...
NeRilkA
11-08-2005, 08:30 PM
hi it doesn't work for me :(
i install it twice and i don't understand what i'm doing wrong.. is there anything to edit in the code itself ??
in the admincp, i have to change the number in the main category and leave 1 in the forums and subforums right ?
thanks for you help :)
Xenon
11-08-2005, 08:31 PM
nope you don't have to edit anything in the code.
remember that you have to submit the changes in the main category in acp twice, due tu a little bug.
NeRilkA
11-08-2005, 08:40 PM
thanks xenon, yes I remember and i did it ...
look, i join 2 pictures.
In main category i put 2 in "Show Subforums in # of columns" and leave 1 in the main forum and the subforums. did i did it correctly ??
sorry for these stupid questions ;)
lsgworldl
11-08-2005, 10:44 PM
has the typos been chaned in the instruction files??? going to try and install when I get up in the morning
lsgworldl
11-10-2005, 03:43 PM
how do I run this query, where do I do it and what do I need to do?
you have to run this Query at first:
ALTER TABLE forum ADD subforumcolumns TINYINT(3) UNSIGNED DEFAULT '1' NOT NULL ;
lsgworldl
11-10-2005, 06:26 PM
yet another mod with hardly instructions how to use it, and an authour that dosnt support it, getting used to this, why make a mod then have very bad instructions?
Guest190829
11-10-2005, 06:33 PM
yet another mod with hardly instructions how to use it, and an authour that dosnt support it, getting used to this, why make a mod then have very bad instructions?
This is in BETA stages. Bugs should be expected in these versions.
Please note, that this is a beta version, and just released, so that you won't miss a feature you had on your board since a long time. I consider it as far from perfect and will work on it further when i have more time.
Furthermore the Supported tag isn't clicked, so you can't expect support...
Allan
11-10-2005, 07:04 PM
Yes, the instructions are not rather clear
Guest190829
11-10-2005, 07:08 PM
Yes, the instructions are not rather clear
What don't you understand?
Cheertobi
11-10-2005, 07:08 PM
yet another mod with hardly instructions how to use it, and an authour that dosnt support it, getting used to this, why make a mod then have very bad instructions?
Because a lot of people cried for it! Xenon mentioned it, that he has no time for a "better" version right now!
Tobi
lsgworldl
11-10-2005, 07:18 PM
This is in BETA stages. Bugs should be expected in these versions.
Furthermore the Supported tag isn't clicked, so you can't expect support...
not if the typos are pointed out and is still in his file that is still up for dl
99SIVTEC
11-10-2005, 07:58 PM
it's an easy hack to install guys.
Guest190829
11-10-2005, 09:13 PM
not if the typos are pointed out and is still in his file that is still up for dl
Please understand that Xenon is very busy, and he is the only one in control of the files up for download. The next update on the hack will surely fix all known problems. We must be patient. :)
Allan
11-10-2005, 09:23 PM
Please understand that Xenon is very busy, and he is the only one in control of the files up for download. The next update on the hack will surely fix all known problems. We must be patient. :)
Ok Danny, but for the next version, try to be a little more precise in the instructions because it's not easy to use this hack for french user ;)
Guest190829
11-11-2005, 01:14 AM
Well that's up to Xenon if he wants to change the install file, not me.
concepts
11-13-2005, 06:47 AM
i'm nowhere near a coder, but this hack is simple as h-e-double hockey sticks to install, the only thing I MAY have had a question on was the query, but I figured that out myself, (which most people need to learn how to do btw)
Caiman
11-15-2005, 07:37 PM
Hey all, I got this installed easily enough (thanks Xenon!). I noticed that some people had added post info, like last response by and thread title/time date beneath each forum in the columns, any help on doing that would be nice :D
Cheertobi
11-15-2005, 08:14 PM
Try to add the following variables in forumhome_forumbit_columncell
$forum[lastpostinfo] (Maybe you have to modify the forumhome_lastpostby template, to make it look nicer)
and
$forum[browsers]
Xenon
11-15-2005, 09:29 PM
Sorry, for my long absence, but the isp of my gf didn't let me get online....
now i have missed a lot of days ;)
as for a few comments on this thread: i'll remember them and maybe won't release any hacks next time, if i don't finish them. If someone has no experience in hacking his board, that's not my fault, beta versions are beta versions because they are in a beta stadium, and not yet finished, so to all of those who complaint: DON'T INSTALL BETA VERSIONS IF YOU CANNOT LIVE WITH A FEW PROBLEMS.
yes, me is a bit annoyed...
Caiman
11-16-2005, 02:03 AM
Try to add the following variables in forumhome_forumbit_columncell
$forum[lastpostinfo] (Maybe you have to modify the forumhome_lastpostby template, to make it look nicer)
and
$forum[browsers]
Thanks, I wanted to show lastpostinfo a little differently in the columned forums than it is shown in those that remain normal, so I've lifted some functions from forumhome_lastpostby and chucked them in the new template and achieved what I wanted. Thanks for your help :D
Thanks again for the lovely hack, Xenon.
Xenon
11-20-2005, 05:35 PM
I have uploaded a new version now.
The hack is no longer considered as beta, so you should all be able to use it :)
It's now using the vbulletin product system, to make the install much easier.
For those who have installed the Beta version, you have to manually drop the subforumcolumn field in forum table, before you can run the product xml file.
I'll send out an upgrade, once i have got positive feedback, that i didn't forgot something ;)
Borgs8472
11-21-2005, 10:24 PM
^ ^
Thanks!
/me will be upgrading asap
Guest190829
11-22-2005, 02:44 AM
Updated hack installed, and is working great. Thanks again Xenon :)
fridayweb
11-23-2005, 01:25 PM
I was trying to add in the old option from 3.0 where there was a radio select button where people could select columns or not. I did everything the same way that was described in 3.0 and it's not quite working. I was wondering if you had some updated changes that could fix that for this 3.5 hack? Thanks!
Xenon
11-24-2005, 05:09 PM
I don't remeber of such a modification, but it should work quite similiar, just a few variables have changed, so you might reneame those whaen porting that mod.
DJ XtAzY
11-25-2005, 05:17 AM
i cant wait till u have time to work on the forumdisplay version
fridayweb
11-25-2005, 06:08 AM
Thank you for your quick response before, I know you're a busy person!
From Forums arranged in columns on forumhome (3.0.3) (https://vborg.vbsupport.ru/showthread.php?t=59958&page=1&pp=15):
as said create a new custom profile field just allowing yes/no as option, and afterwards open functions_forumlist.php
find:
if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
and change into
if ($bbuserinfo['fieldxx'] == 'yes' AND THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
replace the xx with the fieldid of your new custom field :)
that's all
glad you could solve it :)
oh yes, i know the second problem :)
i forgot to tell you, that you ahve to manipulate the template forumhome_forumbit_level1_nopost as well.
find there
<if condition="$forum['subforumcolumns'] > 1">
and change it to
<if condition="$bbuserinfo['fieldxx'] == 'yes' AND $forum['subforumcolumns'] > 1">
I made those two conditional adjustments. On 3.0 it worked great for me, but on 3.5, this is what I'm seeing. The yescolumn.gif and the nocolumn.gif show you what my forum looks like. I've been playing with the fields and it's driving me crazy! (it's not a problem of the yes/no being case-sensitive or a wrong field number)
Oh and when I don't have the conditional in there, the columns work perfectly and I love them. I just know that some of my users want to have the 'old style' rows. If you could give me any advice, I'd really appreciate it. This is the last thing I need to fix for my 3.5 update and my forum will be ready.
Help me, Xenon. You're my only hope! :)
Allan
11-25-2005, 01:26 PM
Click Install ;)
but, i'm this error:
Fatal error: Call to undefined function: construct_forum_columns() in /xxxxxxxxxxx/xxxxxxx/public_html/forum/includes/functions_forumlist.php on line 296
Xenon
11-25-2005, 05:32 PM
@Allan: you missed a step during the installation:
then add this new function to the file:
if ($bbuserinfo['fieldxx'] == 'yes'
should be:
if ($vbulletin->userinfo['fieldxx'] == 'yes'
then it should work.
cant wait till u have time to work on the forumdisplay version
shouldn be too long ;)
Allan
11-25-2005, 05:41 PM
Not understand this:
replace the xx with the fieldid of your new custom field
Which custom field ???
Xenon
11-25-2005, 07:03 PM
he is referring to an old addon, look into the 3.0 thread to find out :)
Allan
11-25-2005, 07:34 PM
he is referring to an old addon, look into the 3.0 thread to find out :)
https://vborg.vbsupport.ru/showpost.php?p=632575&postcount=375
but not anderstand :(
I does not see the report with the hack, why creates one custom field ?
fridayweb
11-25-2005, 09:35 PM
Xenon, that works PERFECT!!! Is there someway I can donate some money to you? Seriously, you just cured a four day headache for me! Much appreciated.
Allan, sorry to confuse you, I was asking about an old setup that would allow this to be user selectable. Check the other thread, and then make the small correction Xenon suggested above. :)
Xenon
11-27-2005, 01:41 PM
@friday: well, you don't have to, but if you want, xenon@vbulletin.org is my paypal addy ;)
@Allan: that mod was never officially added to the hack, it's normal for such sub addons ;)
Allan
11-27-2005, 10:40 PM
yess, i work now :D:D
but i'm a little problem :p
Your hack don't work with this modification: http://www.vbulletin.com/forum/showpost.php?p=759122&postcount=3%29%28look:
So, i work perfectly with "forumhome_forumbit_level1_post" template, but don't work with "forumhome_forumbit_level2_post" template.
Could you help me ?
No hack active:
http://img373.imageshack.us/img373/7343/nohack5nn.gif
With hack active:
http://img373.imageshack.us/img373/1617/withhack5zi.gif
Cheertobi
11-28-2005, 05:20 AM
Hi Allan,
modify forumhome_forumbit_columncell!
Tobi
Allan
11-28-2005, 06:02 AM
Hi Allan,
modify forumhome_forumbit_columncell!
Tobi
Thanks, work now ;)
a question, Have you an idea to remove how the white outline and center the texte with image ?
http://img516.imageshack.us/img516/6653/outline5kc.gif
Cheertobi
11-28-2005, 07:33 AM
Hi,
a question, Have you an idea to remove how the white outline and center the texte with image ?
check your css for that, that is the style you use...
Tobi
Allan
11-28-2005, 07:48 AM
I succeeded has to remove the white line, But I do not manage to centre the text with the image
Cheertobi
11-28-2005, 08:17 AM
I succeeded has to remove the white line, But I do not manage to centre the text with the image
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
Allan
11-28-2005, 08:52 AM
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
Thanks for your help Cheertobi, work perfectly !!!! :D
http://img506.imageshack.us/img506/1185/ok4ra.gif
Southpaw
11-30-2005, 10:33 PM
Can someone explain how you can get your subforums to show in columns too please?
Right now only my top-level forums can be shown in columns.
Thanks in advance!
Allan
That is cute setup :D :D
Evil X
12-08-2005, 11:14 PM
how do I get my forum display to look right... were the post count and thread count is, it cuts off the forum cats... so the titles go to a new line... someone please give me a fix
Borgs8472
12-09-2005, 08:17 AM
^ ^
this hack doesn't (yet) work with forum display :(
ShadowOne
12-09-2005, 12:02 PM
i really like this except i would have hoped that it was a little neater... Like the image(status icon) is not in the same place, it varies depending on how much text the category details is, you should make it look nice and maybe fix that? it would be greatly appreciated...here is my site to look at what i mean...http://www.urban-revolution.com/forum/
Evil X
12-09-2005, 06:16 PM
^how did you fix your's? share how you got the forums to be all on the whole thing, and not cut off at the post count lanes. ect
zachlee
12-11-2005, 01:14 PM
eta on forumdisplay in columns?
I will buy Xenon internet access if need be.
:)
ShadowOne
12-11-2005, 03:50 PM
^how did you fix your's? share how you got the forums to be all on the whole thing, and not cut off at the post count lanes. ect
I Just Installed The Hack Properly....
Xenon
12-11-2005, 05:17 PM
eta on forumdisplay in columns?
I will buy Xenon internet access if need be.
:)
it's a techical problem, no money problem...
damn isp.......
the forumdisplay part wold be easy... ;)
Blackbeard
12-12-2005, 06:30 PM
<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" width="200">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</tbody>
</if>
</table>
This is my code in nopost1, how can i mod this to keep all section aligned but add the required stuff
The Chief
12-12-2005, 09:58 PM
Just installed and it works great! :)
Heres an example ;)
http://www.myetalk.com
mekro
12-13-2005, 08:08 AM
Just a quick question, would it be possible to edit this hack to put the catergories in colums instead of just forums.
I ask this because i run a forum that deals with trading card games such as yugioh MTG etc and have many catergorys, so i would like to do something like what this hack does but just for catergorys.
Thanks before hand.
kirk
Borgs8472
12-14-2005, 10:23 PM
I'll throw in $10 if it will encourage Xenon to make this a little faster :)
( My handy search links won't really work until it's back on forum display... :( )
teedizz
12-14-2005, 11:27 PM
I fixed this problem ;)
teedizz
12-15-2005, 07:52 AM
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
Tobi...where do I do that because I have the same problem bro. Im not as skilled with this as you all are so if you can tell me what template to edit & where to enter that it would be very much appreciated. Thanks
Blackbeard
12-15-2005, 01:55 PM
<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" width="200">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</tbody>
</if>
</table>
This is my code in nopost1, how can i mod this to keep all section aligned but add the required stuff
Anyone help here
teedizz
12-15-2005, 04:08 PM
bump for some help..hahah
newfun
12-17-2005, 01:25 AM
Thanks for your help Cheertobi, work perfectly !!!! :D
http://img506.imageshack.us/img506/1185/ok4ra.gif
Hi Allan.
How can you do this step? I saw many people asking for you but you just keep it yoursefl without any quote.
Evil X
12-17-2005, 02:24 AM
please tell me how to accomplish this
http://img104.imageshack.us/img104/1473/111115ws.jpg
Cheertobi
12-17-2005, 09:58 PM
Hi Allan.
How can you do this step? I saw many people asking for you but you just keep it yoursefl without any quote.
What do you want to know exactly?!
Tobi
newfun
12-17-2005, 10:03 PM
I just wanna to move the white line out and, put the thread title in the middle.
Thnak you Tobi
teedizz
12-18-2005, 03:57 AM
What do you want to know exactly?!
Tobi
he wants to know the exact steps in centering the forum name & description next to the forum icon.
Evil X
12-18-2005, 04:04 AM
hey, why dont the forums show in colums when I do it to a forum with subforums?
Cheertobi
12-18-2005, 07:42 PM
he wants to know the exact steps in centering the forum name & description next to the forum icon.
Ah, ok ;)
The white line is a css issue, you have to check yoir css for something like border-left 1px and set that to 0px! Sorry, I do not use the standardstyle, so I cannot say right now, what style to change in your css!
For the second "problem" try this code in forumhome_forumbit_columncell:
<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>
As said before, I use a different style, but this should work.
Tobi
MSheraz86
12-18-2005, 07:59 PM
Hi, I've tried every possible answer from this thread and the 3.0 thread but I cannot seem to get anywhere NEAR this mod at all :(
https://vborg.vbsupport.ru/ (http://img486.imageshack.us/my.php?image=forum3bi.jpg)
That's how my forum looks like with this mod installed and pretty much without. What am i doing wrong????? :(
teedizz
12-18-2005, 08:13 PM
Ah, ok ;)
The white line is a css issue, you have to check yoir css for something like border-left 1px and set that to 0px! Sorry, I do not use the standardstyle, so I cannot say right now, what style to change in your css!
For the second "problem" try this code in forumhome_forumbit_columncell:
<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>
As said before, I use a different style, but this should work.
Tobi
Worked perfectly. Thank you
teedizz
12-18-2005, 08:20 PM
Hi, I've tried every possible answer from this thread and the 3.0 thread but I cannot seem to get anywhere NEAR this mod at all :(
http://img486.imageshack.us/img486/2222/forum3bi.th.jpg (http://img486.imageshack.us/my.php?image=forum3bi.jpg)
That's how my forum looks like with this mod installed and pretty much without. What am i doing wrong????? :(
Are you changing how many columns you wanna display under forums manager?
MSheraz86
12-18-2005, 09:03 PM
I go to Forum Manager > Edit forum > Show Subforums in # of columns: 2
That's what i've done for the top side of the forums and it isn't having any effect :(. I've also tried 3 and 4 but no use either.
Guest190829
12-19-2005, 12:57 AM
If you want this to work with Chris M's Cust Forum Status Icons (https://vborg.vbsupport.ru/showthread.php?t=102025) Modification just replace Xenon's function with the following:
// ###################### 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;
}
And follow this template change:
Edit forumhome_forumbit_columncell
Change:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
to
<img src="<if condition="$show['customstatusicon']">$forum[customicon]<else />$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif</if>" alt="" border="0" />
That should change it for you :)
Chris
And it should know work correctly....
MSheraz86
12-19-2005, 02:09 AM
This is the error I receive:
Fatal error: Cannot redeclare construct_forum_columns() (previously declared in /home/username/public_html/forum/includes/functions_forumlist.php:312) in /home/username/public_html/forum/includes/functions_forumlist.php on line 312
my functions_forumlist.php looks like this (As it does not state in the instructions properly where to insert it so i inserted it right after the first instruction that is in the txt file)
if ($vbulletin->userinfo['field7'] == '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;
}
I'm ALWAYS encountering the above error just because of line 312 (function construct_forum_columns($parentid, $columncount))
:( How do I go about this and did i insert the new function in properly??
Cheertobi
12-19-2005, 10:48 AM
@Danny.VBT
Does the hack the same like this tutorial explains?: http://www.vbulletin.com/forum/showpost.php?p=759122&postcount=3
Tobi
Guest190829
12-19-2005, 04:54 PM
@Danny.VBT
Does the hack the same like this tutorial explains?: http://www.vbulletin.com/forum/showpost.php?p=759122&postcount=3
Tobi
Yes, combining this hack with Chris's will allow this functionality with an even better way in managing it. Instead of hardcoding it in the template it's all done inside the forum manager.
Guest190829
12-19-2005, 04:56 PM
This is the error I receive:
Fatal error: Cannot redeclare construct_forum_columns() (previously declared in /home/username/public_html/forum/includes/functions_forumlist.php:312) in /home/username/public_html/forum/includes/functions_forumlist.php on line 312
my functions_forumlist.php looks like this (As it does not state in the instructions properly where to insert it so i inserted it right after the first instruction that is in the txt file)
if ($vbulletin->userinfo['field7'] == '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;
}
I'm ALWAYS encountering the above error just because of line 312 (function construct_forum_columns($parentid, $columncount))
:( How do I go about this and did i insert the new function in properly??
Using a completely new function_forumlist.php file apply the edit and then add the function I mentioned above at the bottom of the file. Make sure you do it before the
?>
And before any comments in the footer...
MSheraz86
12-19-2005, 05:14 PM
I've added that function at the bottom of the functions_forumlist.php and above the ?> code and thankfully NO Error this time, BUT no effect also :( It has no effect on my forum whatsoever. The subforums are staying the same :(.
Edit: Finally done it!! :D It's lookin gooooood now :D Thanks a lot guys! :D and Thanks Xenon for this MOST WANTED Mod! :D
Blackbeard
12-20-2005, 04:01 PM
<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" width="200">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</tbody>
</if>
</table>
Again iam asking for help, i have clicked the installed but noone seems to help, iam using the colbolt skin and i want to know how to change this bit as to not mess up my spacing
This is my nopost1,
what i want to do is add a image to each area with title and small description under the image, how do i do that, iam wanting to do this with my links section
fridayweb
12-20-2005, 04:26 PM
Someone e-mailed me asking how I had set up my columns with the graphics on my forumhome, and so I wrote this .txt file for them to share my info. I thought I'd post it here in case anyone else was interested. Cheers! :)
Evil X
12-20-2005, 04:53 PM
hey, why dont the forums show in colums when I do it to a forum with subforums?
why do colums only show on forumhome, and dont work on subforums
Cheertobi
12-20-2005, 06:58 PM
hey, why dont the forums show in colums when I do it to a forum with subforums?
why do colums only show on forumhome, and dont work on subforums
Because forumdisplay is not yet part of that hack!
Right now, it's just working on forumhome.
I'll add changes for forumdisplay later
Tobi
Evil X
12-28-2005, 09:27 AM
^thanks for answering my question, now if someone could hook the forumdisplay up thanks lol
Spookysalem
01-05-2006, 12:19 PM
Fab i have been looking for this for ages..
just one question what do i need to edit to center the forum icons..?
figured out the centering part.
just need to know how do i get a border around the columns..?
Installed*
Spookysalem
01-16-2006, 06:38 AM
Can anyone help me with the borders for this please...
Blaine0002
01-22-2006, 07:33 PM
Again iam asking for help, i have clicked the installed but noone seems to help, iam using the colbolt skin and i want to know how to change this bit as to not mess up my spacing
This is my nopost1,
what i want to do is add a image to each area with title and small description under the image, how do i do that, iam wanting to do this with my links section
try this
<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 />
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="200">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</if>
</tbody>
</if>
</table>
your just sticking the area you had before in the else area on the script. :)
d3fuse
01-23-2006, 02:10 PM
I am having a problem with the display of this. Nothing is equally aligned. How do I fix this?
-see attached file-
Xenon
01-23-2006, 03:30 PM
you have to remove the forum/posts/titles under every category hack, that's not a problem with my mod.
d3fuse
01-25-2006, 03:36 PM
Are these still visible "sections" still there for the non-column categories? Or removed completely?
Xenon
01-25-2006, 03:51 PM
um?
sorry i don't get what you mean?
d3fuse
01-25-2006, 07:03 PM
Ok, for the categories that will not be displayed in columns by your hack, will those still show "Forums/Posts/Titles/etc" or will it not be visible anymore with those as well?
Xenon
01-25-2006, 09:54 PM
well, you have to use conditions then, to show it there
my hack is written for a plain vb, and you are using another hack, which does not work together with mine correctly.
maybe someone who has installed both hacks can help you further?
d3fuse
01-25-2006, 11:35 PM
A condition sounds like the needed thing. How would I detect if it is set to columns or not? I know by default, the # of columns is set to 1. So, how would I go about doing that?
Xenon
01-26-2006, 10:54 AM
wll, just use the same condition that i have used already in my hack just add it on another place :)
<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>
CoralGeek
01-26-2006, 09:36 PM
I have the hack running fine with the default vB skin, but when I try to add to to the skin I'm actually uning on the site it's all messed up. I've spent the last hour trying to figure out how to add the template changes in forumhome_forumbit_level1_nopost to my template. Can anyone help? Here is a copy of my forumhome_forumbit_level1_nopost:
<table width="100%" style="background-image:url($stylevar[imgdir_misc]/cat_back.gif)" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="33" height="27" align="left" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_ls.gif" width="33" height="27" alt=" " border="0" /></td>
<td width="22" height="27" align="left" valign="top"><img src="$stylevar[imgdir_misc]/text_ls.gif" width="22" height="27" alt=" " border="0" /></td>
<td width="50%" class="tcat" style="background-image:url($stylevar[imgdir_misc]/cat_top_text_bk.gif)" align="left">
<div align="left" class="smallfont">
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><b>$forum[title]</b></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>
</div>
</td>
<td width="30" height="27" align="left" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_text_end.gif" width="30" height="27" alt=" " border="0" /></td>
<td width="50%" height="27" align="left" valign="top"><img src="$stylevar[imgdir_misc]/cat_back.gif" width="50%" height="27" alt=" " border="0" /></td>
<td width="10" height="27" align="left" valign="middle"><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></td>
<td width="20" height="27" align="right" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_rs.gif" width="20" height="27" alt=" " border="0" /></td>
</tr>
</table>
<!-- End top category table setup -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<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" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</tbody>
</if>
</table>
<!-- bottom table setup -->
<div class="ftr_bdr">
<table width="100%" class="thead" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="9"><img src="$stylevar[imgdir_misc]/btm_base.gif" width="100%" height="9" alt=" " border="0" /></td>
</tr>
</table>
</div>
<!-- End bottom table setup -->
<div class="spacer"></div>
Anyone have any ideas?
rex_b
01-27-2006, 01:19 PM
Installed on 3.5.3 and nothing happens.. NOTHING.
This is on plain jane vb here www.tripboards.com
Xenon
01-27-2006, 06:05 PM
actually your homepage looks as it should after you have isntalled that mod.
there are columns, so what else should happen???
monkeywarplane
02-02-2006, 04:22 PM
This is a great mod. I can't wait to install it and do something wrong and come back to this thread to ask questions! :)
No seriously, I love this mod.
Stuart
AKapadia
02-14-2006, 12:45 AM
Is this hack gone a work with 3.5.3 ? let me know i try but it just show me blank page after i edit that file..
Is this hack gone a work with 3.5.3 ? let me know i try but it just show me blank page after i edit that file..
It works with 3.5.3.
David_R
02-21-2006, 06:28 PM
how is this hack different from Arrange Sub-Forums in columns by tamarian ?
sorry for hijacking the thread, but i found both the hacks doing same work :ermm: :ermm:
Xenon
02-22-2006, 01:22 PM
erm, tamarians hack just displays the textlist below a forum in columns, not the forums below a category
erm, tamarians hack just displays the textlist below a forum in columns, not the forums below a category
One suggestion I would make is to put a check in the xml file so that it doesn't error when upgrading.
I upgraded a site from 3.0.7 and had to remove the querry from the xml file before I could install it.
does work on 3.5.4 or not ?
Xenon
03-14-2006, 12:44 PM
yes!
ubuntu-geek
03-15-2006, 12:59 PM
Any update to make this work with forumdisplay?
bada_bing
03-15-2006, 01:50 PM
How do I get the Last post, threads, post fields so that members can still see that there is activity in these forums?
Nice hack - Works perfectly on 3.5.2 !
Thx.
AlexUK
03-29-2006, 09:54 AM
Nice hack - Works perfectly on 3.5.2 !
Thx.
How did you make it to look like that?
Please share.
Blackbeard
03-30-2006, 08:16 PM
Please can some one just write us the text we need to place graphics into the columns like what Nzo has done, as i want to do this for my links section and place a arcade machine as one and a oil painting for my gallery in another
Nick King
03-30-2006, 09:17 PM
I would love to see some forumdisplay action going. It looks bad when I click on a catagory and have a huge stack of forums. I NEED the columns in catagories too.
AKapadia
04-12-2006, 12:36 PM
well i just install this hack and it look like this so i was wondering how can i make it that show last post under the categary name
My site
https://vborg.vbsupport.ru/external/2006/04/6.jpg
the way i want it to be look
https://vborg.vbsupport.ru/external/2006/04/7.jpg
Blackbeard
04-14-2006, 02:27 PM
This is my code in columcell, but iam having alittle problem. This is the description layout
This forum shows what hacks i have installed and where to find them on other forums Threads: 3 Replies: 3
As you can see, threads and replies merge into the description and i dont seem to be able to seperate them
Can someone help
<td><TABLE BORDER=0><TR><td colspan="1" VALIGN="TOP">
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">
<img src="$stylevar[imgdir_misc]/$forum[forumid].gif" alt="$forum[title]" border="0" vspace="2 px" hspace="2 px" align="left"/></a></td>
<if condition="$forum[link] != ''">
<td width="330" VALIGN="TOP">
<br>
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]" target="_blank"><strong>$forum[title]</strong></a>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
</td>
<else />
<td width="330">
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
<br>
<br>
<div class="smallfont">$forum[description] <strong>Threads:</strong> $forum[threadcount]
<strong>Replies:</strong> $forum[replycount]
<br>
<br>
<div align="$stylevar[left]">
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if> <phrase 1="member.php?$session[sessionurl]find=lastposter&f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]"><b>$vbphrase[by_x]</b></phrase>
<a href="showthread.php?$session[sessionurl]goto=lastpost&t=$lastpostinfo[lastthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
</div>
</if></TD>
</if>
</TR></TABLE>
imported_infitech
04-18-2006, 07:02 PM
Sorry if i'm only new yo editing php files. No wwhat do u mean "NOW ADD THIS FUNCTION"? where do i put that code? at the end of the file?
AKapadia
04-19-2006, 07:44 PM
yes put the end of the file..
imported_infitech
04-20-2006, 10:34 AM
this is what i get. Is there any way i can get it to look like it does on talkfreelance?
imported_infitech
04-22-2006, 12:59 PM
well i just install this hack and it look like this so i was wondering how can i make it that show last post under the categary name
My site
https://vborg.vbsupport.ru/external/2006/04/6.jpg
the way i want it to be look
https://vborg.vbsupport.ru/external/2006/04/7.jpg
Same here. Looking to do the same thing
WritersBeat
04-26-2006, 07:48 AM
My sub-forums will not display on the main-page anymore (if I set column to 2 for a category)
Why is this?
(edit)
I give up. This is making my head hurt trying to convert my forum. I just cannot do it.
WritersBeat
04-28-2006, 10:04 AM
How do I show subforums with this hack (below a forum's description) this is on forumhome.
I tried adding this to columncell
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>:<br /> $forum[subforums]</div></if>
but it doesn't work.
Frankie I
04-28-2006, 12:05 PM
I am newbie and I am trying to install this hack and I am having troubles. Is one supposed to install the code manualy, or import this hack through the import/upload plugin option on the admincp?
Xenon
04-28-2006, 03:47 PM
you have to import the product, and do the filechanges mentioned within the isntall file
WritersBeat
04-28-2006, 04:49 PM
Xenon, what about my question? I want to show the subforums on the forumhome below the forumdescription.
Xenon
04-29-2006, 04:57 PM
well, that should work, maybe the subforum listing option is disabled on your board, or the depth is set to low
WritersBeat
04-29-2006, 05:41 PM
Well it works when I resetthe columns back to 1.
So... it's only not showing when the colum hack is in effect.
Frankie I
04-30-2006, 02:35 PM
I am trying to change the code neccesary to use this hack/mod. I am having trouble finding the code so I can change it.
Could someone please reply as to where I can find the code.
WritersBeat
05-01-2006, 08:32 AM
Any help please? I really need the subforum help.
Xenon
05-02-2006, 06:05 PM
hmm, in the construct function, find the line:
global $vbulletin, $stylevar, $vbphrase, $show;
and change into
global $vbulletin, $stylevar, $vbphrase, $show, $depth;
does it work now?
WritersBeat
05-03-2006, 08:30 AM
Nope :(
Xenon
05-03-2006, 12:16 PM
hmm, sorry then i have no idea right now
WritersBeat
05-04-2006, 03:48 AM
*sigh* oh well
Frankie I
05-08-2006, 01:04 PM
I have just installed this hack and all is well ecept one formating problem.
The third column (or the last column if you do not have three columns) is flush to the right of the screen creating a spacing and formating issue.
Does anyone know how to fix this?
Below is a link to my forum:
http://www.israelbbb.com/forum
Xenon
05-08-2006, 01:51 PM
erm, that is not per default, the setting is two forums on your board, and you manually add a third column, most likely because of a misformed template edit
BlackxRam
05-15-2006, 06:32 AM
IS it possible to not have to do Code Changes for this modification? I promised myself I wouldnt install anything anymore that i had to hack my files... makes upgrading a complete pain. ALthough I might have to break it for this mod.
erjavid
05-16-2006, 10:27 PM
Sorry for my inglish, i'm italian.
This is my template template forumhome_forumbit_level1_nopost
<div class="forbg">
<div class="forr">
<a style="float:left;" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat1{$collapseimg_forumid}.gif" alt="" border="0" /></a>
<div class="fortitel"><div class="frl"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a></div><if condition="$show['subforums']"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</if></div>
</div>
</div>
<div class="c_border_left">
<div class="c_border_right">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$childforumbits">
<tr align="center">
<td class="t_bg_left" width="35"> </td>
<td class="t_bg" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="t_bg" width="240">$vbphrase[last_post]</td>
<td class="t_bg" width="7%">$vbphrase[threads]</td>
<td class="<if condition="$vboptions[showmoderatorcolumn]">t_bg<else />t_bg_right</if>" width="7%">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="t_bg_right" width="12%">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</tbody>
</table>
</if>
</div>
</div>
<div class="c_border_bottombg">
<div class="c_border_bottom_left">
<div class="c_border_bottom-right">
</div>
</div>
</div>
<div style="padding-top:5px;"></div>
how I modify it?
Front-Door
05-21-2006, 01:17 PM
i've done everything the readme file said and i got this:
http://i22.photobucket.com/albums/b330/J33322/TBH.jpg
I was hoping someone could tell me how to get something like this:
http://i22.photobucket.com/albums/b330/J33322/SF.jpg
Im sure the Images are from the custom status image hack which im going to install shortly. but how do i centerize the image and put that text in? and who posted last and where?
turkforum
05-24-2006, 08:51 AM
how I modify it?
Same here..Also I having problem with uplouding the product..
Database error in vBulletin 3.5.3:
Invalid SQL:
ALTER TABLE forum ADD subforumcolumns TINYINT(3) UNSIGNED DEFAULT '1' NOT NULL;
MySQL Error : Duplicate column name 'subforumcolumns'
Error Number : 1060
Date : Wednesday, May 24th 2006 @ 02:49:07 AM
Script : http://www.turkyasam.com/admincp/plugin.php
Referrer : http://www.turkyasam.com/admincp/plugin.php?do=productadd
IP Address : xxxxxxxxxx
Username : xxxxxxxxxxx
Classname : xxxxxxxxxx
Xenon
05-24-2006, 11:42 AM
go to phpmyadmin and manually delete the subforumcolmns table, then install the product
kartik786
05-28-2006, 09:12 AM
hi!
i am not able to specify the number of columns, wher do u do it.
I tried forum manager > edit forum > didnt find any field to edit there...
can some help me out..
snap shot of how it looks wit a small mistake which me not able to find..
http://geniusdreams.com/problem_hack.gif
Xenon
05-29-2006, 11:35 AM
it is on the edit forum form, at the very end
if it's not there for you, try to redownload the hack and reinstall it
satfox360
06-29-2006, 05:36 PM
Hello there,
Do I upload the XML files also or just make the changes to the includes/functions_forumlist.php ?
I have downloaded something different on one of your older post but It guess it would be better use this new post for the 3.5.
Thank you in advance for any help you can provide.
satfox360
06-29-2006, 06:29 PM
Fatal error: Call to undefined function: construct_forum_columns() in /home/httpd/vhosts/ftalife.com/httpdocs/includes/functions_forumlist.php on line 296
This is what was shown when you went to my website.
satfox360
06-29-2006, 08:21 PM
Hello Xenon,
I'm very sorry but I'm kind of a noobie to the add-ons and hacks.
I'm willing to make a donation via paypal and encourage anyone else to do the same for very descriptive instructions in a noobies prospective.
I have read through this whole post and think that your hack is great. I've seen how well it's been working for others and can't wait to get it on my forum.
I've seen you refer to install the product. Is this the xml?
Thank you for your time on this matter.
Bobby
satfox360
07-01-2006, 05:08 AM
I figured out how to install the product with the "manage products" in the admincp.
I have followed all of the other instuctions and am still having some small problems. When I change the number of columns to 3 I get the err below. If I change it back to 1 there are no problems with the home page but still no columns.
Fatal error: Call to undefined function: construct_forum_columns() in /home/httpd/vhosts/ftalife.com/httpdocs/includes/functions_forumlist.php on line 296
Any suggestions anyone?
Thank you in advance for any assistance.
satfox360
07-01-2006, 05:27 AM
290 { // no permission to view current forum
291 continue;
292 }
293
294 if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
295 {
296 $childforumbits = construct_forum_columns($forum['forumid'], $forum['subforumcolumns']);
297 }
298 else if ($subsonly)
299 {
300
301 // ###################### Start construct_forum_columns #######################
satfox360
07-01-2006, 09:52 PM
After running through it over and over I ran into another problem when deleting the product.
Invalid SQL:
ALTER TABLE forum ADD subforumcolumns TINYINT(3) UNSIGNED DEFAULT '1' NOT NULL;
MySQL Error : Duplicate column name 'subforumcolumns'
I seen that Xenon told someone else to go to phpmyadmin and manually delete that table.
This brought a whole new task on to a noobie like me. So I had to learn how to install the phpmyadmin and it was tough to start.
Here is a good spot to learn about that.
http://www.aota.net/PHP_and_MySQL/phpmyadmin.php4
I was still having problems downloading it correctly so instead of using their config.inc.php layout I used the (libraries/config.default.php) and just resaved it as config.inc.php in the main folder not in the libraries folder.
Also if you try to save it as config.inc in the save as it saves as config.php for some reason. So I had to "save as" name it config.inc.php then change the save as type to php.
Be sure to follow the instructions exactly. Also if you are new you should start with How To Install a vbulletin Hack: Guide to Newbies. Learned quite a bit there.
https://vborg.vbsupport.ru/showthread.php?t=39142
Thanks to Xenon and all of the other contributors!
mIRCnet
07-06-2006, 06:00 AM
After installing this hack in my company forum , my manager says "Thanks to the programmer of this hack, now we have a special look" , and he never think to go back to the old normal style
Thanks a bunch Xenon
Cheertobi
07-06-2006, 06:50 AM
Does anyone use this with vB3.6?
Tobi
Allan
07-19-2006, 08:06 PM
Does anyone use this with vB3.6?
Tobi
yes, it work with vB3.6 ?
thenetbox
07-20-2006, 12:48 AM
yes, it work with vB3.6 ?
I'm using 3.6 and it works :)
Allan
07-20-2006, 05:23 AM
I'm using 3.6 and it works :)
Thanks ;)
thenetbox
07-21-2006, 11:49 AM
^ no problem :)
Does any one know how to have a space in between the blocks like on this persons forum http://www.tripforums.com/
Blocks that look seperate from each other?
Allan
07-21-2006, 08:15 PM
Don't work on vB3.6 RC1:
Fatal error: Cannot redeclare fetch_forum_lightbulb() (previously declared in c:\program files\easyphp1-8\www\forum\includes\functions_forumlist.php:315) in c:\program files\easyphp1-8\www\forum\includes\functions_forumlist.php on line 315
A idea to problem ?
thenetbox
07-21-2006, 09:12 PM
Very strange. It is working on mine ( http://www.darkforum.com/ ) on the bottom under "The Pen".
It might be a different plugin causing the error?
What is on line 315 in functions_forumlist.php?
Allan
07-21-2006, 09:48 PM
Line 315:
// ###################### Start getforumlightbulb #######################
// returns 'on' or 'off' depending on last post info for a forum
function fetch_forum_lightbulb(&$forumid, &$lastpostinfo, &$foruminfo) <== line 315
{
Allan
07-22-2006, 04:49 PM
It work !
It's necessary to put the function at the beginning of the php file
snowlion
07-25-2006, 09:48 AM
It work !
It's necessary to put the function at the beginning of the php file
can you post it here ?
i want to use this mod for specific style and forum(not use for all forums), can anyone modified to do this?
soletrader
08-09-2006, 05:18 AM
can anyone post the working hack please?
mano1.com
08-09-2006, 02:07 PM
I will give this a try later, thanks.
vitnuce
08-11-2006, 10:21 AM
It doesn't work with v3.6.0 Gold !?
thenetbox
08-11-2006, 11:25 AM
It doesn't work with v3.6.0 Gold !?
I'm not sure. It broke after I updated it to gold but I think it might have just been some over written templates. I'll try to reinstall it and then I think that it would work after that.
vitnuce
08-12-2006, 09:12 AM
I've installed a fresh v3.6.0, then install it, but after i edit the category, change the value into the ammount of columns i want, but ..nothing's happened :-?
thenetbox
08-12-2006, 08:24 PM
I've installed a fresh v3.6.0, then install it, but after i edit the category, change the value into the ammount of columns i want, but ..nothing's happened :-?
Did you reedit the includes/functions_forumlist.php because that is all I had to do and it started working again.
vitnuce
08-13-2006, 09:54 AM
Oh yes, it only takes effect with the category, not the forum :)
thenetbox
08-13-2006, 04:23 PM
ah yes :) I think that's right. It only works on my forumhome.
Spookysalem
08-18-2006, 07:37 AM
Can anyone help me out with this please.. The hack works fine but i would like to add a border around each catagory. I cannot seem to find the place to add the code or indeed which code needs to be added.
I have seen it done using this hack on a couple of forums...
Thanks in advance.
teedizz
08-18-2006, 08:00 PM
Xenon.... do plan on releasing this for 3.6 bro?
vitnuce
08-19-2006, 02:56 AM
Xenon.... do plan on releasing this for 3.6 bro?
https://vborg.vbsupport.ru/showthread.php?t=118125 :)
snowlion
08-19-2006, 03:23 AM
can anyone help me out to hack this mod with 3.6.0 gold ?
GreysAnatomy
08-25-2006, 02:14 PM
Did you reedit the includes/functions_forumlist.php because that is all I had to do and it started working again.
I tried this with my 3.6.0 as well and it still doesn't work. It keeps showing the subforum as a list without a border. :confused: I've installed the Forumhome Category Spacing (https://vborg.vbsupport.ru/showthread.php?t=123530) on my board and had to change the code inside the forumhome_forumbit_level1_nopost template to this:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<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>
<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%;">
</table>
</td>
</tr>
<else />
</if>
</tbody>
</if>
<tr align="center">
<td class="thead" width="35"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead" width="65">$vbphrase[threads]</td>
<td class="thead" width="65">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="120">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
<tr><td class="thead" style="line-height: 0; padding: 0; margin: 0;" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"><img src="$vboptions[cleargifurl]" alt="" width="1" height="12" /></td></tr>
</tbody>
</if>
</table>
<div style="padding:0px 0px 16px 0px;"></div>
Can anyone help me out here? I think the code inside this template is faulty. :cross-eyed:
AdmiralSpock
08-31-2006, 03:03 PM
I just used the Category Spacing hack that uses a product. I couldn't get it to work with the one that edited the actual templates. :)
The-Ensemble
08-31-2006, 05:23 PM
Are there any plans for someone to take over xenon's hacks/mods? I really want to put this on forum display but i dont know how and can't find a find or stuff for it.
soletrader
09-02-2006, 11:52 AM
Someone please make this work on 3.6.0
Cheertobi
09-02-2006, 11:54 AM
Someone please make this work on 3.6.0
This works with 3.6!
soletrader
09-02-2006, 03:47 PM
This works with 3.6!
Where do I add the function in functions_forumlist.php? Can I add it anywhere or does it have to be placed somewhere specific?
Cheertobi
09-02-2006, 06:28 PM
Hi,
just put it at the end of the file, right before
?>
Tobi
soletrader
09-03-2006, 04:21 AM
I cant get it to work. I get a syntax error when I edit my functions_forumlist
Cheertobi
09-03-2006, 06:25 AM
What did you copy to your functions_forumlist.php and where did you copy it?
Allan
09-03-2006, 07:27 AM
I cant get it to work. I get a syntax error when I edit my functions_forumlist
https://vborg.vbsupport.ru/showpost.php?p=1035510&postcount=178
Cheertobi
09-03-2006, 09:47 AM
@Allan, I copied it at the end of the file and it works fine ;)
Brandon Sheley
09-05-2006, 01:02 AM
nice hack, with a little tweaking, it works with 3.6 :)
evenmonkeys
09-06-2006, 07:14 AM
I've been toying with this for about an hour now, and I just can't get it working at all. Putting the code at the top of the file hasn't fixed the problem. Any template modification I make for it hasn't worked yet.
Can someone make a detailed set of installation instructions for those of us who can't get it working? It'd really be appreciated.
Cheertobi
09-06-2006, 09:41 AM
What exactly does not work?! Did you get any errors? Did you set "Show Subforums in # of columns" setting in your admincp?
Tobi
GreysAnatomy
09-06-2006, 11:35 AM
I'm using it together with the forumhome spacing hack and edited the forumhome_forumbit_level1_nopost like this:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<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>
<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>
<tr align="center">
<td class="thead" width="35"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead" width="65">$vbphrase[threads]</td>
<td class="thead" width="65">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="120">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
<tr><td class="thead" style="line-height: 0; padding: 0; margin: 0;" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"><img src="$vboptions[cleargifurl]" alt="" width="1" height="12" /></td></tr>
</tbody>
</if>
</table>
<div style="padding:0px 0px 16px 0px;"></div>
Now, my forumhome is all messed up. Can anyone help me with this? I think it's because of this template. :(
Cheertobi
09-06-2006, 11:47 AM
I'm using it together with the forumhome spacing hack and edited the forumhome_forumbit_level1_nopost like this:
Now, my forumhome is all messed up. Can anyone help me with this? I think it's because of this template. :(
Can you please post the url to the hack you use?! Looks a bit messy your template ;)
Tobi
Brandon Sheley
09-06-2006, 11:49 AM
if someone needs help on this, you can pm me with your site, and please include a link to this thread..
you can see its working fine on my site http://forum.vbulletinsetup.com ;)
GreysAnatomy
09-06-2006, 12:07 PM
Can you please post the url to the hack you use?! Looks a bit messy your template ;)
Tobi
I know! And not only the template looks messy, my whole forum does. :( So anyway, here's the forum spacing hack: Click (https://vborg.vbsupport.ru/showthread.php?t=123530)! I also added the optional template change at the bottom of the .txt file.
I had to remove the code for this columns hack and my template looks like this now:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<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>
<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>
<tr align="center">
<td class="thead" width="35"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead" width="65">$vbphrase[threads]</td>
<td class="thead" width="65">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="120">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
<tr><td class="thead" style="line-height: 0; padding: 0; margin: 0;" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"><img src="$vboptions[cleargifurl]" alt="" width="1" height="12" /></td></tr>
</tbody>
</if>
</table>
<div style="padding:0px 0px 16px 0px;"></div>
Cheertobi
09-06-2006, 12:22 PM
Mmmh, I do not use this hack, anyway, try this, maybe it works:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<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>
<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}">
<tr align="center">
<td class="thead" width="35"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead" width="65">$vbphrase[threads]</td>
<td class="thead" width="65">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="120">$vbphrase[moderator]</td>
</if>
</tr>
<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>
<tr><td class="thead" style="line-height: 0; padding: 0; margin: 0;" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"><img src="$vboptions[cleargifurl]" alt="" width="1" height="12" /></td></tr>
</tbody>
</if>
</table>
<div style="padding:0px 0px 16px 0px;"></div>
Tobi
GreysAnatomy
09-06-2006, 12:44 PM
I'm getting the same result like before. But it's not that important anyway. I' think I'm gonna wait until it's released for 3.6.0. :) Thanks anyway!
Cheertobi
09-06-2006, 12:48 PM
This hack will not be released for 3.6, I think!
Cheertobi
09-06-2006, 12:51 PM
Ah, can you maybe send a link, that I can have a look, how the forums are messed up?!
evenmonkeys
09-06-2006, 08:31 PM
What exactly does not work?! Did you get any errors? Did you set "Show Subforums in # of columns" setting in your admincp?
Tobi
I'm not getting any errors at all. The xml imports fine. The edit to the php file goes through fine. The templates seem to look as though they would work. When I set the forum to have x columns, it doesn't change anything. Doesn't even change anything. I at least expected something to go wrong if it didn't work.
Yeah... nothin.
Cheertobi
09-06-2006, 08:35 PM
Do we talk about xinnyburt.com?!
evenmonkeys
09-06-2006, 08:45 PM
That would be correct.
Cheertobi
09-06-2006, 08:46 PM
Ok, which forum did you set have columns?!
evenmonkeys
09-06-2006, 08:53 PM
None that are visible. I'm going to try something else real quick.
Cheertobi
09-06-2006, 08:56 PM
If I can help you and you do not mind, pm me an account where I can access the forummanagement and the templatemanagement and I can have a look.
Tobi
evenmonkeys
09-06-2006, 09:03 PM
What I've done is in the zip file you download from this thread. My board is as default as they come.
Cheertobi
09-06-2006, 09:07 PM
What I've done is in the zip file you download from this thread. My board is as default as they come.
Then everything should work! Nothing else is what I did!
Have you tried to set a categorie to have columns?
Tobi
evenmonkeys
09-06-2006, 11:40 PM
Meh. I give up. I'll just think of a different way to go about it. I think it'd be best if someone just made an official release for 3.6.0.
glenvw
09-11-2006, 02:19 PM
Me too. Anxious to see this for 3.6
Cheertobi
09-11-2006, 06:30 PM
I doubt that there will be an update for 3.6! But it still works, ...
glenvw
09-11-2006, 06:41 PM
It does? With no problems? That would be great.
Cheertobi
09-11-2006, 08:01 PM
It does? With no problems? That would be great.
Yes, it does ;)
glenvw
09-12-2006, 03:04 PM
So I made the changes in the templates and the file in includes.
Then I see there is a file included called product-xenon_forumcols.xml
Is this a plug in that is supposed to be imported?
Cheertobi
09-13-2006, 04:30 AM
Yes, you have to import this product...
Tobi
Kohhal
09-14-2006, 09:40 AM
Working on 3.6.1 :)
Spookysalem
09-19-2006, 08:52 AM
Can someone help me to get this to work on 3.6.1, i am also using the custom statusicons hack too...
thankyou in advance.
JollyJack
10-06-2006, 12:49 PM
Iam running 3.62 with skin splashblue from Transverse Styles
this is my forumhome_forumbit_level1_nopost
<if condition="$childforumbits">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" style="border-bottom: 0" width="100%" align="center">
<tr>
<td class="tcat" colspan="6"><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>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"> - $forum[description]</if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
<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" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
<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>
</table>
</if>
<br />
what do i need to remove to get rid of last post, threads & posts in the forums cats header
Look Here (http://www.computeranswer.co.uk/forums/index.php) to see what i mean
Spy_Master
10-08-2006, 10:20 AM
I'm trying to get this hack to work on my forum which was just upgraded to 3.6.2 The forums used to be arranged in a grid of 4. Four horizontally and Three vertically. However, now they're all in a line like this (http://img.photobucket.com/albums/v633/spy_master/theaddictedforum.png). Everytime we've upgraded before it's been fine and only required a few tweaks but this time the hack doesn't appear to be working at all.
Sorry. After reinstalling, uninstally, disabling and enabling the hack a few times it decided to fix itself. No idea what went wrong but it came right in the end.
MediaxLive.com
10-14-2006, 02:59 AM
soo what's good with the forum display?
Ascor
10-16-2006, 01:20 AM
Installed an 3.6.2, all work nice thank you :)
Ascor
10-16-2006, 01:27 AM
Can someone help me to get this to work on 3.6.1, i am also using the custom statusicons hack too...
thankyou in advance.
try danny.vbt solution here, i have this running at 3.6 and work fine ;) :
https://vborg.vbsupport.ru/showthread.php?t=99829&page=7
Please can you share what you make for Medico-Legal Lab and The Library
categoris at your site ?
I wish to make the same: last post info, image in the midle etc ..
imported_infitech
10-27-2006, 03:50 AM
Cannot redeclare construct_forum_columns() (
Greek Wizard
10-30-2006, 04:07 AM
Working on 3.6.2 with exact instructions being followed.
I agree.. works great on 3.6.2 on a custom style, after a lot of searching and reading.
Anyone figure out how to add the double click (mark posts read) fuction in 3.6.x?
Seems my icons are not 'clickable'
imported_infitech
10-30-2006, 11:00 AM
Cannot redeclare construct_forum_columns() (
anyone?
Greek Wizard
10-30-2006, 02:10 PM
I agree.. works great on 3.6.2 on a custom style, after a lot of searching and reading.
Anyone figure out how to add the double click (mark posts read) fuction in 3.6.x?
Seems my icons are not 'clickable'
As mentioned, I have it working really well.
that said, i always like to improve.
i would like to have:
Forum Name
Catagory Icon
Description
Last post
Posted by
All top to bottom, as opposed to left to right..
something like this:
https://vborg.vbsupport.ru/showpost.php?p=936706&postcount=131
Any ideas?
Cheertobi
10-30-2006, 04:47 PM
Just check your "old" forumhome template and copy the variables like $forum[lastpostinfo] and so on...
Greek Wizard
11-01-2006, 09:53 AM
Just check your "old" forumhome template and copy the variables like $forum[lastpostinfo] and so on...
Ok I got that part.
Now I was wondering how I can make is "centered" like I posted in my last post
The default is image on the left, then the Forum Name on the right
I would like it Image in the middle, Forum name above (or below) it and then the info.
i guess it's just a matter of moving things around, which is cool, but how do I make them centered instead of left (know what I mean?)
ShadowOne
11-01-2006, 12:41 PM
What Happened To The Way Where you Can Choose Which Forums You Want In Columns?
N-0p3rz
11-09-2006, 10:39 AM
Hmm, would it be possible to let's say.. Change the way the column cell's look on one category compared to another?
chick
11-12-2006, 05:20 PM
works perfectly for me. http://www.automotivearena.com or a direct link to the forums http://www.automotivearena.com/forums/
----------------------
none of your forum links work from this page
http://www.automotivearena.com/forums/index.php
see
http://www.automotivearena.com/forums/f740-fwd.html
Last Post does work
MadRhino2323
11-12-2006, 10:58 PM
Hey Guys and Gals,
The HACK is awesome! Looks great!
One question.. How do I center the columns?
Right now I have 3 columns, everything looks great, except it the hack itself is aligned to the left.
Ty!
Gregg
Greek Wizard
11-14-2006, 10:45 AM
Hey Guys and Gals,
The HACK is awesome! Looks great!
One question.. How do I center the columns?
Right now I have 3 columns, everything looks great, except it the hack itself is aligned to the left.
Ty!
Gregg
https://vborg.vbsupport.ru/showpost.php?p=851703&postcount=91
imported_infitech
11-14-2006, 04:16 PM
is there any way you can come out with a version of this hack for 3.6.3 that doesnt require php file edits?
also it'd be great if it didnt require uploading a product, but just gave instructions on template edits.
if any of this is possible please reply to this post with a quote.
MadRhino2323
11-14-2006, 05:39 PM
https://vborg.vbsupport.ru/showpost.php?p=851703&postcount=91
Thanks Greek, but that's not what I am after!
I know how to align the text and icon WITHIN the columns.
What I need to know is how to CENTER the 3 columns WITHIN the field itsellf.
My Left COLUMN is pretty close to the left side of the FORUM border. But, there is a noticeable space between the right column and the right side of the FORUM border!
G
imported_infitech
11-14-2006, 06:51 PM
im not sure if i understand what you mean...... are these plugins im creating?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.