vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   XHTML question... (https://vborg.vbsupport.ru/showthread.php?t=202141)

Saviour 01-18-2009 10:15 AM

Here ya go: http://www.glitchpc.com/forums/c_news_letter.php

Dismounted 01-18-2009 11:00 AM

I get a 404 on that page.

Saviour 01-18-2009 12:26 PM

Sorry, Dismounted...

Here ya go, again: http://www.glitchpc.com/forums/c_news_letter.php

Lynne 01-18-2009 03:14 PM

Grab the source code for your page and throw it into a text editor. Then, search for the lines the validator is having problems with. The first one "</tr><tr>" shows me right away the problem. I'll post the code above it:

Code:

                                <tr>
                                    <td class="alt1" style="padding: 0px;">
                                        <table cellpadding="6" cellspacing="1" width="100%" border="0">
                                        <!-- BEGIN TEMPLATE: c_news_letter_latest_memberbit -->
</tr><tr>
<td class="alt1" align="center">

   
        <img src="http://glitchpc.com/forums/images/misc/c_news_letter_noav.gif" alt="" />
   
   
    <div class="smallfont"><a href="http://glitchpc.com/forums/member.php?u=29">tolson7761</a></div>

Then look at the code..... you've put "</tr><tr>" in an invalid place. You ended a row when you never started one.


Just keep doing a search for the lines it doesn't like.

Saviour 01-18-2009 03:56 PM

Lynne...

Thanks for that information, but the coder of this modification has that </tr><tr> within an "if statement" of one of the templates:

HTML Code:

<if condition="$latest_members_count%3 == '1'"></tr><tr></if>
<td class="$bgclass" align="center">

        <if condition="$vboptions[c_news_letter_show_avatar]">
                <img src="$member[avatarurl]" alt="" />
        </if>
       
        <div class="smallfont"><a href="$vboptions[bburl]/member.php?u=$member[userid]">$member[username]</a></div>
       
</td>

No matter what I do there...it breaks the newsletter. I'm tellin' ya. I think I've lost about all my hair on this one. I'm trying, though...and really do appreciate your help.

Lynne 01-18-2009 03:59 PM

Then change the lines in the template above it. Or, change the modification. I can't think of any modification I have installed that I haven't changed in some way to work the way I want it to work on my site.

Saviour 01-18-2009 04:50 PM

I'm sorry...but I'm truly lost on this one...

Unless someone can take me by the hand and guide me step-by-step through these edits...I'm afraid I may have to call it quits.

Seriously though...I really appreciate the help...and even though you see the word "Coder" under my username...don't take it "verbatim". I'm really not that good...if at all.

So just generalizing an answer, may be good for some...it's not helping me in the least.

Dismounted 01-19-2009 03:23 AM

Find:
HTML Code:

<if condition="$latest_members_count%3 == '1'"></tr><tr></if>
Replace With:
HTML Code:

<if condition="!isset($called) AND $called = true"><tr><else /><if condition="$latest_members_count % 3 == 1"></tr><tr></if></if>
Dirty hack job, but should work.

Saviour 01-19-2009 12:55 PM

Thanks, Dismounted...

Tried your code, but the errors jumped from 37 to 45. So, reverted back to the original code...at least, for now.

I'm tellin' ya...this has been a royal PITA...

Saviour 01-21-2009 12:04 PM

On another note...
I've been told that..."trying to get one's site to validate with W3C compliance is a total waste of time...as long as the code works, why bother?" While others say it's better for several reasons.

Anyone care to comment?

BTW...I've given up on that particular page...for now, anyway. The coder is working on making it compliant.

However, I just added a new style and the forum homepage validates except for one <table> error. I've looked that code up and down and can find nothing wrong with it.

Anyone care to take a stab at it?

Thanks to anyone who replies...


All times are GMT. The time now is 12:54 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.01867 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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