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)
-   -   Arrange Sub-Forums in columns (https://vborg.vbsupport.ru/showthread.php?t=63498)

socals 08-21-2004 02:06 AM

Quote:

Originally Posted by Nj?rd Eriksson
@tamarian:

Okay, for some or other reason the subforums don't align nicely when the forum description doesn't fill a whole line (it seems to work on your site, though.)

What could the issue be? Do you have a fix for this?


I ran into this same problem on my website. The first level of sub-forums was correct, but I also have sub-forums on my 2nd level and they didn't work correctly here.

I changed the <td width=50%> to <td width=200> instead and it works everywhere.

Using depth settings of 2,1,1.

(I've since changed to a depth of 2,2,1 so it wouldn't matter anymore)

Drache 09-01-2004 12:19 PM

does this work with vb 3.03?

Visibility 09-01-2004 01:15 PM

It's working for me on 3.03

Drache 09-01-2004 09:08 PM

Sweet hack. this is what i've been looking for. I love it. 1 request.

Is it possible to make it so that each sub forum display differen't image? like different picture. possible? if so how do i do it?

Jimboj79 11-05-2004 09:40 AM

Excellent thanks :)

Guest190829 11-05-2004 09:48 PM

Execellant work tamarian

SaN-DeeP 11-06-2004 09:00 AM

i like the way sub-forums are displayed using this hack :)
Can you also tell me how to change the forums -> under categories to get displayed like same changing some bits of this hack ?

Regards,

Blam Forumz 11-06-2004 02:00 PM

/me installs

ResaleBroker 01-01-2005 10:48 PM

Great Mod. Works great on our 3.03 board. Thanks!

sbryan 01-02-2005 10:10 AM

does this hack give an option for users to disable it if they dont like it?

lanc3lot 01-02-2005 03:01 PM

Hello:)

Can we remove the word : "Sub-Forums:" ?

See an example here: http://www.gamers.gr/board/index.php? (its says sub-forums !)

Thnx in advance :)

oxi_action 01-05-2005 12:57 PM

This hack should work in 3.0.4? i tried but not working...!

tamarian 01-06-2005 12:42 PM

Quote:

Originally Posted by oxi_action
This hack should work in 3.0.4? i tried but not working...!

I'm not sure, I have not installed 3.0.4 yet and may take me a while. Hopefully someone else can tell us if there are any needed changes.

cinq 01-06-2005 02:26 PM

Working for me :D

lanc3lot 01-18-2005 12:45 AM

With 3.0.5 ?:D

I just prepare my board to go there, anybody test it?

lanc3lot 01-19-2005 12:18 PM

Just to report, its working ok to 3.0.6 also:)

Razz 01-24-2005 04:16 PM

Those of you who like to have valid XHTML should replace:

Code:

$output .= "<td width=50%>" . construct_subforum_bit($forumid, $cancontainthreads, $subforum, $depthmark . '--', $depth + 1) . "</td>";
with:

Code:

$output .= "<td width=\"50%\">" . construct_subforum_bit($forumid, $cancontainthreads, $subforum, $depthmark . '--', $depth + 1) . "</td>";
when editing functions_forumlist.php

The previous method can cause 100's of XHTML errors if you have large forums.

tamarian 01-24-2005 05:14 PM

Quote:

Originally Posted by Razz
The previous method can cause 100's of XHTML errors if you have large forums.

Nice catch. Original updated.

Razz 01-24-2005 08:17 PM

tamarian, you added the fix before I changed it again, my previous post was edited for the correct syntax as although the other method I posted worked, the one showing now is the correct way to do it :)

Sorry to mess you about :)

lanc3lot 01-24-2005 08:27 PM

Can someone tell what u gain with this last addon?:)

tamarian 01-24-2005 08:34 PM

Quote:

Originally Posted by Razz
tamarian, you added the fix before I changed it again, my previous post was edited for the correct syntax as although the other method I posted worked, the one showing now is the correct way to do it :)

Sorry to mess you about :)

No problem, re-applied.

tamarian 01-24-2005 08:36 PM

Quote:

Originally Posted by lanc3lot
Can someone tell what u gain with this last addon?:)

It's just more XHTML standard compliant. No need to worry about if you don't want to change it, you'll be fine.

Razz 01-24-2005 09:27 PM

tamarian I'm still getting a couple of errors on the XHTML compliance test, I've managed to track it back to this column hack.

Code:

<tr valign="top"></tr>
"end tag for "tr" which is not finished"

Any ideas?

It seems to be something to do with having uneven numbered subforums as I get two occurences of this and have 2 lots of uneven numbered subforums.

tamarian 01-24-2005 09:50 PM

Quote:

Originally Posted by Razz
tamarian I'm still getting a couple of errors on the XHTML compliance test, I've managed to track it back to this column hack.

Code:

<tr valign="top"></tr>
"end tag for "tr" which is not finished"

Any ideas?

It seems to be something to do with having uneven numbered subforums as I get two occurences of this and have 2 lots of uneven numbered subforums.


Try this:

PHP Code:

        if ($cols ==1$output.="<td>&nbsp;</td></tr></table>";
    else 
$output.="</tr></table>"

Instead of this:

PHP Code:

$output.="</tr></table>"

This should add an empty cell to odd numbered sub-forums.

Let me know if it passes, and I'll add it to the original.

Razz 01-24-2005 10:01 PM

Exactly same error, no change at all :(

Razz 01-24-2005 10:04 PM

Wouldn't it need to be inside the foreach loop?

tamarian 01-24-2005 10:09 PM

Quote:

Originally Posted by Razz
Wouldn't it need to be inside the foreach loop?

No, it's only for the last subforum for each parent forum. If the last sub-forum is odd, it adds an empty cell to complete the TR.

Why not post the errors, and someone might spot it for us.

I can't validate my own main page, since I'm sure it will stop the validation too early due to too many XHTML errors :)

Razz 01-24-2005 10:13 PM

Line 279, column 493: end tag for "tr" which is not finished

Code:

...lign="center" ><tr valign="top"> </tr></table></td><td width="50%"><img class
Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete

Razz 01-24-2005 10:14 PM

Thats the complete error, notice that the <tr> is still immediately terminated, there is no blank cell in there.

Razz 01-25-2005 06:07 AM

I'm pretty sure it's not the odd number of columns causing this now, it seems as if it's related to some subforums having subforums of their own.

Lonny 02-01-2005 12:40 PM

Doesn't work on 3.0.6

AWS 02-01-2005 03:33 PM

Quote:

Originally Posted by Lonny
Doesn't work on 3.0.6

Yes it does. I have 3.0.6 on my site with this hack and it works fine. Check your install if it isn't working.

The Dok 03-10-2005 05:44 PM

Is there a way to have the icon for the subforums to change color if there is a new post within that specific subforum, or some other indication of a new post?

I'm going to install it when I get home tonight but this would be kinda cool if it is possible. If not, still a great hack.

tamarian 03-10-2005 05:51 PM

Quote:

Originally Posted by The Dok
Is there a way to have the icon for the subforums to change color if there is a new post within that specific subforum, or some other indication of a new post?

It will do that by default, using the subforum status icons.

The Dok 03-10-2005 06:18 PM

Alright... thats cool. I'll install it tonight at home. Thanks for the quick reply.

The Dok 03-11-2005 12:26 AM

Installed and it's doing great. Thanks for it.

David_R 04-03-2005 07:22 AM

hack screws the 3 colums displayed, works proper with 2 colums of sub-forums

ZacUSNYR 04-04-2005 09:53 PM

clicked install - no problems with 3.0.7

absoluthum 04-06-2005 02:00 PM

Works perfect, thanks!

IMW 04-11-2005 02:58 AM

This works great! I would recommend it to anyone who wants a more professional looking setup for their VBulletin forum.


All times are GMT. The time now is 05:11 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.01496 seconds
  • Memory Usage 1,802KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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