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)

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.


All times are GMT. The time now is 05:01 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.01223 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_php_printable
  • (4)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
  • (10)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