vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Forums arranged in columns on forumhome (https://vborg.vbsupport.ru/showthread.php?t=59958)

Xenon 01-08-2004 10:00 PM

Forums arranged in columns on forumhome
 
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

Quote:

Originally Posted by assassingod
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:

Code:

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 ;)
PHP 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

Quote:

Originally Posted by MindTrix
*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.

M1th 01-11-2004 04:11 AM

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

Quote:

Originally Posted by M1th
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:
PHP Code:

            if (!$vboptions['showforumdescription'])
            { 
// blank forum description if set to not show
                
$forum['description'] = '';
            } 

and below add:
PHP Code:

                $forum['description'] = substr($forum['description'], 050); 

to just get the first 50 chars of a description

Indy 01-17-2004 11:15 PM

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

Quote:

Originally Posted by Xenon
@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:

Code:

<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
        <tr align="center">
          <td class="thead" width="30">&nbsp;</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
HTML Code:

<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
HTML Code:

<else />
        $childforumbits
</if>

with
HTML Code:

<else />
<tr align="center">
          <td class="thead" width="30">&nbsp;</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

Quote:

and remove the part i added from the other appearance..
confused...? (sorry!)

Xenon 01-21-2004 12:29 AM

HTML Code:

<tr align="center">
          <td class="thead" width="30">&nbsp;</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

Indy 01-22-2004 10:13 PM

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.

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">&nbsp;</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>



All times are GMT. The time now is 04:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02201 seconds
  • Memory Usage 1,838KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (4)bbcode_html_printable
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete