View Full Version : Forums arranged in columns on forumhome
Xenon
01-08-2004, 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.
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 :)
You can apply the changes to forumdisplay as well if wanted :)
MindTrix
01-09-2004, 04:27 PM
Nice one Xenon, another quality hack as always. now, i KNOW alot of people want this ;)
FleaBag
01-09-2004, 04:29 PM
Haven't had use for this in the past, but now with about 50 hosted forums this will save a little space on forumhome. :)
assassingod
01-09-2004, 04:29 PM
Time to port my add-on;)
*arie
01-09-2004, 04:31 PM
Thanks!, i've been waiting for this. <333
Xenon
01-09-2004, 04:34 PM
Time to port my add-on;)
:)
that reminds me of adding the addon things to vb.org which i have planned ;)
*arie
01-09-2004, 05:55 PM
okay, i'm getting an error... it says:
then add this new function to the file:
Everytime I add what was below to the functions_forumlist.php it'll give me a parse error on my forum index. Any specific line to drop it in?
corsacrazy
01-09-2004, 07:22 PM
what does it look like if the forum that is aligned in a coloumn has posts in it ? does that number get displayed
MindTrix
01-09-2004, 07:28 PM
*arie ---- you need to edit includes/functions_forumlist.php like it says in the instructions, then for the code underneath the line you just showed up there, Copy it all and place it above the ?> Tag at the bottom of the file.
Corsacrazy --- I cannot remember exactly, but there may be more information over in the vB2 thread, of this hack. Maybe try looking there for your answer, sorry i couldnt help more.
surfhog
01-09-2004, 08:11 PM
this looks real nice, but I tired this on me learning curve on vb2 and could not get it to work :( hopefully I might have another go with RC2, if it works on RC2 that is? :)
thanks
Xenon
01-09-2004, 08:15 PM
@surfhog: this version work better than my old vb2 solution, as with template conditionals and all, there are some improvements to use :)
@corsacrazy: if you look closer into the construct_column function, you will see, that postcount/threadcount/description is parsed, so you just have to add it to the columncell template and it'll show :)
corsacrazy
01-09-2004, 08:29 PM
cheers one more thing, if i do add the parsed selection u mentioned and the forum is private will ir reconize this and show the private text instead of the info ?
Xenon
01-09-2004, 08:34 PM
you could answer this question yourself if you would have looked at the code ;)
else if (!($forumperms & CANVIEW) AND $vboptions['hideprivateforums'] == 0)
{
$forum['lastpostinfo'] = $vbphrase['private'];
}
so yes :)
corsacrazy
01-09-2004, 08:36 PM
sotty im not lazy honest just dont download hacks til i know its what my forum needs, appriciate ur effots mate
*arie
01-09-2004, 08:46 PM
*arie ---- you need to edit includes/functions_forumlist.php like it says in the instructions, then for the code underneath the line you just showed up there, Copy it all and place it above the ?> Tag at the bottom of the file.
Thanks, that worked. :)
MindTrix
01-09-2004, 09:39 PM
Glad to hear it helped :)
gmarik
01-09-2004, 10:51 PM
it is rather a good hack
VampireMan
01-09-2004, 11:15 PM
I like this hack , there's one thing i would love to see change in this.
I have a members gallery forum that has just links as sub-forums , can this hack be altered for links as well as forums ?
Would be brilliant as there's about 30 links & have a fair page size.
Cheers
Chris
Xenon
01-10-2004, 10:56 AM
Well, you know forums can actually be links, so just create some link forums as the subforums.
as you can change the desing within the template, it should be possible as well :)
DuffMan
01-10-2004, 03:16 PM
Great hack. I got it installed and working on my test boards. Can't wait for the forum image addon.
very nice Stefan, but you forgot to add 'forumhome_forumbit_columncell' to the global templates in index.php. It doesnt get cached atm. :)
MaDCaT75
01-11-2004, 04:11 AM
Now all we need are custom on/off icons for it and then i'll port my custom header bit hack :p
Xenon
01-11-2004, 12:55 PM
very nice Stefan, but you forgot to add 'forumhome_forumbit_columncell' to the global templates in index.php. It doesnt get cached atm. :)
i know, i was just to lazy to write this step into the install file ;)
Defray Prod
01-12-2004, 12:26 AM
Thanks very good hack
Cassidy
01-13-2004, 06:54 PM
If it doesnt already can we have the latest post underneath the name and maybe a shorter version of the description?
Xenon
01-13-2004, 07:50 PM
the last post info is parsed, so you can add it to the template yourself if you want to
for a shorter description find this:
if (!$vboptions['showforumdescription'])
{ // blank forum description if set to not show
$forum['description'] = '';
}
and below add:
$forum['description'] = substr($forum['description'], 0, 50);
to just get the first 50 chars of a description
Interesting looking hack! I have one category that has grown and now has 23 forums in it.
Question 1: "Sub-Forums" has been referred too, but by looking at the screen shot it appears that is puts all forums in a category into the column mode. Is this correct or just a forum that has 1 or more sub-forums?
Question 2: If it indeed only works with forums that have sub-forums, can you specify which forum(s) that you want to do this in?
Sorry for the dumb questions, but it's been one of those days. Maybe I'm not seeing the forest for the trees!
Thanks all!
Dan
MindTrix
01-17-2004, 11:36 PM
All sections are meerly put into the way it is shown in the screenshot, if these sections have sub sections, i believe you will have to go inside to see them.
As for specifying what forum you want to do this with, the answer is yes :)
Xenon
01-17-2004, 11:56 PM
As Mindtrix already posted, you can specify which forums have their subforums ordered in columns.
on that screenshot i entered to show the subforums of my 2 categories to show up in that specific columns, but you can change which one's subforums show up that way.
But note, this just works on Forumhome, on forumdisplay it will show all forums the traditional way.
also i have not tested about how nested forums will look like if you have enabled to display more than two levels on forumhome, maybe it would be worth a try someday :)
MaDCaT75
01-20-2004, 05:19 AM
@corsacrazy: if you look closer into the construct_column function, you will see, that postcount/threadcount/description is parsed, so you just have to add it to the columncell template and it'll show :)
I really do not understand where to find the construct_column function :confused:
Xenon
01-20-2004, 02:52 PM
it's spelled construct_forum_columns
Okiewan
01-20-2004, 05:16 PM
Having some difficulty figuring this one out...
I use the category spacing mod, so my level_one_no_post looks like this:
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
<td class="thead" width="30"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="125">$vbphrase[last_post]</td>
<td class="thead" width="55">$vbphrase[threads]</td>
<td class="thead" width="55">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead" width="100">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
<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>
Any idea how to combine these two mods?
Xenon
01-20-2004, 09:21 PM
you just have to replace the $childforumbits with that
<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>
Okiewan
01-20-2004, 09:30 PM
Thanks for the reply!
Only one thing still wrong, see attachment.
Xenon
01-20-2004, 11:11 PM
replace
<else />
$childforumbits
</if>
with
<else />
<tr align="center">
<td class="thead" width="30"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="125">$vbphrase[last_post]</td>
<td class="thead" width="55">$vbphrase[threads]</td>
<td class="thead" width="55">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead" width="100">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</if> and remove the part i added from the other appearance..
Okiewan
01-20-2004, 11:56 PM
and remove the part i added from the other appearance..
confused...? (sorry!)
Xenon
01-21-2004, 12:29 AM
<tr align="center">
<td class="thead" width="30"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="125">$vbphrase[last_post]</td>
<td class="thead" width="55">$vbphrase[threads]</td>
<td class="thead" width="55">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead" width="100">$vbphrase[moderator]</td>
</if>
</tr>
that part should be removed from my first post and added to the place i told at the second post :)
Okiewan
01-21-2004, 01:19 AM
Perfect... thanks for all the help :)
Xenon
01-21-2004, 03:49 PM
:)
you're welcome
I too have the separate catagory box hack and applied the fix you show above. Everything looks and works great however my expand and collapse buttons do not operate now for any of the catagories.
BTW, very nice hack indeed. This sure is going to save a lot of screen real estate for my forums when I get them updated!
Thanks!
Dan
Here is my level1_nopost code.
<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" width="30"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="240">$vbphrase[last_post]</td>
<td class="thead" width="55">$vbphrase[threads]</td>
<td class="thead" width="55">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead" width="100">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</if>
</tbody>
</if>
When I was pasting the code changes in, I duplicated the following code by not pasting on the correct line. :nervous:
Removed the dup code and I can now collapse/expand catagories.
Thanks!
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
To give the columnized catagory a similar look as my regular catagories, I added one small bit of code to the level1_nopost template.
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$forum['subforumcolumns'] > 1">
<tr>
<td class="thead" width="100%">By Manufacturer</td>
</tr>
Xenon
01-23-2004, 01:44 PM
nice additions :)
surfhog
01-23-2004, 02:17 PM
forgive me for asking :o has the image addition part been written yet?
as i said in a previous post, i do like this modification ;) and i am waiting for the image part LOL
NTLDR
01-23-2004, 02:35 PM
The image is just a template conditional:
<if condition="$forum['forumid'] == X"><img src="x" alt ="zx" /></if>
Blackbeard
01-23-2004, 03:33 PM
Are we going to get the image addon for this one?
Xenon
01-23-2004, 10:48 PM
as it's just a template edit as NTLDR posted, the answer is no :)
if you don`t mind to change first post attachements for us, couse after installation got a lot of trouble and need to go check topic to fix it...
Thanks!
Xenon
01-25-2004, 12:22 AM
erm, no i won't change the hack instructions, as the hack is working, if you apply any of the additional things within this threads, you have to do that on your own risk, as it's not part of my hack and therefore not beeing added to the instructions
ok, got it now... sorry! ;)
Xenon
01-25-2004, 07:50 PM
:)
good to hear :)
MaDCaT75
01-27-2004, 03:33 AM
Hi I have a small problem here. I put in the replycount column here as you can see but its broken up and doesnt fill the entire length (vertical) of the forum section. What did I do wrong? What can I do to fix it? :confused:
Attatched is my code for my column addon and a screenshot.
MindTrix
01-27-2004, 05:09 PM
Im guessing its because you need to set up an additional table. Just my guess.
MaDCaT75
01-27-2004, 08:06 PM
I tried putting <table> tags in the template but it screws it up :confused:
MaDCaT75
01-29-2004, 10:25 PM
What happened to the support in this thread :confused:
Xenon
01-31-2004, 12:12 AM
Support does not mean to do stylechanges for you if you cannot do them yourself.
Support means resolving problems the modification produces itself.
LordJMann
02-01-2004, 03:01 AM
Does this work for vBulletin RC3?
assassingod
02-01-2004, 02:47 PM
Does this work for vBulletin RC3?
Yes.
LordJMann
02-01-2004, 08:40 PM
Yes.
I found some problems though in the code which don't allow you to have the forum description when displaying the information. Not sure if that was on purpose or not if anybody needs the correction I'll gladly give it to them.
Blackbeard
02-04-2004, 09:55 AM
The image is just a template conditional:
<if condition="$forum['forumid'] == X"><img src="x" alt ="zx" /></if>
where do i put this code???
and when we had it for version 2 each forum was in a box, look tidy haw do i do this???
Mr. Brian
02-10-2004, 02:32 PM
An error occurred while attempting to execute my query. The following information was returned.
error number: 1146
error desc: Table 'abc.forum' doesn't exist
That's werid! No mater how I tried still getting the same result..
No ideal what's the main causes of it..any bro here ever encountered such problem before?
Any help will be GREATLY APPRECIATED.
Many thanks in advance.
Xenon
02-10-2004, 04:30 PM
do you use a table prefix?
if yes you have to manually change the query
ALTER TABLE forum ADD subforumcolumns TINYINT(3) UNSIGNED DEFAULT '1' NOT NULL ;
into
ALTER TABLE yourprefixhereforum ADD subforumcolumns TINYINT(3) UNSIGNED DEFAULT '1' NOT NULL ;
if you don't have a tableprefix set up, you have a serious problem on your board..
Mr. Brian
02-10-2004, 06:53 PM
Is it possible to check whether there's any tableprefix'ed on my forum...?
Xenon
02-10-2004, 06:57 PM
it's set up in your config.php
Mr. Brian
02-10-2004, 07:12 PM
Looks something like this:- ?
// Prefix that your vBulletin tables have in the database.
// For example: $tableprefix = '';
$tableprefix = 'mydatabasename';
// Prefix that all vBulletin cookies will have
// For example
$cookieprefix = 'bb';
am I right?
thanks
Xenon
02-10-2004, 07:15 PM
exactly.
so you ahve to add this prefix before the 'forum' within that query
Mr. Brian
02-10-2004, 07:43 PM
alright. thanks a lot bro..
I'm gonna install it right now!
Alien
02-10-2004, 08:11 PM
Does the image add-on control custom on/off images per forum, or just add just an image for the forums there for eye candy? I definatly want to incorporate this into our new design but with custom on/off images for a particular category.
Thanks for any clarity you can provide. :D Nice job, btw!
Xenon
02-10-2004, 09:49 PM
you can change that:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
into
<img src="$stylevar[imgdir_statusicon]/forum_$forum[forumid]_$forum[statusicon].gif" alt="" border="0" />
and then create on of status icons within the statusicon folder containing the forumid :)
Alien
02-11-2004, 02:20 AM
* Alien moans softly.
Thank you SO much. :D
Xenon
02-11-2004, 01:35 PM
:)
you're welcome :)
trying to make same like on http://www.wiredgamers.com/ but can`t.... is any spetial modifyin` was made for that or not?
MindTrix
02-15-2004, 09:49 PM
If you want the images there then it was an add on released by assassingod
Xenon
02-15-2004, 10:49 PM
just the vb2 version was by Steve Mindtrix, for vb3 the way has been posted here :)
no, sorry, but i was mean other... i did red underline on screenshot what i want to chane....
i have no problems with add images, my problem is that i can`t make row with only "Forum|Posts" for columnized category instead of "Forum|Last Post|Topics|Posts" wich is for usual tables.... other is perfect...
MindTrix
02-15-2004, 11:19 PM
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=59808" target="_blank">https://vborg.vbsupport.ru/showt...threadid=59808</a>
Theres the vB2 version of what i believe you want. You might be able to convert it over for this one, shouldnt be to hard
ok, i`ll try it! thanks! ;)
Mr. Brian
02-16-2004, 06:50 PM
alright. thanks a lot bro..
I'm gonna install it right now!
That's werid.. However how har I try but I just fail to run any query... no ideal what I missed out
any clue?
Xenon
02-16-2004, 08:30 PM
That's werid.. However how har I try but I just fail to run any query... no ideal what I missed out
any clue?
well, i cannot help if you are not able to run a query.
that's a beyond my hack problem.
you may read this, which may help ya:
-
The Watcher
02-17-2004, 01:32 PM
Great hack great support - installed first time and with conditionals is easy to make it look just as you want. All hacks should be like this one. GREAT !!!
Mr. Brian
02-18-2004, 06:12 PM
Step 2 or 3, "then add this new function to the file"
Which function are you refering to?
Xenon
02-18-2004, 07:36 PM
there is just one functione in the install file, so it's that function of course
Mr. Brian
02-20-2004, 12:36 AM
Alright, I got it!
Thumbs up!!
It just dawned on me that if you click on one of the columnized forums on your index page, you are taken to the appropriate forum but you would never see the forum description. Not really a big deal, but some descriptions can provide information to the poster that would be helpful prior to them posting in that particular forum etc.
What I would like to do is to display the forum description in the navbar area immediately after the drill down info. How can I pickup the $forum[description] variable so that I can place it in the navbar???
Thanks!
Dan
Xenon
03-04-2004, 11:14 PM
you may want to start a new thread, as this has nothing to do with my hack at all.
I think it's just a small template mod, so try look at vbulletintemplates.com
NTLDR
03-06-2004, 07:31 PM
Small bug Stefan ;)
In the forumhome_forumbit_columncell template find:
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
Replace with:
<if condition="$vboptions['showforumdescription']"><div class="smallfont">$forum[description]</div></if>
As the $show['forumdescription'] doesn't exisit.
Chris Gwynne
03-07-2004, 01:36 AM
Small bug Stefan ;)
Yep, pointed it out to Lee today :p
Has anybody been able to get the collapsable forums function working with this hack? No matter what I do I cannot seem to get it to work in conjunction...
Any help, is greatly appreciated! :D
Regards,
Chris
Xenon
03-07-2004, 12:09 PM
line 426 in functions_forumlist.php:
$show['forumdescription'] = iif ($forum['description'] != '', true, false);
so i assume no bug :)
Xenon
03-07-2004, 12:10 PM
@chris: it works perfectly for me.
Chris Gwynne
03-07-2004, 12:26 PM
@chris: it works perfectly for me.
Is that inclusive of having the table header as per someone's suggestion in here?
Or do you have the category header and then the columns straight after?
HELP! :(
Xenon
03-07-2004, 12:49 PM
i have the original version of my hack of course.
i cannot speak for modifications others made
Oblivion Knight
03-08-2004, 07:57 AM
Something's gone wrong with the colspan somewhere.. Any ideas.?
https://vborg.vbsupport.ru/showthread.php?s=&threadid=59808
Theres the vB2 version of what i believe you want. You might be able to convert it over for this one, shouldnt be to hard
i did look through that thread, but code in vB3 is different, so i still have my quoestion:
HOW TO: change tableheader for columnized forum category? like it made here (on vb2) -> https://vborg.vbsupport.ru/attachment.php?attachmentid=16775
Xenon
03-09-2004, 05:39 PM
@Oblivion knight: it seems you have not made the needed changes to the forumhome_forumbit_level1 templates.
@MC: with using an easy templatecondition on the line where that header is created
Oblivion Knight
03-09-2004, 06:52 PM
Ah.. I didn't realise you had to make the change to the forumhome_forumbit_level1_nopost template.
All is working well now, thanks.. :)
Xenon
03-09-2004, 08:03 PM
:)
you're welcome
sorry, but i`m absolutly "0" in coding (i mean i can code HTML, but all other things and <if>-tag as well for me is non-understandable)... so, if you`ll be so kind can you please?
Xenon
03-09-2004, 10:12 PM
you don't have the standard templates, so i cannot help much.
the templatemod you applied is most likely located on vbt.com, try to ask for a modification there :)
as i don't know the other mod, i just can give you the general way of doping it, but it's impossible to be more specific
ok... i think i find solutions... i need to install one more template mod and if it`s not help so i`ll come back ;) Good Luck!
monstergamer
03-14-2004, 11:52 PM
how do you drop the table?
Xenon
03-15-2004, 01:20 PM
huh?
what table do you want to drop???
monstergamer
03-15-2004, 10:26 PM
the SQL
i am not good with SQL commands and i dont know a lick about them
Xenon
03-16-2004, 04:43 PM
Sorry i really don't understand what you want, maybe this thread may help ya:
-
sabret00the
03-21-2004, 04:56 PM
if i've installed the vb2 version are their any additional changes i need to make? i.e. the settings table queries etc?
cerebro
03-22-2004, 04:46 PM
can i use in Vbulletin gold?
Xenon
03-22-2004, 06:22 PM
@cerebro: i haven't tested it yet, but as there weren't much changes in the code i think so :)
@sabre: the vb2 version is totally different from this one.
this one works on a per forum base and the old one worked just on a setting base.
you sou have to do every step in this install file to install the hack :)
sabret00the
03-22-2004, 06:24 PM
how would i go about uninstalling the vb2 version?
Xenon
03-22-2004, 06:45 PM
the settings get overwritten when installing vb3 IIRC.
if not, just enable the debug mode and delete the created settings :)
cerebro
03-22-2004, 07:02 PM
ok...ill try and later i tell u :P
Xenon
03-22-2004, 07:10 PM
:)
i hope it will be telling, and not blaming ;)
sabret00the
03-22-2004, 07:30 PM
xenon, where do i set the forums i want to display as columns i can't find this in the acp anywhere?
also i installed this before i installed this hack http://www.vbulletintemplates.com/mods/showthread.php?t=5390&page=1&pp=40
with the add-on
so could you please tell me the relevant edits to make on my templates in regards to that file
and all of my catergories are closed by default and in my attempt to open them nothing happens.
Xenon
03-22-2004, 08:24 PM
you have to edit a forum it self, there is an option on how many colums should it's subforums have on forumhome.
as for the Template question, you may better ask Zak, he's the template guy, i'm just good in php ^^
sabret00the
03-22-2004, 09:40 PM
oh sorry i think my brains waking up, so this is all done via templates apart from the file edits :)
ok so what template do i edit to say parentid = XX display as columns?
i'm wondering as i can't find any admin options what so ever?
Fi_InCogNiTo
03-23-2004, 06:50 AM
Works great on vB3 gold. Awesome hack xenon =D
My template mod is here:
http://www.vbulletintemplates.com/mods/showthread.php?p=47976#post47976
sabret00the
03-23-2004, 08:19 AM
yay, how awesome is sleep, found the option in the acp and now working :)
sabret00the
03-23-2004, 08:33 AM
if you installed faranth's forumhome split thing, and you wanna mod it to make this fit simply find
$childforumbits
and at the <tr> should be <tr align="center"> above it add <if condition="$forum['subforumcolumns'] > 1"><else />
then find $childforumbits and right in front of it close the if statement </if> that will give you perfect forums and you'll be able to mod all you like :)
anyway i'm sorry for bugging you so much last night xenon, i've now learn't never to try and hack when i'm in need of sleep :)
Xenon
03-23-2004, 08:10 PM
*gg*
Glad you could solve it ;)
Vb-Hispano
03-24-2004, 12:40 PM
error
Fatal error: Cannot redeclare construct_forum_columns() (previously declared in /home/httpd/vhosts/dominio.com/httpdocs/foros/includes/functions_forumlist.php:287) in /home/httpd/vhosts/dominio.com/httpdocs/foros/includes/functions_forumlist.php on line 287
cerebro
03-24-2004, 05:24 PM
i have to delay install...problem whit v3 gold upgrate.
I cant find what is it...and vbulletin.com search dont work!! :(
lasto
03-24-2004, 07:31 PM
if you installed faranth's forumhome split thing, and you wanna mod it to make this fit simply find
$childforumbits
and at the <tr> should be <tr align="center"> above it add <if condition="$forum['subforumcolumns'] > 1"><else />
then find $childforumbits and right in front of it close the if statement </if> that will give you perfect forums and you'll be able to mod all you like :)
anyway i'm sorry for bugging you so much last night xenon, i've now learn't never to try and hack when i'm in need of sleep :)
i aint installed the split thingy for each section where can i get it from ?
nice hack xenon - well easy to do and no probs at all on me test rc4 board
* lasto click installs
sabret00the
03-24-2004, 08:40 PM
a few posts above that one, i point to the vbT thread :)
cerebro
03-24-2004, 09:47 PM
Install en Vb3 Gold...Works Fine.
Later post my Custom Template..i have to work on it.
Vb-Hispano
03-25-2004, 12:41 PM
error
Fatal error: Cannot redeclare construct_forum_columns() (previously declared in /home/httpd/vhosts/dominio.com/httpdocs/foros/includes/functions_forumlist.php:287) in /home/httpd/vhosts/dominio.com/httpdocs/foros/includes/functions_forumlist.php on line 287
No Solution? :ermm:
lasto
03-25-2004, 01:13 PM
anybody find that installing this makes all the other sections on the board misaligned to one another.
Like where u have the section and over other side last post ect they dont run straight down the full board.
Maybe me dunno but they deffo out of alignment
Xenon
03-25-2004, 09:34 PM
@lasto: the split up template modification is producing that problem, not the col forum hack.
@vb-hisp: obviously you just made something wrong while installing.
Just restart from an unhacked file and it will work :)
lasto
03-25-2004, 09:49 PM
@lasto: the split up template modification is producing that problem, not the col forum hack.
@vbdev: obviously you just made som,ething wrong while isntalling.
Just restart from an unhacked file and it will work :)
yep u right xenon as this hack worked flawless on vb2
cheers anyway for good hack will find a way to put everything back in line :)
Xenon
03-25-2004, 10:04 PM
it has something to do with not fixed cell width's.
I know we had that problem on vb.org as well, just don't know exactly anymore what i did to solve it ;)
Vb-Hispano
03-25-2004, 11:03 PM
@vbdev: obviously you just made som,ething wrong while isntalling.
Just restart from an unhacked file and it will work :)
one talks about my? :speechless:
cerebro
03-25-2004, 11:43 PM
im working in the templates...but dont find the problem
Sometimes the board expand to 250% and sometimes works fine...mmm i cant find what is the problem.
joeychgo
03-29-2004, 08:25 AM
I got it to work, sort of. It basically closed all of my catagory headers?
I suspect im suppose to customize the code in the instructions somehow. Yes? And if so -- please explain.
Im new at all this and learning more and more every day - so please be gentle.
Xenon
03-29-2004, 03:13 PM
Hmm, sorry, but i don't really understand what you're asking me.
But regarding this:
It basically closed all of my catagory headers?
That sounds like you have made a mistake while installing. Maybe missed a template edit or such, as this is not the standardbehaviour ;)
lasto
03-29-2004, 03:47 PM
I got it to work, sort of. It basically closed all of my catagory headers?
I suspect im suppose to customize the code in the instructions somehow. Yes? And if so -- please explain.
Im new at all this and learning more and more every day - so please be gentle.
yeah is what happened to me
all u gotto do is go to admin select any forum from the forum moderators link and select 1 for the numbers of columns
any number will do but as long as u input a number the columns are fine from then on it just happens after install thats all.
Xenon
03-29-2004, 04:01 PM
Hmm, wierd, as i've entered 1 as the default value within the query ;)
0 columns means no columns at all of course :)
lasto
03-29-2004, 04:08 PM
Hmm, wierd, as i've entered 1 as the default value within the query ;)
0 columns means no columns at all of course :)
thing is Xenon your hack works fine :)
i just need to fix the alignment problem and i be even happier
:nervous:
Xenon
03-29-2004, 04:15 PM
juse enter specific width values to all except one col on the normal forumhome_bit templates, that should fix it (or did it here ;))
joeychgo
04-01-2004, 05:27 AM
ok -- please remember im quite new at all this, and although im learning as I go, I still need a little hand-holding. Ill explain whats confusing me...
What im trying to do - is have the child forums of first 4 forum catagories stay as they are - single column
- the child forums of the next 2 catagories to be in 2 columns, and the child forums for the last 2 catagories to remain single column.
Question is: Where do I make these settings changes?
IN the txt file instructions under edit template forumhome_forumbit_level1_nopost is says
"if your columnized forums should be below open for post categories, you also have to change level1_post that way.."
What does that mean in english?
And in the "Ending Step" is says "now you have to edit the category, which's subforums should be in columns and change the value into
the ammount of columns, you want to have."
Again - how about an english translation for those of us who are learning this stuff? THanks for being patient with me. Im sure this is all obvious but I need a little nudge to comprehend it all.
Xenon
04-01-2004, 05:36 PM
the child forums of the next 2 catagories to be in 2 columns, and the child forums for the last 2 catagories to remain single column
very easy, edit the two categories and change the subforum value to 2, then click on save and all is fine.
you won't need the _post changes if you do not have categories, where posting is allowed :)
it's hard to explain that more detailed, it may help to read through the vb3 manual, to learn some of the terms (and i think the template scheme will be posted on vb.com soon as well)
jb605
04-07-2004, 02:54 PM
Hi, Xenon, do you have any plan to make this work for forumdisplay and make it work for forum in addition to categories?
Thanks.
Xenon
04-07-2004, 08:42 PM
Shouldn't be hard to do.
actually it works for forums as well as for categories, and the forumdisplay would be an edit of a few lines i think
jb605
04-07-2004, 10:44 PM
Shouldn't be hard to do.
actually it works for forums as well as for categories, and the forumdisplay would be an edit of a few lines i think
I have tried, but looks like it does not work for forumdisplay, or at least not working when the upper level is forum instead of category. I edited forumdisplay.php and Forum Display template.
corsacrazy
04-08-2004, 02:00 AM
can some one please release a nicer looking forumhome_forumbit_columncell to include the last poster info/post and thread counts ? PLSSS :)
corsacrazy
04-08-2004, 10:53 PM
heres mine all done took me ages ! thanks to m.c for some code :smoke:
jb605
04-09-2004, 06:20 PM
Shouldn't be hard to do.
actually it works for forums as well as for categories, and the forumdisplay would be an edit of a few lines i think
Hi, Xenon, would you mind give some more details on what you think needs to be done to make it work for forums in forumdisplay?
I have modified forumdisplay.php to add in
'$forumhome_subforum_columncell',
as well as editing template FORUMDISPLAY within forumdisplay template group, by replacing
<if condition="$show['forumslist']">
<!-- sub-forum list -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">$vbphrase[subforums]<span class="normal">: $foruminfo[title]</span></td>
<if condition="$show['forumsearch']">
<td class="vbmenu_control" id="forumsearch.subforums"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch.subforums"); </script></td>
</if>
</tr>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175" nowrap="nowrap">$vbphrase[last_post]</td>
<td class="thead" nowrap="nowrap">$vbphrase[threads]</td>
<td class="thead" nowrap="nowrap">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead" nowrap="nowrap" width="85">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
$forumbits
</table>
<br />
<!-- / sub-forum list -->
</if>
with the part from you code
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$forum['subforumcolumns'] > 1">
<tr>
<td class="alt1" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<table style="border: none; width: 100%;">
$childforumbits
</table>
</td>
</tr>
<else />
$childforumbits
</if>
</tbody>
</if>
But I didn't get the subforums to show in column in forumdisplay, instead, my frontpage now has all categories collapsed, and cannot even expand them.
Would mind provide some more details?
Thanks.
Xenon
04-11-2004, 03:13 PM
in functions_forumlist.php
you have to remove THIS_SCRIPT == 'index' AND
in the modified code, as this prevents the colhumns from appearing on forumdisplay :)
i thin that should be all, except from some design glitches you have to manage in forumdisplay template :)
@Corsa: hey, looking nice :)
deaconxgp
04-17-2004, 01:30 AM
trying to make same like on http://www.wiredgamers.com/ but can`t.... is any spetial modifyin` was made for that or not?
Can someone install this for me lol
I don't want to screw things up..but I want it to look like the image attached on MC's post
dustyb
04-18-2004, 02:34 AM
Hi Xenon, looks like a very popular hack! Quick question here from a new user... my setup has a dozen forums at the top level, in other words no Parent Forum/Category, just 12 forums. I'm looking for a very simple forums home display. I'll probably even take out the table head row and display just the 12 forum name/descriptions and last posts fields. But I'd like to do it in 2 columns, somethign like this:
************************** T A B L E **************************
Forum Decription - Last Post Info || Forum Description - Last Post Info
Forum Decription - Last Post Info || Forum Description - Last Post Info
Forum Decription - Last Post Info || Forum Description - Last Post Info
Forum Decription - Last Post Info || Forum Description - Last Post Info
Forum Decription - Last Post Info || Forum Description - Last Post Info
Forum Decription - Last Post Info || Forum Description - Last Post Info
************************** T A B L E **************************
Any suggestions? Have you seen a hack for this already?
Xenon
04-18-2004, 12:22 PM
Well, the easiest way would be to create a Dummy categorie.
So one parent forum for all 12 forums. Then you just have to install my hack here, and then just edit some templates, so the dummy category won't show up anymore (so remove the info lines and such, and just leave the table generation for the subforums :)
deaconxgp
04-19-2004, 05:29 PM
so I guess I'm on my own then? No one wants to help me install?
Buddha
04-21-2004, 11:37 PM
absolutely beautiful.
still working out all of the images, and i'm hoping to get some help in the custom header thread (for sub-forums instead of just on forum home), but great hack.
thanks a lot xenon. much appreciated.
Buddha
04-22-2004, 03:50 AM
correct me if i'm wrong (not much of a php coder)... i pieced together some code from posts here, and was hoping it would workin forumdisplay, but it doesn't... any thoughts?
<if condition="$subforum['subforumcolumns'] > 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
$forumbits
</table>
<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<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>
</thead>
$forumbits
</table>
</if>
basically, if more than one column, don't display the table row with the descriptions. any help would be appreciated. this is for subforums on forumdisplay.
thanks.
ixian
04-22-2004, 05:35 AM
correct me if i'm wrong (not much of a php coder)... i pieced together some code from posts here, and was hoping it would workin forumdisplay, but it doesn't... any thoughts?
basically, if more than one column, don't display the table row with the descriptions. any help would be appreciated. this is for subforums on forumdisplay.
thanks.
I banged my head on this for a little while myself, so I'm gonna help you out here buddy. This does exactly what you want, as you can see from my site.
At the bottom of forumhome_forumbit_level1_nopost
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$forum['subforumcolumns'] > 1">
<tr align="center">
<td colspan="2" class="thead" width="43%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead">$vbphrase[posts]</td>
<td class="thead" width="43%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead">$vbphrase[posts]</td>
</tr>
<tr>
<td class="alt1" colspan="5">
<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>
</tr>
$childforumbits
</if>
</if>
</tbody>
And your forumhome_forumbit_columncell should look like this:
<td colspan="1">
<img src="$stylevar[imgdir_statusicon]/forums/forum_$forum[forumid].gif" alt="forum_$forum[statusicon].gif" title="">
</td>
<td colspan="40">
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<div class="smallfont">$forum[description]</div>
<if condition="$show['lastpostinfo']">
<div class="smallfont" align="$stylevar[left]">
<div class="smallfont">
<a href="showthread.php?$session[sessionurl]goto=newpost&t=$lastpostinfo[lastthreadid]" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostuser[trimthread]</strong></a>
<phrase 1="member.php?$session[sessionurl]find=lastposter&f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">last post <strong>$vbphrase[by_x]</strong></phrase>
</div>
<div align="$stylevar[right]">
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
<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>
</div>
<else />
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostuser[lastpostuser]</span></if>
</if>
<td class="alt2" colspan="15" border="0"><center>$forum[replycount]</center></td>
Note this is for a liquid style, which you appear to be using. If you want to use it with fixed width, replace the percentages with your fixed px values (315 is a good start for the "forum" cell). Play around with it.
You may also want to play around with the "width" percentages a little to tweak it to your specific style. I did mine 1% at a time until it was juuuuust right.
Enjoy.
Buddha
04-22-2004, 01:39 PM
thanks ixian... but i notice you have columns set up on your forumhome... this is for forumdisplay (subforums). will this work in my case?
thanks.
Buddha
04-22-2004, 02:38 PM
tried and as i thought, it doesn't work for the subforums on forumdisplay.
<if condition="$forum['subforumcolumns'] > 1">
this is the problem line... i just don't know what it should be to reflect subforums displayed on forumdisplay (not forumhome).
deaconxgp
04-23-2004, 04:58 PM
okay i installed it and it's cool...but on the subforums that are arranged in columns..how do you get it to show how many posts have been made and who made the last post? it doesn't show any of that info on the subforums arranged in columns.
deaconxgp
04-23-2004, 05:56 PM
one more thing...for the status icon on/off images...how would you identify how the code knows which forums to use which status icon?
Buddha
04-23-2004, 06:06 PM
deaconxgp, this
<img src="$stylevar[imgdir_statusicon]/forum_$forum[forumid]_$forum[statusicon].jpg" alt="" border="0" />
will allow you to have different images for each forum in these columns (name images forum_xx_old.jpg and forum_xx_new.jpg ... you can easily change .jpg to .gif or .png. this was posted in this thread by xenon.
as for the last post info, look at the top of this page... ixian posted instructions on doing that.
deaconxgp
04-23-2004, 06:11 PM
^nevermind that one...
I got the images to work but the forum titles are aligned to the bottom left of the image..how would i align the status icons to the the top left of the images...valign="top" but i'm not sure what template to adjust to get the forums aligned properly with the images.
deaconxgp
04-23-2004, 06:12 PM
thanks Buddha lol...posted at the same time dude. :)
deaconxgp
04-23-2004, 06:23 PM
and i tried the code at the top of the page and it didnt' work right...it listed last post information on top of the actual subforums...
deaconxgp
04-23-2004, 06:37 PM
for some reason the code doesn't recognize $stylevar[top]
i wonder why.
deaconxgp
04-23-2004, 06:57 PM
fixed :) except for the part where there is no Forum and Post strip to identify the subforums so users can't see how many posts or who last posted
Xenon
04-24-2004, 10:14 AM
$forum['threadcount'] = $counters["$forum[forumid]"]['threadcount'];
$forum['replycount'] = $counters["$forum[forumid]"]['replycount'];
you see both wariables are defined, so you just have to add them to the template :)
same with lastpostinfo
dndog
04-24-2004, 01:16 PM
The forums display corrently on the homepage, but when I click on the category they are in they revert back to the original stacking. How can I apply this setting to categories viewed?
Thanks.
Buddha
04-25-2004, 04:11 PM
i'm still struggling with getting rid of that table row in forumdisplay if anyone can help me.
(see my posts on the top of this page - #152-153)
thanks.
deaconxgp
04-25-2004, 08:34 PM
<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 align="center">
<td colspan="2" class="thead" width="40%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead">$vbphrase[posts]</td>
<td class="thead" width="50%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead">$vbphrase[posts]</td>
</tr>
<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" width="38"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="240">$vbphrase[last_post]</td>
<td class="thead" width="30">$vbphrase[threads]</td>
<td class="thead" width="100">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="120">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</if>
</tbody>
</if>
this is my level1 no post....the problem i'm having is that the threads and posts don't seem to line up correctly...the thread is like too long and the posts is too thin
I've attached a screen shot.
http://www.xgpgaming.com/mainimages/test.gif
deaconxgp
04-26-2004, 12:13 AM
i can't seem to change the width of the threads, last post etc information under the columns forums without it affecting the categories for the forums without columns
dndog
04-26-2004, 02:52 AM
I want this to appear not on the forum home, but when a user clicks on the category title. What template do I need to edit, and what changes should be made?
deaconxgp
04-28-2004, 12:06 PM
any help on getting the Post, Threads, Last Post to line up correctly??
xQuEeNzNaZcHox
05-02-2004, 05:08 PM
Database error in vBulletin 3.0.1:
Invalid SQL: UPDATE vbulletin_forum SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'New York Mets',
description = '',
link = '',
displayorder = '1',
daysprune = '1',
parentid = '-1',
subforumcolumns = '2',
newpostemail = '',
newthreademail = '',
styleid = '0',
password = '',
options = '86017',
parentlist = '1,-1'
WHERE forumid=1
mysql error: Unknown column 'subforumcolumns' in 'field list'
mysql error number: 1054
Date: Sunday 02nd of May 2004 06:07:16 PM
Script: http://www.innerchambers.com/~nymfans/forums/admincp/forum.php
Referer: http://www.innerchambers.com/~nymfans/forums/admincp/forum.php?do=edit&forumid=1&s=
Username: Noah
IP Address: **.***.***.***
I get that error. Why?
Xenon
05-02-2004, 05:22 PM
mysql error: Unknown column 'subforumcolumns' in 'field list'
that shows exactly, that you have no installed the hack correctly.
you have to run the queries in the instructions.
xQuEeNzNaZcHox
05-03-2004, 06:55 PM
http://www.innerchambers.com/~nymfans/forums/
Look what happened after I applied the category spacing mod. Now it won't even collapse. I read the thread, followed instructions, and boom, its screwed.
here is the template forumhome_lvel1_nopost
<!-- top -->
<table cellpadding="0" cellspacing="0" border="0" width="$stylevar[outertablewidth]" align="center">
<tr>
<td style="text-align: $stylevar[left]" class="tcat"><img src="" alt="" /></td>
<td width="100%" class="tcat" style="background-image: url(); text-align: center;"><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></td>
<td style="text-align: $stylevar[right]" class="tcat"><img src="" alt="" /></td>
</tr>
</table>
<!-- /top -->
<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" width="30"> </td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="240">$vbphrase[last_post]</td>
<td class="thead" width="55">$vbphrase[threads]</td>
<td class="thead" width="55">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead" width="100">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</if>
</tbody>
</if>
<!-- bottom -->
<table cellpadding="0" cellspacing="0" border="0" width="$stylevar[outertablewidth]" align="center">
<tr>
<td style="text-align: $stylevar[left]" class="tcat"><img src="" alt="" /></td>
<td width="100%" class="tcat" style="background-image: url(); text-align: center;"></td>
<td style="text-align: $stylevar[right]" class="tcat"><img src="" alt="" /></td>
</tr>
</table>
<!-- /bottom --><div style="padding: 5px 5px 5px p5x;"></div>
Xenon
05-03-2004, 08:27 PM
you should better ask the template guru who did the spacing mod, as my hack has nothing to do with it, and works flawless.
Assault
05-15-2004, 04:09 PM
i installed fine.. got no errors or anythin... i just don't see my forums at all..lol.. the colums are set to "2"...
i see the category name..no forums under it
if i put it to just 1 colum, they come out fine...
heres a pic of how it looks:
http://www.digistash.com/data/37bc2f75bf1bcfe8450a1a41c200364c/267_p965.gif
Xenon
05-15-2004, 05:14 PM
looks like you haven't added the new templates correctly..
Assault
05-15-2004, 07:26 PM
looks like you haven't added the new templates correctly..
o my god..lol. i can't believe i did sumthig so stupid..lol. thanx..
Xenon
05-15-2004, 10:17 PM
;)
no prob, everyone can make a mistake :)
Buddha
05-16-2004, 02:29 PM
would it be possible to get some help on the issue i brought up on the last page? regarding the forumhome table i'd like to have disappear?
any help would be greatly appreciated. thanks.
hubba
05-16-2004, 03:37 PM
I use only two columns, how do I set this 2 on a fixed width of 50 percent?
Xenon
05-16-2004, 06:01 PM
erm, if you use 2 as ammount of columns, it's automatically set to 50% as fixed width.
Psybadek
05-21-2004, 03:16 AM
i wanna be able to show the moderator, last topic title, and posts. Anyone know what to add and how to make it look good
nando415
05-29-2004, 07:20 AM
Can anyone help me on how to get the border showing seperating the subforums, i dont like how its all 1 color and doesnt match the other sections
Also id like to know how to get it to show the # of members viewing, like next to the title where it says (3 Viewing)
dniMTheory
06-17-2004, 02:04 PM
Got it...install is pretty simple and straight forward. I even got the on/off images to work.
The install instructions in the first post work perfect. Anything extra is where the probems come in. All my problem have already been answered in the thread so it was just a matter of sorting through all the posts.
this is one of the better hacks, for its size. It does what it is supposed to do.
mm... i cannot make this hack work...
Warning: Invalid argument supplied for foreach() in /home2/user/public_html/forum/includes/functions_forumlist.php on line 139
RetroDreams
06-17-2004, 03:47 PM
Anyone have any good subforum off/on images? The default ones just don't do it for me.
DWard
06-21-2004, 07:08 PM
I am still unaware of how to add the header above the forums. Mine looks like this so far:
Kohhal
07-02-2004, 04:05 PM
Is this hack compatible with multiple styles?
Reason I ask is that I had this installed before on a test forum with only the template changes done in one style. That style displayed fine but when I viewed the forum using another style, instead of seeing the normal forumdisplay it was completely messed up.
I don't have a screenie and can't say for definite that I didn't make a mistake but it's unlikely.
So can anyone confirm that this works correctly if you want it on some styles and not others?
Thanks :)
Xenon
07-02-2004, 05:01 PM
hmm, it should be. but you have to create the additional templates in the not columned style as well, or need to add further conditions to the hack.
so actually you can get to work it on one style if you don't want it to be columned on the other style, but you will have to put a little extra work in then ;)
Oblivion Knight
07-07-2004, 03:02 PM
I'm not sure if this has been mentioned already or not, but the template forumhome_forumbit_columncell currently isn't being cached in index.php.. ;)
To fix, open index.php and find:
[code removed - Xenon updated his file]
Xenon
07-07-2004, 04:14 PM
i think it is mentioned somewhere in the thread already ^^
but actually that showed me, that i never updatet the file ^^
thx for reminding me :)
Oblivion Knight
07-07-2004, 04:53 PM
No problem, I only noticed you hadn't fixed it yet because i'm upgrading my forum and re-installing the hacks.. :)
Xenon
07-08-2004, 12:36 PM
well, it's fixed now ;)
Oblivion Knight
07-09-2004, 02:32 PM
Could this be done for the forumdisplay page too (when clicking on the category link).?
Obviously not with just the current code, but if I wanted to attempt to expand on the hack (or if you wanted to take on the challenge) - could it be done?
Xenon
07-09-2004, 03:44 PM
iirc i have posted how to do so in the thread already.
it's just a change of one condition in the file, and then again, quite the same template changes on forumdisplay :)
funfone
07-13-2004, 08:16 PM
any help on getting the Post, Threads, Last Post to line up correctly??
Any luck anyone on this please ?
Hazzo
07-13-2004, 09:19 PM
Style: Dark Blue Is this hack compatible with multiple styles?
Reason I ask is that I had this installed before on a test forum with only the template changes done in one style. That style displayed fine but when I viewed the forum using another style, instead of seeing the normal forumdisplay it was completely messed up.
I don't have a screenie and can't say for definite that I didn't make a mistake but it's unlikely.
So can anyone confirm that this works correctly if you want it on some styles and not others?
Thanks
hmm, it should be. but you have to create the additional templates in the not columned style as well, or need to add further conditions to the hack.
so actually you can get to work it on one style if you don't want it to be columned on the other style, but you will have to put a little extra work in then ;)
This would be a nice add-on for this great hack!! Since I am sure there are a few of us out there, that would install it and use the hack, if it didnt mess with the other skins we use..
Wish I knew coding better, then I would write this myself.. But I dont :(
Anyone can help with this?
Battle_Ring
07-14-2004, 09:01 PM
I have problem, dont think i saw it above....when i installed the hack...it works...but the tables for the words Forums...Posts...Threads...and Moderator made the boxes change to that size...how can i fix it?
Xenon
07-14-2004, 10:20 PM
That shouldn't be normally.
are you sure you have changed the categories templates as stated in the install instructions.
Those changes are nessecary to keep the moderator/thread boxes in their correct size :)
Battle_Ring
07-15-2004, 12:02 PM
OK, Now The Only Problem Im Having Is Its Showing An "X" For The Status Icons...
Battle_Ring
07-15-2004, 12:10 PM
Here Is The SS
MindTrix
07-15-2004, 12:12 PM
.bmp files are the devil, save pics as jpg or gif
as for your error. Right click on the red x and choose properties, it will show you where it is looking for the image, if you need more help PM me and ill help you out
Xenon
07-15-2004, 04:42 PM
:)
Thx Mindtrix, nice to see anyone is helping when my time is limited :)
MindTrix
07-15-2004, 08:19 PM
Anytime Xenon, im just trying to get active again like i used to be :rolleyes:
Xenon
07-15-2004, 08:41 PM
Very good, so i can lay back as i used to be ^^
excellent hack, working flawlessly here, install was smooth too :)
...however, and i bet you knew this was coming, right? however, the code changes posted for the forumdisplay.php pages do not work (or at least, i cannot get them to work). is there any chance that someone who has got it to work (or just knows how to do it) could post the definitive code changes for that please?
thanks in advance :)
funfone
07-16-2004, 04:43 PM
I have a slight problem or two I don't have any last posts or forum headers....and I use this twice on the board both with two columns...however one set of forums has the left column about 56% - 44% width and the other 35% - 65% width...any ideas please....
Xenon
07-16-2004, 04:45 PM
have you touched the template code?
be sure width="$column_width" is in your td tag, to make sure the columns will be equal.
funfone
07-16-2004, 05:13 PM
Tks for the ="$column_width" clue
I added this width="5%" to the forumhome_forumbit_columncell
Not too sure why it works but it does a treat :)
Still searching for the 'Forum' & 'Post' Titles to be displayed ..
Xenon
07-16-2004, 05:16 PM
look through the thread, i think someone posted it already :)
Oblivion Knight
07-19-2004, 10:07 AM
...however, and i bet you knew this was coming, right? however, the code changes posted for the forumdisplay.php pages do not work (or at least, i cannot get them to work). is there any chance that someone who has got it to work (or just knows how to do it) could post the definitive code changes for that please?
thanks in advance :)I've been trying to do this also, but haven't had any luck yet..
Xenon originally suggested that this line (functions_forumlist.php);
if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))Could be changed to this;
if ($forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))Then once similar changes had been made to the FORUMDISPLAY template to what had been done with the forumhome, it should work..
I haven't had any success with this though.. :(
^ yup, i got about as far as getting absolutely no subforums showing up in forumdisplay and then decided to revert some of my templates heh. any help with this would be greatly appreciated :)
excellent hack, working flawlessly here, install was smooth too :)
...however, and i bet you knew this was coming, right? however, the code changes posted for the forumdisplay.php pages do not work (or at least, i cannot get them to work). is there any chance that someone who has got it to work (or just knows how to do it) could post the definitive code changes for that please?
thanks in advance :)
b-b-bump :) anyone?
tia
spence2
07-28-2004, 07:11 PM
Installed hack from original post with no alterations on vB3.03 ... works great! Thank you for sharing your work. Much appreciated!
ambrosious
07-31-2004, 08:15 PM
When I run it for the first time, I get:
Database error in vBulletin 3.0.1:
Invalid SQL: UPDATE forum SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Forums',
description = 'Of interest, perhaps.',
link = '',
displayorder = '2',
daysprune = '30',
parentid = '-1',
subforumcolumns = '3',
newpostemail = '',
newthreademail = '',
styleid = '0',
password = '',
options = '97859',
parentlist = '5,-1'
WHERE forumid=5
mysql error: Unknown column 'subforumcolumns' in 'field list'
mysql error number: 1054
Can someone tell me where I went wrong?
Xenon
08-01-2004, 11:15 AM
you haven't run the query in the first step, you HAVE to do, or this hack won't work :)
romeshomey
08-02-2004, 02:18 AM
Man, I really like this hack! Thank you.......
BlackxRam
08-19-2004, 02:56 AM
Whenever I upload this hack, all MY SUBFORUMS disappear and only the categories show. When I try to expand them, nothing happens. I have tried reinstalling multiple times doing each step VERY SLOWLY and the same thing.
BlackxRam
08-19-2004, 03:18 AM
Nevermind, I got it working. It should say you need to designate a forum for it to take effect. lol.
anyone got this working for forumdisplay pages yet? any help would be very much appreciated :)
thanks in advance
ChessMess
08-20-2004, 08:38 PM
Who has this installed right now? I've looked at several forums from people who indicated they installed it but when I look at thier boards, its the standard layout.
RetroDreams
08-21-2004, 03:02 AM
Who has this installed right now? I've looked at several forums from people who indicated they installed it but when I look at thier boards, its the standard layout.
http://www.liveworkplayindy.com Click on Community.
Blackbeard
08-21-2004, 11:26 AM
The coding you used to display pictures etc was it from this post or some where else.
RetroDreams
08-21-2004, 02:49 PM
The coding you used to display pictures etc was it from this post or some where else.
Is that to me?
Oblivion Knight
08-21-2004, 03:13 PM
The coding you used to display pictures etc was it from this post or some where else.It's within this thread.. Page 5 i think.
Blackbeard
08-21-2004, 04:30 PM
Is that to me?
yes it was m8, sorry
RetroDreams
08-21-2004, 05:56 PM
yes it was m8, sorry
I could never find the example OK mentioned, so I just did it myself. It's pretty simple HTML.
Blackbeard
08-22-2004, 04:51 PM
Can someone please point out which bit of code allows images and a post count number in the arranged in columns , found one over in vbtemplate but it just gives images above. i have asked but dont seem to get much of a reply over there anymore so iam sorry iam back here, please forgive me
could some one please either post it here or PM with, what iam looking for is a way to make my forum columns to look like these attachments, either withlast poster or without.
Thankyou all very much for the help so far, one day this old man will learn something
Oblivion Knight
08-22-2004, 08:52 PM
It's really not that hard to do..
http://www.gamerseuphoria.com/forum
I'll try and document something later tonight.
Blackbeard
08-22-2004, 09:24 PM
that is what iwant Oblivion Knight thank you, my trouble is i would know where to start, just get by following instruction, put a spanner in my hand and i can do things, put a keyboard and a forum and it a mess, my members will agree with me on that one.
ChessMess
08-23-2004, 07:55 AM
I'd also be interested in that information, or a mod to this mod to allow it. Thanks OK for putting that information together for us!
Oblivion Knight
08-23-2004, 09:34 AM
Note that the guide will assume you have also installed a category spacing mod..
This is the one I used:
http://www.vbulletin.nl/community/showthread.php?t=5688
vBulletin.nl have access limitations set up, however.
There are similar mods available at vBulletinTemplates.com though..
Blackbeard
08-23-2004, 09:50 AM
I cannot get it as iam just a new members, and i dont believe i could post 30 post and theres not many sections i would get involved with
ChessMess
08-23-2004, 09:35 PM
category spacing mod?
spence2
08-24-2004, 07:57 AM
<a href="http://www.vbulletintemplates.com/mods/showthread.php?t=5895&page=1&pp=14" target="_blank">The images hack is here.</a>
There is also a category spacing hack there as well.
Blackbeard
08-24-2004, 09:06 PM
forumhome_forumbit_columncell should look like this:
PHP Code:
<td colspan="1">
<img src="$stylevar[imgdir_statusicon]/forums/forum_$forum[forumid].gif" alt="forum_$forum[statusicon].gif" title="">
</td>
<td colspan="40">
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<div class="smallfont">$forum[description]</div>
<if condition="$show['lastpostinfo']">
<div class="smallfont" align="$stylevar[left]">
<div class="smallfont">
<a href="showthread.php?$session[sessionurl]goto=newpost&t=$lastpostinfo[lastthreadid]" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostuser[trimthread]</strong></a>
<phrase 1="member.php?$session[sessionurl]find=lastposter&f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">last post <strong>$vbphrase[by_x]</strong></phrase>
</div>
<div align="$stylevar[right]">
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
<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>
</div>
<else />
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostuser[lastpostuser]</span></if>
</if>
<td class="alt2" colspan="15" border="0"><center>$forum[replycount]</center></td>
i added this code, but it will not allow me to set an old.gif and new.gif still get the red crosses it only works if i have one image named forum_9.gif
how can i make it so i have old and new.
ChessMess
08-24-2004, 09:33 PM
Note that the guide will assume you have also installed a category spacing mod..
This is the one I used:
http://www.vbulletin.nl/community/showthread.php?t=5688
vBulletin.nl have access limitations set up, however.
There are similar mods available at vBulletinTemplates.com though..
Looking forward to your writeup!
Here is another board with a very nice looking multi-column image spacing setup: Buddha's Bar & Grill (http://hangout.buddhasbarandgrill.com/forumdisplay.php?f=7?s=&styleid=8)
.
ehjay
08-30-2004, 11:09 PM
Just finished setting this up for the bottom half of our forums, we're going to spread it to more parts of the boards at a later date most likely.
www.warboards.org
ambrosious
09-04-2004, 08:25 PM
Can someone please help me here? I installed this hack a while ago, some member complained that the "last post" had disappeared so I come back here, copy some code and transfer it over and got this: (see image)
Does anyone know why, will I have two forum categories, and the old and new posts icons quit working. I did upload forum_8 and forum_9 to the statusicon folder but only two of them worked.
I know this isn't a part of the original mod, but if anyone can help, I would appreciate it.
ambrosious
09-04-2004, 08:28 PM
Let me just attach that image now... LOL
ambrosious
09-04-2004, 10:39 PM
Thanks to you all, I got it!
Blackbeard
09-05-2004, 11:15 AM
i still cannot get an old and a new icon to work, seem the link just looks for forum_9.gif not old or new.
whys this????
i used the code posted a few posts above.
ambrosious
09-07-2004, 01:41 AM
Rename your gif, or copy and name them forum_8 and forum_9. That worked for me, plus, not repeating the code twice. LOL.
I can't find any reference with working code for this to work on forumdisplay. The pieces of code listed across this thread don't seem to be complete. Can someone who has it working put it all in one post please?
D@rkness
09-19-2004, 08:59 PM
First let me say great mod, seen it on few boards and looks real nice when installed. Now let me say boy am I confused, after 17 pages of reading I still haven?t got a firm clue on how to install this hack with the image add-on.
I understand Xenon instructions real clear, but the other bits of code that are here and there in the different post are the problem.
So if some kind sole who has implemented this with the image add-on could shed some light on what needs to be done after Xenon?s installation that would be great.
New at modding and we all have to start somewhere, right? :)
Xenon
09-20-2004, 12:21 PM
ok, let me descibe the quick and dirty way, hope it helps.
in the template forumhome_forumbit_columncell you'll find this:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
replace it with:
<if condition="$forum['forumid'] == x"><img src="path to image for forum x" alt="" border="0" /><else /><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></if>
that code will replace the statusicon for forum with forumid x.
you can do that recursively for all other forums as well
as said, quick but dirty :)
eblivion
09-22-2004, 09:18 PM
----- Question 1 ---------------
How do I get the "Sub-Forums:..." to show below the descriptions. I tried using:
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
as was used in the forumhome_forumbit_level1_post template, but it doesn't work. Nothing appears where the subforums should be.
----- Question 2 ---------------
How can I get the same affect on the forumdisplay.php page for the subforums listed at the top? I've tried just about every variable I could think of an I can't figure out where to find the different variables used in $forumbits that generates they layout for the subforums on that page.
D@rkness
09-22-2004, 11:11 PM
Ty for the reply, I managed to get it installed.
See attached.
Thanks again for a great mod.
jesse
09-24-2004, 02:11 PM
i get this error
Fatal error: Call to undefined function: construct_forum_columns() in /home/causeyjr/public_html/forum/includes/functions_forumlist.php on line 272
I upload the default functions_forumlist and it seems to get rid of the error any help?
aranthorn
09-24-2004, 05:41 PM
looks like when you modified the functions_forumlist, you missed a semicolon. This is a very typical error when doing mods, just try re-editing and being very careful to put all text exactly where instructed. I've done this to myself a few times :D
D@rkness
09-24-2004, 10:53 PM
When you are changing yout forumlist.php, make sure you are adding the new function to the end of the file and not after the first change.
The install.txt indicates "then add this new function to the file:", copy the new function then add it to the end of your forumlist.php and you should be good.
jesse
09-26-2004, 01:36 PM
When you are changing yout forumlist.php, make sure you are adding the new function to the end of the file and not after the first change.
The install.txt indicates "then add this new function to the file:", copy the new function then add it to the end of your forumlist.php and you should be good.
that seem to work mabe end of page would have been better understood thanks but now
all forums are collasped
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.